Skip to content

Conversation

@mkvanhooft
Copy link
Collaborator

Fix bug when using qubits after creating multiple qubits with min_fidelity_all_at_end specified. qubits are incorrectly deactivated during compilation in the SDK. Using the EPR qubits in this situation will trigger a QubitNotActiveError when adding a measure instruction to the subroutine for that qubit.

  • Qubits are not deactivated in the cleanup code inside sdk_create_epr_keep in the builder when min_fidelity_all_at_end is used
  • Expanded test_create_epr_min_fidelity_all test to check if the qubits created can be used for gates and measurements and don't trigger an error that they are not active

…elity_all_at_end specified. qubits are incorrectly deactivated during compilation in the SDK

* Qubits are not deactivated in the cleanup code inside sdk_create_epr_keep in the builder when min_fidelity_all_at_end is used
* Expanded test_create_epr_min_fidelity_all test to check if the qubits created can be used for gates and measurements and don't triger an error that they are not active
@mkvanhooft mkvanhooft self-assigned this Jan 12, 2026
@dieriver dieriver merged commit 7759a4b into develop Jan 12, 2026
11 checks passed
@dieriver dieriver deleted the fix-qubits-not-active-epr-keep-min-fidelity branch January 12, 2026 16:23
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.

3 participants