Issue
circuit.find_bit(q).index is used extensively (scheduling.py:216, cutting.py:342, fusion.py:303, batching.py:296, cost_model.py:375). Qiskit has been deprecating find_bit in favor of direct indexing. Extensive usage across the codebase could break.
Fix
Migrate to circuit.qubits.index(q) or use q._index where appropriate, with compatibility wrappers.
Issue
circuit.find_bit(q).indexis used extensively (scheduling.py:216,cutting.py:342,fusion.py:303,batching.py:296,cost_model.py:375). Qiskit has been deprecatingfind_bitin favor of direct indexing. Extensive usage across the codebase could break.Fix
Migrate to
circuit.qubits.index(q)or useq._indexwhere appropriate, with compatibility wrappers.