-
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.
…#13538) (#13541) * fix registering global phase params * add tests and reno (cherry picked from commit 6f0a176) Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
- Loading branch information
1 parent
1263d82
commit daec1e2
Showing
5 changed files
with
73 additions
and
8 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
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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/fix-global-phase-assign-d05f182ed9ddcf57.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,14 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a series of bugs when processing circuit with parameterized global phases, | ||
where upon assignment the global phase was not correctly assigned. | ||
Known cases this affected include: | ||
* assigning parameters after calling :meth:`.QuantumCircuit.decompose` on a circuit, | ||
where the decomposition introduces a global phase | ||
* assigning parameters on a circuit constructed from a DAG via :func:`.dag_to_circuit` | ||
* assigning parameters on circuits created with :func:`.pauli_twirl_2q_gates`, where | ||
the circuit to be twirled had a parameterized global phase | ||
Fixed `#13534 <https://github.com/Qiskit/qiskit/issues/13534>`__. |
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
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