Skip to content

Commit ccedd43

Browse files
BichengYingjselig-rigetti
authored andcommitted
Add Serialization and Deserialization Support of FSimViaModelTag. (quantumlib#6539)
* Add Serialization and Deserialization Support of FSimViaModelTag. * Fix the lint * Update program_pb2.pyi
1 parent 902c66d commit ccedd43

File tree

5 files changed

+95
-66
lines changed

5 files changed

+95
-66
lines changed

Diff for: cirq-google/cirq_google/api/v2/program.proto

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ message CZPowGate {
167167
message FSimGate {
168168
FloatArg theta = 1;
169169
FloatArg phi = 2;
170+
171+
// If true, this is equivalent to:
172+
// cirq.FSimGate(...).with_tags(cirq_google.FSimViaModelTag()).
173+
// This field controls how we translate the gate implementation.
174+
bool translate_via_model = 3;
170175
}
171176

172177
// Representation of cirq.ISwapPowGate

0 commit comments

Comments
 (0)