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

Fix phase for rotations by 0.0 #186

Merged
merged 1 commit into from
Jun 15, 2024
Merged

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Jun 14, 2024

This follows up on the fix from #173, which inadvertantly introduced a global phase on Rx/Ry rotations by 0.0 (and odd increments of Pi). This avoids the problem by checking the other part of the matrix to determine if the phase is required rather than applying it unconditionally.

This follows up on the fix from #173, which inadvertantly introduced a global phase on Rx/Ry rotations by 0.0 (and odd increments of Pi). This avoids the problem by checking the other part of the matrix to determine if the phase is required rather than applying it unconditionally.
@swernli swernli merged commit 2fac735 into main Jun 15, 2024
14 checks passed
@swernli swernli deleted the swernli/yet-another-phase-fix branch June 15, 2024 18:29
github-merge-queue bot pushed a commit to microsoft/qsharp that referenced this pull request Jun 17, 2024
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