Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cirq-google/cirq_google/api/v2/run_context.proto
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@ message SingleSweep {
Points points = 2;
// Uniformly-spaced sampling over a range.
Linspace linspace = 3;
// A constant value.
Const const = 5;
}

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


// A list of explicit values.
message Points {
// The values.
Expand All @@ -207,3 +210,16 @@ message Linspace {
// the same.
int64 num_points = 3;
}

// A constant value.
message Const {
// The values.
oneof value {
// This value should always be true if set, which represent the python None object.
bool is_none = 1;

Comment thread
BichengYing marked this conversation as resolved.
Outdated
float float_value = 2;
int64 int_value = 3;
string string_value = 4;
}
}
14 changes: 8 additions & 6 deletions cirq-google/cirq_google/api/v2/run_context_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading