Skip to content

bloqade.qasm2.dialects.expr.stmts.Pow

← Module overview

classPowsource

bloqade.qasm2.dialects.expr.stmts.Pow

Bases: ir.Statement

Take the power of a number.

class Pow

Attributes

NameTypeDefaultDescription
name—'pow'
traits—frozenset({lowering.FromPythonCall()})
lhsir.SSAValueinfo.argument(PyNum)lhs (Union[int, float]): The base.
rhsir.SSAValueinfo.argument(PyNum)rhs (Union[int, float]): The exponent.
resultir.ResultValueinfo.result(PyNum)result (Union[int, float]): The result of the power operation.