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