forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in qpy the support for Discriminator and Kernel (Qiskit#10327)
* add support for Discriminator and Kernel * make Kernel and Discriminator hashable * correct _assert_nested_dict_equal() Co-authored-by: Will Shanks <wshaos@posteo.net> * ensure b does not have extra keys Co-authored-by: Will Shanks <wshaos@posteo.net> * devide _read_kernel_and_discriminator and _write_kernel_and_discriminator * update docs * add tests testing Kernel/Discriminator equality * add a qpy compatibility test * add releasenote * improve hashing in Kernel/Discriminator * rm hashing from Kernel/Discriminator * use write/read_sequence() to serialize lists * add (de)serializer for dict and list --------- Co-authored-by: Will Shanks <wshaos@posteo.net> Co-authored-by: Will Shanks <willshanks@us.ibm.com>
- Loading branch information
Showing
8 changed files
with
330 additions
and
20 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
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/qpy_supports_discriminator_and_kernel-3b6048bf1499f9d3.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,8 @@ | ||
--- | ||
features: | ||
- | | ||
QPY supports the :class:`~qiskit.pulse.configuration.Discriminator` and | ||
:class:`~qiskit.pulse.configuration.Kernel` objects. | ||
This feature enables users to serialize and deserialize the | ||
:class:`~qiskit.pulse.instructions.Acquire` instructions with these objects | ||
using QPY. |
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
Oops, something went wrong.