PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
142 stars 36 forks source link

Update following removal of legacy opmath in Pennylane #1308

Closed lillian542 closed 5 days ago

lillian542 commented 1 week ago

Context: PennyLane has removed the Tensor and Hamiltonian classes, so references to them also need to be removed in Catalyst. They were deprecated in 0.39, and have not been the default since before 0.36.

The new operator arithmetic equivalent for Tensor is Prod, and the new-op equivalent for Hamiltonian is LinearCombination, which is a subclass of Sum.

Description of the Change:

Note: a shortcut story has been added to track reversing the test changes in this PR

Possible Drawbacks: We will not be running the OpenQASM braket test workflow with CI until after the 0.40 release.

Related GitHub Issues:

[sc-77523][sc-77530]

codecov[bot] commented 5 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.44%. Comparing base (e3266de) to head (cc56b46). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1308 +/- ## ========================================== + Coverage 81.39% 81.44% +0.05% ========================================== Files 74 74 Lines 8195 8185 -10 Branches 858 852 -6 ========================================== - Hits 6670 6666 -4 + Misses 1468 1464 -4 + Partials 57 55 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: