-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multiple nested custom controlled gates in QPY (#10537)
* Fix multiple nested custom controlled gates in QPY When a circuit contained multiple custom controlled gates that in turn had custom definitions, the QPY serialisation could fail to write out some of the inner instructions correctly. This led to an invalid QPY file that could not be read back. * Remove local warning-suppression import (cherry picked from commit 06416d7)
- Loading branch information
1 parent
a8026fa
commit 7ab6f0f
Showing
3 changed files
with
36 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-qpy-nested-custom-controlled-2a23dfe828bc46c8.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,6 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug in QPY serialization (:mod:`qiskit.qpy`) where multiple controlled custom gates in | ||
a circuit could result in an invalid QPY file that could not be parsed. Fixed `#9746 | ||
<https://github.com/Qiskit/qiskit-terra/issues/9746>`__. |
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