A convenience wrapper for calibrations that acts like a dictionary.Calibrations act as dictionaries whose keys are the names of the metric,and whose values are the metric values. The metric values themselves arerepresented as a dictionary. These metric value dictionaries havekeys that are tuples of
cirq.GridQubits and values that are lists of themetric values for those qubits. If a metric acts globally and is attachedto no specified number of qubits, the map will be from the empty tupleto the metrics values.Calibrations act just like a python dictionary. For example you can geta list of all of the metric names using
and query a single value by looking up the name by index:
The time that this calibration was run, in milliseconds sincethe epoch.
__init__(calibration: cirq.google.api.v2.metrics_pb2.MetricsSnapshot) → None¶
Initialize self. See help(type(self)) for accurate signature.