Skip to content

bloqade.qasm2.dialects.expr.stmts.Cos

← Module overview

classCossource

bloqade.qasm2.dialects.expr.stmts.Cos

Bases: ir.Statement

Take the cosine of a number.

class Cos

Attributes

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