-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 4-pi periodicity of controlled rotations in the `CommutationCheck…
…er` (#13670) (#13676) * start * fix 4pi periodicity of controlled pauli rots * review comments by Elena & Sasha (cherry picked from commit dffc2df) # Conflicts: # crates/accelerate/src/commutation_checker.rs Co-authored-by: Julien Gacon <[email protected]>
- Loading branch information
1 parent
98f02d7
commit dd4ceef
Showing
3 changed files
with
62 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/fix-4pi-periodic-commutations-3b89d1813513f613.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
fixes: | ||
- | | ||
The :class:`.CommutationChecker` did not handle commutations of the :class:`.CRXGate`, | ||
:class:`.CRYGate` and :class:`.CRZGate` correctly for angles | ||
:math:`\pi(4k + 2)` for :math:`k \in \mathbb Z`. | ||
In these cases, the controlled rotations were falsely assumed to commute with any gate. | ||
Now these gates correctly commute with any gate if the rotation angle is a multiple of | ||
:math:`4\pi`. |
This file contains 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