View source on GitHub |
A classical control condition that can gate an operation.
Attributes | |
---|---|
keys
|
Gets the control keys. |
qasm
|
Returns the qasm of this condition. |
Methods
replace_key
@abc.abstractmethod
replace_key( current: 'cirq.MeasurementKey', replacement: 'cirq.MeasurementKey' )
Replaces the control keys.
resolve
@abc.abstractmethod
resolve( classical_data: 'cirq.ClassicalDataStoreReader' ) -> bool
Resolves the condition based on the measurements.