Module: cirq.protocols.measurement_key_protocol

Protocol for object that have measurement keys.

Classes

class SupportsMeasurementKey: An object that is a measurement and has a measurement key or keys.

Functions

is_measurement(...): Determines whether or not the given value is a measurement.

measurement_key(...): Get the single measurement key for the given value.

measurement_keys(...): Gets the measurement keys of measurements within the given value.

with_measurement_key_mapping(...): Remaps the target's measurement keys according to the provided key_map.

RaiseTypeErrorIfNotProvided