qiskit.circuit.AncillaQubit¶
-
class
AncillaQubit
(register=None, index=None)[source]¶ 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
-
__init__
(register=None, index=None)¶ 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
Methods
__init__
([register, index])Creates a qubit.
Attributes
Get bit’s index.
Get bit’s register.
-
property
index
¶ Get bit’s index.
-
property
register
¶ Get bit’s register.