English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.circuit.ClassicalRegister

class ClassicalRegister(size, name=None)[source]

Implement a classical register.

Create a new generic register.

__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

name

Get the register name.

prefix

size

Get the register size.

bit_type

alias of Clbit

property name

Get the register name.

qasm()[source]

Return OPENQASM string for this register.

property size

Get the register size.