bloqade.qasm2.dialects.core.stmts.CRegNew
← Module overview
class
classCRegNew¶source
bloqade.qasm2.dialects.core.stmts.CRegNew
Bases: ir.Statement
Create a new classical register.
class CRegNewAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'creg.new' | |
traits | — | frozenset({lowering.FromPythonCall()}) | |
n_bits | ir.SSAValue | info.argument(types.Int) | n_bits (Int): The number of bits in the register. |
result | ir.ResultValue | info.result(CRegType) | result (CReg): The new classical register with all bits set to 0. |