Skip to content

fix(#61): replace circuit.find_bit(q).index with compatibility wrappers - #111

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-61-qiskit-find-bit-compat
Aug 24, 2026
Merged

fix(#61): replace circuit.find_bit(q).index with compatibility wrappers#111
Manideep3969 merged 1 commit into
mainfrom
fix/issue-61-qiskit-find-bit-compat

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Adds qubit_index() and clbit_index() helper functions in utils.py, replacing 24 direct find_bit calls across 5 files. Single migration point if Qiskit deprecates find_bit. All 362 tests pass.

circuit.find_bit(q).index is used 24 times across 5 files and may be
deprecated in future Qiskit versions. Add qubit_index() and
clbit_index() helper functions in utils.py and replace all direct
find_bit calls. This provides a single migration point if Qiskit
changes the API.
@Manideep3969
Manideep3969 merged commit 78b3bd1 into main Aug 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant