Skip to content

bloqade.qasm2.dialects.expr.stmts.Add

← Module overview

classAddsource

bloqade.qasm2.dialects.expr.stmts.Add

Bases: ir.Statement

Add two numbers.

class Add

Attributes

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