qiskit.circuit.QuantumCircuit.find_bit¶
- QuantumCircuit.find_bit(bit)[소스]¶
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 eitherqubits
,clbits
, depending on its type). The second element (registers
) is a list of(register, index)
pairs with an entry for eachRegister
in the circuit which contains theBit
(and the index in theRegister
at which it can be found).
- A 2-tuple. The first element (
- 반환 형식
namedtuple(int, List[Tuple(Register, int)])
참고
The circuit index of an
AncillaQubit
will be its index inqubits
, notancillas
.