-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Capture] iterative_qpe
uses qml control flow functions
#6680
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6680 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 474 474
Lines 44617 44628 +11
=======================================
+ Hits 44448 44459 +11
Misses 169 169 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to approve 🚀
Context:
The capture project allows us to convert more complicated hybrid workflows into jaxpr.
Description of the Change:
Makes it so that
iterative_qpe
can be compactly captured into jaxpr.Benefits:
Possible Drawbacks:
The testing in this PR is horrible, but I don't really have a better way of doing it. The produced jaxpr is rather complicated, the produced jaxpr is not compatible with
plxpr_to_tape
, we currently only use single-branch-statistics to simulate MCM's, and we can't post-process MCM's.Related GitHub Issues:
[sc-72592]