Skip to content

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Jan 6, 2026

This change avoids an issue with programs compiled for Base Profile that use initial resets on qubits and causes reindex to increase the total qubit count unnecessarily. Instead of treating these like the other resets during the program, a reset on a qubit that has not been used in any other operation is not reindexed and the reset is simply dropped.

This additionally fixes #2575 by removing the QubitReset capability which no longer applies since qubit reset is a default part of the Adaptive capability.

…sets

This change avoids an issue with programs compiled for Base Profile that use initial resets on qubits and causes reindex to increase the total qubit count unnecessarily. Instead of treating these like the other resets during the program, a reset on a qubit that has not been used in any other operation is not reindexed and the reset is simply dropped.

This additionally fixes #2575 by removing the `QubitReset` capability which no longer applies since qubit reset is a default part of the `Adaptive` capability.
@swernli swernli added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 20c2fb1 Jan 6, 2026
18 checks passed
@swernli swernli deleted the swernli/better-reindex-reset branch January 6, 2026 19:06
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.

Remove the QubitReset capability since that is now implied by Adaptive (ie: it's part of "core" adaptive)

3 participants