Skip to content

Add metadata into single sweep of cirq-google/cirq_google/api/v2/run_context.proto #6869

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

Merged
merged 8 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 6 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 @@ -126,6 +126,19 @@ message DeviceParameter {
// by the sweep values themselves.
}

message Metadata {
// Optional arguments for if this is a device parameter.
// Note one single_sweep may associated with multiple device parameters.
repeated DeviceParameter device_parameters = 1;

// If specified, use this label instead of pameter_key as the independent
// column name in returned dataset.
optional string label = 2;

// If true, store this sweep as parameters instead of the independent axes.
optional bool as_parameter = 3;
}

// A bundle of multiple DeviceParameters and their values.
// The main use case is to set those parameters with the
// values from this bundle before executing a circuit sweep.
Expand Down Expand Up @@ -203,6 +216,9 @@ message SingleSweep {
// Optional arguments for if this is a device parameter.
// (as opposed to a circuit symbol)
DeviceParameter parameter = 4;

// Optional arguments for storing extra metadata information.
Metadata metadata = 6;
}


Expand Down
36 changes: 19 additions & 17 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.

45 changes: 43 additions & 2 deletions cirq-google/cirq_google/api/v2/run_context_pb2.pyi

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