Skip to content

bloqade.qasm2.dialects.expr.stmts.Div

← Module overview

classDivsource

bloqade.qasm2.dialects.expr.stmts.Div

Bases: ir.Statement

Divide two numbers.

class Div

Attributes

NameTypeDefaultDescription
name—'div'
traits—frozenset({lowering.FromPythonCall()})
lhsir.SSAValueinfo.argument(PyNum)lhs (Union[int, float]): The numerator.
rhsir.SSAValueinfo.argument(PyNum)rhs (Union[int, float]): The denominator.
resultir.ResultValueinfo.result(PyNum)result (Union[int, float]): The result of the division.