Skip to content

Commit 2ca1488

Browse files
committed
Merge branch 'main' of github.com:mhucka/Cirq
2 parents 2adc218 + d74e0dc commit 2ca1488

File tree

7 files changed

+192
-59
lines changed

7 files changed

+192
-59
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,16 @@ message SingleSweep {
179179
Points points = 2;
180180
// Uniformly-spaced sampling over a range.
181181
Linspace linspace = 3;
182+
// A constant value.
183+
Const const = 5;
182184
}
183185

184186
// Optional arguments for if this is a device parameter.
185187
// (as opposed to a circuit symbol)
186188
DeviceParameter parameter = 4;
187189
}
188190

191+
189192
// A list of explicit values.
190193
message Points {
191194
// The values.
@@ -207,3 +210,15 @@ message Linspace {
207210
// the same.
208211
int64 num_points = 3;
209212
}
213+
214+
// A constant value.
215+
message Const {
216+
// The values.
217+
oneof value {
218+
// This value should always be true if set, which represent the python None object.
219+
bool is_none = 1;
220+
float float_value = 2;
221+
int64 int_value = 3;
222+
string string_value = 4;
223+
}
224+
}

cirq-google/cirq_google/api/v2/run_context_pb2.py

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)