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

Preserve queued rotations across id swap #68

Merged
merged 3 commits into from
Jun 6, 2023
Merged

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Jun 3, 2023

This change fixes an issue with swap_qubit_ids that could cause queued rotations on swapped qubits to get lost. The updated logic correctly queries the maps before applying changes and updates the right qubits with the right values. It also introduces a test case that verifies swapping respects queued rotations, and slightly optimizes the queuing of rx rotations.

This change fixes an issue with `swap_qubit_ids` that could cause queued rotations on swapped qubits to get lost. The updated logic correctly queries the maps before applying changes and updates the right qubits with the right values. It also introduces a test case that verifies swapping respects queued rotations, and slightly optimizes the queuing of `rx` rotations.
@swernli swernli requested review from idavis and billti as code owners June 3, 2023 07:14
@swernli swernli enabled auto-merge (squash) June 6, 2023 19:00
@swernli swernli merged commit bbbe934 into main Jun 6, 2023
@swernli swernli deleted the swernli/swap-rotations branch June 6, 2023 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.

2 participants