AncillaQubit

class AncillaQubit(register, index)[source]

A qubit used as ancillary qubit.

Creates a qubit.

Parameters
  • register (QuantumRegister) – a quantum register.

  • index (int) – the index to insert the qubit

Raises

CircuitError – if the provided register is not a valid QuantumRegister

Attributes

AncillaQubit.index

Get bit’s index.

AncillaQubit.register

Get bit’s register.

Methods