|View source on GitHub|
An object that is a measurement and has a measurement key or keys.
cirq.protocols.SupportsMeasurementKey( *args, **kwargs )
Measurement keys are used in referencing the results of a measurement.
Users are free to implement either
_measurement_key_ returning one string
_measurement_keys_ returning an iterable of strings.
where as a measurement enacts the evolution
conditional on the measurement outcome being $k$.
_is_measurement_() -> str
Return if this object is (or contains) a measurement.
_measurement_key_() -> str
Return the key that will be used to identify this measurement.
When a measurement occurs, either on hardware, or in a simulation, this is the key value under which the results of the measurement will be stored.
_measurement_keys_() -> Iterable[str]
Return the keys for measurements performed by the receiving object.
When a measurement occurs, either on hardware, or in a simulation, these are the key values under which the results of the measurements will be stored.
_with_measurement_key_mapping_( key_map: Dict[str, str] )
Return a copy of this object with the measurement keys remapped.
This method allows measurement keys to be reassigned at runtime.