Closed albi3ro closed 1 week ago
Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md
with:
Thanks @albi3ro, LGTM! May I ask to add the PR to the changelog entry for the capture effort?
changelog link added.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.66%. Comparing base (
8fec135
) to head (a2fcde0
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Context:
Catalyst PR #837 (https://github.com/PennyLaneAI/catalyst/pull/837) needs a couple minor updates to the capture module.
Description of the Change:
1) makes it possible to do
from pennylane.capture import AbstractOperator, AbstractMeasurement, qnode_prim
so we don't have to touch private functions2) Adds
qnode
as a keyword argument that gets bound to the qnode primitive3) Makes it so we can capture a sample measurement specified like
qml.sample(wires=1)
Benefits:
Possible Drawbacks:
Related GitHub Issues: [sc-66703]