-
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.
Browse files
Browse the repository at this point in the history
* global phase should not be propagated in repeat * add reno (cherry picked from commit 7e40ed1) Co-authored-by: Julien Gacon <gaconju@gmail.com>
- Loading branch information
1 parent
2951828
commit ae90e27
Showing
3 changed files
with
19 additions
and
2 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix-global-phase-upon-repeat-f742f4c0201fea97.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,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix the global phase of the output of ``circuit.repeat``. If a circuit with global | ||
phase is appended to another circuit, the global phase is currently not propagated. | ||
The simulators rely on this, since the phase otherwise gets applied multiple times. | ||
This sets the global phase of ``circuit.repeat`` to 0 instead of multiplying the existing | ||
phase times the number of repetitions. |
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