View source on GitHub |
Determines whether or not the given value is a measurement (or contains one).
cirq.is_measurement(
val: Any
) -> bool
Measurements are identified by the fact that any of them may have an _is_measurement_
method
or cirq.measurement_keys
returns a non-empty result for them.