-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Optimize __pow__ for CliffordGate (Issue #6327) #7766
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
base: main
Are you sure you want to change the base?
Optimize __pow__ for CliffordGate (Issue #6327) #7766
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7766 +/- ##
=======================================
Coverage 99.57% 99.57%
=======================================
Files 1102 1102
Lines 98434 98436 +2
=======================================
+ Hits 98014 98016 +2
Misses 420 420 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@codrut3 - can you please take a look at this? (If so, please post short comment so I can assign you as a reviewer) |
|
Discussed in Cirq Cynq: #6919 had implemented a solution for the
|
Happy to review! Thanks Pavol! |
|
Hey @Vivek1106-04 , The only new improvement is on line 413, where you are using @pavoljuhas #6327 is already solved and should be closed to avoid confusion. |
Description:
This PR addresses Issue #6327 by optimizing the
__pow__method for bothCliffordGateandSingleQubitCliffordGate.Changes proposed in this PR:
CliffordGate Optimization:
result_tableauis initialized independently to avoid reference aliasing bugs.SingleQubitCliffordGate Optimization:
gate**2.5). The logic decomposesNotImplemented.Related Issue:
Fixes #6327