-
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.
Allow correct retrieval of circuit with initialize instruction from q…
…py file (#11206) (#11274) * treated cases for StatePreparation initialization when reading from qpy file * added test for state preparation from qpy * added docstring to test function * added fix release note * Fixup release note --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 9111d0f) Co-authored-by: SoranaAurelia <52232581+SoranaAurelia@users.noreply.github.com>
- Loading branch information
1 parent
d39c7c3
commit a6c7d75
Showing
3 changed files
with
28 additions
and
3 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
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/fix-qpy-statepreparation-retrieval-1feea5eb74db7f1e.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,5 @@ | ||
fixes: | ||
- | | ||
Fixed QPY deserialization of the :class:`.StatePreparation` and :class:`.Initialize` circuit | ||
instructions with string and integer parameters (as opposed to an explicit statevector, which | ||
was already working). Fixed `#11158 <https://github.com/Qiskit/qiskit/issues/11158>`__. |
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