Skip to content

bloqade.qasm2.dialects.expr.stmts.Log

← Module overview

classLogsource

bloqade.qasm2.dialects.expr.stmts.Log

Bases: ir.Statement

Take the natural log of a number.

class Log

Attributes

NameTypeDefaultDescription
name—'ln'
traits—frozenset({lowering.FromPythonCall()})
valueir.SSAValueinfo.argument(PyNum)value (Union[int, float]): The number to take the natural log of.
resultir.ResultValueinfo.result(types.Float)result (float): The natural log of the number.