-
Notifications
You must be signed in to change notification settings - Fork 603
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
Support controlled ZYZ decomposition of composite operators #5242
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5242 +/- ##
==========================================
- Coverage 99.68% 99.67% -0.01%
==========================================
Files 399 399
Lines 36848 36567 -281
==========================================
- Hits 36731 36449 -282
- Misses 117 118 +1 ☔ 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.
since we were already doing the try-except thing, do you know if it hurts to instead just update the except
to catch (NotImplementedError, AttributeError)
?
Thanks for taking a look, @timmysilv!
That also works! The main difference is that that doing so would also catch
|
Thanks for the review, @albi3ro! |
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.
Thanks for the updates :)
Context:
Attempting to run the preliminary example from the QSVT in Practice demo with the Lightning Qubit device
yields the error
Description of the Change:
ctrl_decomp_zyz()
to supportOperators
that are notOperations
.Benefits:
Possible Drawbacks:
None.
Related GitHub Issues:
None.