Skip to content

COMPAT: circuit.find_bit(q).index may break with future Qiskit versions #61

Description

@Manideep3969

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowLow priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions