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

Move CliffordTableau and add unit test #4085

Merged
merged 8 commits into from
May 5, 2021

Conversation

bichengying
Copy link
Collaborator

@bichengying bichengying commented May 4, 2021

Fix #4075.

To avoid breakage, the original cirq/sim/clifford/CliffordTableau is untouched added with deprecated notation.
All internal import of Cliffod Tableau is pointed to the new position under cirq/qis. (Unless people have strong opinions of putting it into other places.)

New clifford_tableau is the same as the old one except in one place -- the xs, zs, and rs are protected by getter and setter pattern and do not expose the last scratch row.

@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label May 4, 2021
Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

Thank you!
I added some comments + we need to add a test for the deprecated behavior - see unit test examples where cirq.testing.assert_deprecated is used.

@bichengying bichengying marked this pull request as ready for review May 4, 2021 04:47
@bichengying bichengying requested review from cduck, vtomole and a team as code owners May 4, 2021 04:47
@bichengying
Copy link
Collaborator Author

Thanks. Added the assert_deprecated. PTAL.

@bichengying bichengying requested a review from balopat May 4, 2021 04:48
Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM, beautiful! Thanks for writing the great tests for it!

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label May 5, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label May 5, 2021
@CirqBot CirqBot merged commit 226ca20 into quantumlib:master May 5, 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 May 5, 2021
@bichengying bichengying deleted the tableau branch November 6, 2021 04:11
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Fix quantumlib#4075.

To avoid breakage, the original `cirq/sim/clifford/CliffordTableau` is untouched added with deprecated notation.
All internal import of Cliffod Tableau is pointed to the new position under `cirq/qis`. (Unless people have strong opinions of putting it into other places.)

New clifford_tableau is the same as the old one except in one place -- the `xs`, `zs`, and `rs` are protected by getter and setter pattern and do not expose the last scratch row.
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. kind/deprecation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Clifford Tableau Out of cirq/sim/clifford folder
3 participants