AncillaRegister

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

Implement an ancilla register.

Create a new generic register.

Attributes

AncillaRegister.instances_counter

AncillaRegister.name

Get the register name.

AncillaRegister.prefix

AncillaRegister.size

Get the register size.

Methods

AncillaRegister.__getitem__(key)

Arg:

AncillaRegister.__len__()

Return register size.

AncillaRegister.qasm()

Return OPENQASM string for this register.

AncillaRegister.__getitem__(key)

Arg:

AncillaRegister.__len__()

Return register size.