Skip to content

Commit 02d29a9

Browse files
Support serialization of cirq-google.CouplerPulse gate (#6472)
1 parent 598c84f commit 02d29a9

File tree

6 files changed

+225
-49
lines changed

6 files changed

+225
-49
lines changed

cirq-google/cirq_google/api/v2/program.proto

+10
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ message Operation {
208208
MeasurementGate measurementgate = 15;
209209
WaitGate waitgate = 16;
210210
InternalGate internalgate = 17;
211+
CouplerPulseGate couplerpulsegate = 18;
211212
}
212213

213214
// Map from the argument name to the Argument needed to fully specify
@@ -424,4 +425,13 @@ message InternalGate{
424425
string module = 2; // Gate module.
425426
int32 num_qubits = 3; // Number of qubits. Required during deserialization.
426427
map<string, Arg> gate_args = 4; // Gate args.
428+
}
429+
430+
message CouplerPulseGate{
431+
optional FloatArg hold_time_ps = 1; // ps=picoseconds.
432+
optional FloatArg rise_time_ps = 2; // ps=picoseconds.
433+
optional FloatArg padding_time_ps = 3; // ps=picoseconds.
434+
optional FloatArg coupling_mhz = 4;
435+
optional FloatArg q0_detune_mhz = 5;
436+
optional FloatArg q1_detune_mhz = 6;
427437
}

0 commit comments

Comments
 (0)