AncillaQubit
class qiskit.circuit.AncillaQubit(register=None, index=None)
Bases: Qubit
A qubit used as ancillary qubit.
Creates a qubit.
Parameters
- register (QuantumRegister) – Optional. A quantum register containing the bit.
- index (int) – Optional. The index of the bit in its containing register.
Raises
CircuitError – if the provided register is not a valid QuantumRegister
Was this page helpful?
Report a bug or request content on GitHub.