catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Add support for `qml.sample(m)`

Open dime10 opened this issue 1 year ago • 1 comments

This PR can be merged after https://github.com/PennyLaneAI/pennylane/pull/5673.

Introduce support for m = measure(0); qml.sample(m) in Catalyst programs. In conjunction with ongoing work on MCM support, this will allow returning shots number of MCM samples from a quantum program.

[sc-62096]

dime10 avatar May 08 '24 20:05 dime10

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.07%. Comparing base (2636257) to head (6f6b48b). Report is 178 commits behind head on main.

Files Patch % Lines
frontend/catalyst/jax_tracer.py 85.71% 0 Missing and 1 partial :warning:
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #731   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files          70       70           
  Lines        9601     9603    +2     
  Branches      756      757    +1     
=======================================
+ Hits         9416     9418    +2     
  Misses        151      151           
  Partials       34       34           

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

codecov[bot] avatar May 24 '24 20:05 codecov[bot]