Optimize __pow__ for CliffordGate (Issue #6327)#7766
Optimize __pow__ for CliffordGate (Issue #6327)#7766Vivek1106-04 wants to merge 9 commits intoquantumlib:mainfrom
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. |
|
@codrut3 thanks for your review . i will close this pr |
Done, thank you Codrut for the review here! |
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