Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative version of relabeling #2083

Closed
wants to merge 2 commits into from
Closed

Conversation

DmitryVasilevsky
Copy link
Contributor

No description provided.

swernli and others added 2 commits December 28, 2024 21:51
When relabeling qubits arrays with odd lengths 5 or greater, the final case in the match statement triggered with a bug that caused the mappings tracked for swaps to be updated incorrectly, resulting in the wrong qubit labels being swapped. This fixes the bug, updates some variable names and comments for clarity, and adds new test cases to verify the expected behavior. It also fixes a minor test bug in a related test that was verifying the wrong state.

Fixes #2077
Base automatically changed from swernli/issue2077 to main December 30, 2024 19:20
@DmitryVasilevsky
Copy link
Contributor Author

This will be addressed later in a different PR.

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.

2 participants