-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add serialization support to more gates #6479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -209,6 +209,9 @@ message Operation { | |
| WaitGate waitgate = 16; | ||
| InternalGate internalgate = 17; | ||
| CouplerPulseGate couplerpulsegate = 18; | ||
| IdentityGate identitygate = 19; | ||
| HPowGate hpowgate = 20; | ||
| SingleQubitCliffordGate singlequbitcliffordgate = 21; | ||
| } | ||
|
|
||
| // Map from the argument name to the Argument needed to fully specify | ||
|
|
@@ -434,4 +437,24 @@ message CouplerPulseGate{ | |
| optional FloatArg coupling_mhz = 4; | ||
| optional FloatArg q0_detune_mhz = 5; | ||
| optional FloatArg q1_detune_mhz = 6; | ||
| } | ||
|
|
||
| message CliffordTableau { | ||
| optional int32 num_qubits = 1; | ||
| optional int32 initial_state = 2; | ||
| optional bytes rs = 3; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as before w.r.t. numpy serialization. In this case, I think it might be okay, but we should at least document it.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed the serialization to be independent of numpy |
||
| optional bytes xs = 4; | ||
| optional bytes zs = 5; | ||
| } | ||
|
|
||
| message SingleQubitCliffordGate { | ||
| CliffordTableau tableau = 1; | ||
| } | ||
|
|
||
| message IdentityGate { | ||
| repeated uint32 qid_shape = 1; | ||
| } | ||
|
|
||
| message HPowGate { | ||
| FloatArg exponent = 1; | ||
| } | ||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.