ClassicalRegister

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

Implement a classical register.

Create a new generic register.

Attributes

ClassicalRegister.instances_counter

ClassicalRegister.name

Get the register name.

ClassicalRegister.prefix

ClassicalRegister.size

Get the register size.

Methods

ClassicalRegister.__getitem__(key)

Arg:

ClassicalRegister.__len__()

Return register size.

ClassicalRegister.qasm()

Return OPENQASM string for this register.

ClassicalRegister.__getitem__(key)

Arg:

ClassicalRegister.__len__()

Return register size.