-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
Environment
- Qiskit version:
RC1
What is happening?
In <=1.4, BitLocation
, being a namedtuple
, is indexable. With no deprecation period, it is now not indexable.
How can we reproduce the issue?
You can reproduce by running this snippet on main
from qiskit import QuantumCircuit
circuit = QuantumCircuit(1)
circuit.find_bit(circuit.qubits[0])[0]
What should happen?
The snippet should not raise an IndexError.
Any suggestions?
Implement the getitem dunder.
garrison
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working