-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
qpy
for multiple controlled parametrized gates (#10758)
* Add exception for controlled gate * Add reno
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
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-qpy-repeated-controlled-gates-e19fc4ee65a22756.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: | ||
- | | ||
Fixed a bug in QPY serialization (:mod:`qiskit.qpy`) where if a circuit contained | ||
multiple instances of parametrized controlled gates of the same class (not custom), | ||
the parameter values from the first instance were used to build the gate definitions | ||
of subsequent instances. The gates were rendered correctly despite this bug because | ||
the correct parameter values were stored, but not used to build the gates. Fixed | ||
`#10735 <https://github.com/Qiskit/qiskit-terra/issues/10735>`__. |
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