Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.find_bit

QuantumCircuit.find_bit(bit)[source]

Find locations in the circuit which can be used to reference a given Bit.

প্যারামিটার

bit (Bit) -- The bit to locate.

রিটার্নস

A 2-tuple. The first element (index)

contains the index at which the Bit can be found (in either qubits, clbits, depending on its type). The second element (registers) is a list of (register, index) pairs with an entry for each Register in the circuit which contains the Bit (and the index in the Register at which it can be found).

রিটার্ন টাইপ

namedtuple(int, List[Tuple(Register, int)])

Notes

The circuit index of an AncillaQubit will be its index in qubits, not ancillas.

রেইজেস
  • CircuitError -- If the supplied Bit was of an unknown type.

  • CircuitError -- If the supplied Bit could not be found on the circuit.

রিটার্ন টাইপ

BitLocations