QuantumRegister

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

Implement a quantum register.

Create a new generic register.

Attributes

QuantumRegister.instances_counter

QuantumRegister.name

Get the register name.

QuantumRegister.prefix

QuantumRegister.size

Get the register size.

Methods

QuantumRegister.__getitem__(key)

Arg:

QuantumRegister.__len__()

Return register size.

QuantumRegister.qasm()

Return OPENQASM string for this register.

QuantumRegister.__getitem__(key)

Arg:

QuantumRegister.__len__()

Return register size.