Skip to content

bloqade.qasm2.dialects.expr.stmts.Sub

← Module overview

classSubsource

bloqade.qasm2.dialects.expr.stmts.Sub

Bases: ir.Statement

Subtract two numbers.

class Sub

Attributes

NameTypeDefaultDescription
name—'sub'
traits—frozenset({lowering.FromPythonCall()})
lhsir.SSAValueinfo.argument(PyNum)lhs (Union[int, float]): The left-hand side of the subtraction.
rhsir.SSAValueinfo.argument(PyNum)rhs (Union[int, float]): The right-hand side of the subtraction.
resultir.ResultValueinfo.result(PyNum)result (Union[int, float]): The result of the subtraction.