bloqade.qasm2.dialects.expr.stmts.Div
← Module overview
class
classDiv¶source
bloqade.qasm2.dialects.expr.stmts.Div
Bases: ir.Statement
Divide two numbers.
class DivAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'div' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
lhs | ir.SSAValue | info.argument(PyNum) | lhs (Union[int, float]): The numerator. |
rhs | ir.SSAValue | info.argument(PyNum) | rhs (Union[int, float]): The denominator. |
result | ir.ResultValue | info.result(PyNum) | result (Union[int, float]): The result of the division. |