Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.circuit.ClassicalRegister

class ClassicalRegister(size, name=None)

GitHub

Implement a classical register.

Create a new generic register.

__init__

__init__(size, name=None)

Create a new generic register.


Methods

__init__(size[, name])Create a new generic register.
qasm()Return OPENQASM string for this register.

Attributes

instances_counter
nameGet the register name.
prefix
sizeGet the register size.

bit_type

alias of Clbit

name

Get the register name.

qasm

qasm()

Return OPENQASM string for this register.

size

Get the register size.

Was this page helpful?
Report a bug or request content on GitHub.