Skip to content

bloqade.qasm2.dialects.expr.stmts.Sin

← Module overview

classSinsource

bloqade.qasm2.dialects.expr.stmts.Sin

Bases: ir.Statement

Take the sine of a number.

class Sin

Attributes

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