Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

AncillaQubit

AncillaQubit(register=None, index=None) GitHub(opens in a new tab)

Bases: qiskit.circuit.quantumregister.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


Attributes

index

Get bit’s index.

register

Get bit’s register.

Was this page helpful?