Add support for lowering adjoint and control with Operator2#2980
Open
mudit2812 wants to merge 63 commits into
Open
Add support for lowering adjoint and control with Operator2#2980mudit2812 wants to merge 63 commits into
mudit2812 wants to merge 63 commits into
Conversation
…to handle-operator2
…to handle-operator2
Co-authored-by: Christina Lee <chrissie.c.l@gmail.com>
7425779 to
592b2a9
Compare
… into operator2-custom-op
albi3ro
reviewed
Jul 3, 2026
albi3ro
reviewed
Jul 3, 2026
…atalyst into operator2-adj-ctrl
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2980 +/- ##
==========================================
- Coverage 96.96% 96.96% -0.01%
==========================================
Files 167 167
Lines 19349 19346 -3
Branches 1799 1801 +2
==========================================
- Hits 18761 18758 -3
Misses 433 433
Partials 155 155 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context:
Follow up for supporting lowering of
Operator2Description of the Change:
adjointinput ofqref/quantum.operatorfrom a property to an attribute.Note to reviewers:
There is currently a bug with
qp.ctrl+qp.qjit(capture=True)+Operator2, which is being fixed in this PR: PennyLaneAI/pennylane#9754. Until that is merged, the CI for this PR will keep failing. But, I've confirmed locally that all tests pass when using the PL-side bug fix branch, so I don't think test failures need to block reviews.Benefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-123426]