bloqade.qasm2.dialects.expr.stmts.Sqrt
← Module overview
class
classSqrt¶source
bloqade.qasm2.dialects.expr.stmts.Sqrt
Bases: ir.Statement
Take the square root of a number.
class SqrtAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'sqrt' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
value | ir.SSAValue | info.argument(PyNum) | value (Union[int, float]): The number to take the square root of. |
result | ir.ResultValue | info.result(types.Float) | result (float): The square root of the number. |