We're celebrating World Quantum Day 2022! Join us


A classical control condition based on a sympy expression.

Inherits From: Condition

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.

keys Gets the control keys.
qasm Returns the qasm of this condition.
expr Dataclass field



View source

Replaces the control keys.


View source

Resolves the condition based on the measurements.