bloqade.qasm3.dialects.core.stmts.BitRegNew
← Module overview
class
classBitRegNew¶source
bloqade.qasm3.dialects.core.stmts.BitRegNew
Bases: ir.Statement
Create a new classical bit register.
class BitRegNewAttributes
| Name | Type | Default | Description |
|---|---|---|---|
name | — | 'bitreg.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(BitRegType) | result (BitReg): The new bit register with all bits set to 0. |