Skip to content
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

Deprecate Program.language.gate_set proto field #5591

Merged
Show file tree
Hide file tree
Changes from all 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: 10 additions & 6 deletions cirq-google/cirq_google/api/v2/program.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ message Constant {
}
}


// The quantum circuit, specified as a series of moments (abstract
// slices of times with gates acting on disjoint sets of qubits).
message Circuit {
Expand Down Expand Up @@ -101,8 +100,14 @@ message ScheduledOperation {
message Language {
// The name of the gate set being used.
//
// Valid names for the gate sets can be found in cirq/google/gate_sets.py.
string gate_set = 1;
// Valid names for the gate sets can be found in
// cirq_google/serialization/gate_sets.py.
//
// Deprecated: A device now only supports a single gate set.
// Previously, the value of this field also refers to the name of the
// serializer for the program. Currently, the only serializer available is
// CircuitSerializer in cirq_google/serialization/circuit_serializer.py.
string gate_set = 1 [deprecated = true];

// The language supported by ArgFunctions. These specifies what allowed
// ArgFunction types there are.
Expand Down Expand Up @@ -176,7 +181,6 @@ message MeasurementGate {
Arg invert_mask = 2;
}


// Representation of cirq.WAitGate
message WaitGate {
// Duration of the waiting period,
Expand All @@ -188,7 +192,7 @@ message WaitGate {
message Operation {
// Which gate this operation corresponds to.
// Populated pre-v2.5+.
Gate gate = 1 [deprecated=true];
Gate gate = 1 [deprecated = true];

// Each gate should populate one possible gate message
// depending on the type desired. Only populated in v2.5+.
Expand All @@ -207,7 +211,7 @@ message Operation {

// Map from the argument name to the Argument needed to fully specify
// the gate. Only populated pre-v2.5+.
map<string, Arg> args = 2 [deprecated=true];;
map<string, Arg> args = 2 [deprecated = true];

// Which qubits the operation acts on.
// Operations should populate one of the following two
Expand Down
Loading