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