|View source on GitHub|
A classical control condition based on a sympy expression.
cirq.SympyCondition( expr: sympy.Basic )
This condition resolves to True iff the sympy expression resolves to a
truthy value (i.e.
bool(x) == True) when the measurement keys are
substituted in as the free variables.
||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 )