-
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
.decompose
on control flow (#13545)
* decompose control flow ops * add reno and test * trailing print * thou shall support Python 3.9 * Fix comments & reno Co-authored-by: Elena Peña Tapia <[email protected]> --------- Co-authored-by: Elena Peña Tapia <[email protected]>
- Loading branch information
Showing
3 changed files
with
112 additions
and
4 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
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/decompose-controlflow-7a7e38d402aed260.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,11 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug where calling :meth:`.QuantumCircuit.decompose` on an instruction | ||
that had no definition inside a ``c_if`` block would raise an error. | ||
Fixed `#13493 <https://github.com/Qiskit/qiskit/issues/13493>`__. | ||
- | | ||
Operations inside a control flow (e.g. :meth:`.QuantumCircuit.for_loop`) were not | ||
correctly decomposed when calling :meth:`.QuantumCircuit.decompose`. This | ||
behavior is now fixed and instructions are unrolled. | ||
Fixed `#13544 <https://github.com/Qiskit/qiskit/issues/13544>`__. |
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