|View source on GitHub|
A classical control condition based on a single measurement key.
cirq.KeyCondition( key: 'cirq.MeasurementKey', index: int = -1 )
This condition resolves to True iff the measurement key is non-zero at the time of resolution.
||Gets the control keys.|
||Returns the qasm of this condition.|
replace_key( current: 'cirq.MeasurementKey', replacement: 'cirq.MeasurementKey' )
Replaces the control keys.
resolve( classical_data: 'cirq.ClassicalDataStoreReader' ) -> bool
Resolves the condition based on the measurements.
__eq__( other )