-
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.
Browse files
Browse the repository at this point in the history
* WIP: Add qpy serialization for PauliEvolutionGate This commit adds serialization for the PauliEvolutionGate class so that we can exactly reproduce a PauliEvolutionGate over QPY. This works by bumping the qpy format version and adding new structs to represent the PauliEvolutionGate and all it's child attribute types. * Fix handling of operator in PauliEvolutionGate This commit fixes the handling of the operator attribute in the PauliEvolutionGate. With this commit we can serialize a PauliEvolutionGate correctly with the exception of it's synthesis class which still needs to be supported. * settings for synth * Add support for custom synthesis classes * Expand test coverage * Add release notes * Update release note * fix param binding in PauliEvo * allow time as an int * Apply suggestions from code review Co-authored-by: Jake Lishman <jake@binhbar.com> * Update qiskit/circuit/qpy_serialization.py Co-authored-by: Jake Lishman <jake@binhbar.com> * Update qiskit/circuit/qpy_serialization.py * Rerun with latest black * Close buffers when finished * Fix release note wording * Fix lint * Adjust tests around extra layer of gates Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: Jake Lishman <jake@binhbar.com> (cherry picked from commit 9af5ca1) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information
1 parent
a9b6093
commit 73024df
Showing
11 changed files
with
401 additions
and
31 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
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.