English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.circuit.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

__init__(register, index)

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

Methods

__init__(register, index)

Creates a qubit.

Attributes

index

Get bit’s index.

register

Get bit’s register.

property index

Get bit’s index.

property register

Get bit’s register.