PennyLaneAI / catalyst

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

Add verification of measurement types #945

Closed lillian542 closed 1 month ago

lillian542 commented 1 month ago

Context: Verification so far checks that the observables are supported, but not that the measurement type is.

Description of the Change:

Related Shortcut Stories: [sc-69062]

Note: I haven't updated any TOML files. The OQC device and all the Lightning TOML files already include measurement processes. The CUDA TOML doesn't, but I'm not sure which MPs it supports, and it's not affected by these changes yet because it still uses the old device API.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.90%. Comparing base (eb25b44) to head (045db46).

Files Patch % Lines
frontend/catalyst/jax_tracer.py 0.00% 0 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #945 +/- ## ========================================== - Coverage 97.93% 97.90% -0.04% ========================================== Files 72 72 Lines 10333 10341 +8 Branches 1177 1180 +3 ========================================== + Hits 10120 10124 +4 - Misses 169 171 +2 - Partials 44 46 +2 ```

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