Skip to content

Fix EjectPhasedPaulis incorrectly treating X**0 as X**1 #4219

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 2 commits into from
Jun 17, 2021

Conversation

cduck
Copy link
Collaborator

@cduck cduck commented Jun 17, 2021

Fixes #4218 and adds a test for the previously failing case.

The code treated the half-turns (exponent) value as whole-turns so both X1 and X0 were treated as whole X gates.

@cduck cduck requested review from vtomole and a team as code owners June 17, 2021 05:32
@cduck cduck requested a review from balopat June 17, 2021 05:32
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Jun 17, 2021
@cduck cduck force-pushed the fix-eject-paulis branch from ccc6396 to 353f683 Compare June 17, 2021 05:37
@cduck
Copy link
Collaborator Author

cduck commented Jun 17, 2021

Why is GitHub auto-requesting additional reviewers for me? I didn't request @balopat (or dstrain in #4213).

Copy link
Collaborator

@vtomole vtomole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@balopat
Copy link
Contributor

balopat commented Jun 17, 2021

Why is GitHub auto-requesting additional reviewers for me? I didn't request @balopat (or dstrain in #4213).

We setup pull request review rotation from the cirq-maintainers. It does it based on round robin. This reduces the notification noise at least for the cirq-maintainers team and also attempts to allocate PR reviews in a "fair" way.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 17, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 17, 2021
@CirqBot CirqBot merged commit 59d8018 into quantumlib:master Jun 17, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 17, 2021
@cduck cduck deleted the fix-eject-paulis branch June 17, 2021 17:20
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
)

Fixes quantumlib#4218 and adds a test for the previously failing case.

The code treated the half-turns (exponent) value as whole-turns so both X**1 and X**0 were treated as whole X gates.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
)

Fixes quantumlib#4218 and adds a test for the previously failing case.

The code treated the half-turns (exponent) value as whole-turns so both X**1 and X**0 were treated as whole X gates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EjectPhasedPaulis incorrect transformation of rx(0) gate
4 participants