Skip to content

bloqade.qasm2.dialects.core.stmts.CRegNew

← Module overview

classCRegNewsource

bloqade.qasm2.dialects.core.stmts.CRegNew

Bases: ir.Statement

Create a new classical register.

class CRegNew

Attributes

NameTypeDefaultDescription
name—'creg.new'
traits—frozenset({lowering.FromPythonCall()})
n_bitsir.SSAValueinfo.argument(types.Int)n_bits (Int): The number of bits in the register.
resultir.ResultValueinfo.result(CRegType)result (CReg): The new classical register with all bits set to 0.