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

Include global phase of -i for Rx/Ry of Pi #163

Merged
merged 2 commits into from
May 2, 2024
Merged

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented May 2, 2024

This fixes the shortcut used to optimize Rx/Ry of Pi, where we offload to X/Y, by ensuring the expected global phase of i is included. This also includes new matrix-based unit tests that verify the expected behavior is mathematically correct.

Fixes #162

This fixes the shortcut used to optimize Rx/Ry of Pi, where we offload to X/Y, by ensuring the expected global phase of i is included. This also includes new matrix-based unit tests that verify the expected behavior is mathematically correct.

Fixes #162
@swernli swernli requested review from idavis and billti as code owners May 2, 2024 20:41
@swernli swernli merged commit 5ceea4f into main May 2, 2024
15 checks passed
@swernli swernli deleted the swernli/issue162 branch May 2, 2024 21:04
swernli added a commit that referenced this pull request May 20, 2024
This fix was missing from #163, which only addressed the special case for rotations by Pi and missing the corresponding special case for rotations by 2 Pi. This makes sure the phase of -1 is present for Rx/Ry by 2 Pi, and adds tests to confirm them.
swernli added a commit that referenced this pull request May 21, 2024
This fix was missing from #163, which only addressed the special case for rotations by Pi and missing the corresponding special case for rotations by 2 Pi. This makes sure the phase of -1 is present for Rx/Ry by 2 Pi, and adds tests to confirm them.
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.

Rx/Ry use shortcuts to X/Y for performance that lose expected global phase
2 participants