autoqasm.operators.comparisons module
Operators for comparison operators: <, <=, >, and >=.
- autoqasm.operators.comparisons.lt_(a: Any, b: Any) bool | BoolVar[source]
Functional form of “<”.
- Parameters:
a (Any) – The first expression.
b (Any) – The second expression.
- Returns:
bool | BoolVar – Whether the first expression is less than the second.
- autoqasm.operators.comparisons.lteq_(a: Any, b: Any) bool | BoolVar[source]
Functional form of “<=”.
- Parameters:
a (Any) – The first expression.
b (Any) – The second expression.
- Returns:
bool | BoolVar – Whether the first expression is less than or equal to the second.