Skip to content

Simplify Relabel logic #2085

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

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Simplify Relabel logic #2085

merged 1 commit into from
Jan 9, 2025

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Dec 31, 2024

This simplifies the relabeling logic to collapse the four match cases down into one for easier readibility. It avoids trying to optimize special cases for qubits that may not have been mapped and treats all labels as having an intial mapping to themselves.

Based on feedback from @DmitryVasilevsky in #2082 (comment)

This simplifies the relabeling logic to collapse the four match cases down into one for easier readibility. It avoids trying to optimize special cases for qubits that may not have been mapped and treats all labels as having an intial mapping to themselves.
@swernli swernli enabled auto-merge January 8, 2025 18:30
@swernli swernli disabled auto-merge January 8, 2025 18:30
@swernli swernli added this pull request to the merge queue Jan 9, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
This simplifies the relabeling logic to collapse the four match cases
down into one for easier readibility. It avoids trying to optimize
special cases for qubits that may not have been mapped and treats all
labels as having an intial mapping to themselves.

Based on feedback from @DmitryVasilevsky in
#2082 (comment)
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 9, 2025
@swernli swernli added this pull request to the merge queue Jan 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 9, 2025
@swernli swernli added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit 740c492 Jan 9, 2025
18 checks passed
@swernli swernli deleted the swernli/simplify-relabel-logic branch January 9, 2025 04:04
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