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

Copy states in Clifford simulator #3664

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

tonybruguier
Copy link
Contributor

During the (ongoing) review of #3630 95-martin-orion@ found a bug in my draft code. He said that I should copy state like in #3109. I changed my code and added a test in that PR.

However, I had inspired myself from the Clifford code which could have the same issue (I think), and so I am fixing the code in the present PR.

@tonybruguier tonybruguier requested review from cduck, vtomole and a team as code owners January 12, 2021 01:03
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Jan 12, 2021
@tonybruguier
Copy link
Contributor Author

By the way, I'm not pushing for it. It's just a response to the comment, and it could very well be based on me not understanding the suggestion.

@95-martin-orion 95-martin-orion added the BREAKING CHANGE For pull requests that are important to mention in release notes. label Jan 12, 2021
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I've added the BREAKING CHANGE label since this does modify the simulator behavior - if anyone relied on the old (incorrect) ability to mutate the simulator state from a step result, their workflow would be broken by this.

@95-martin-orion 95-martin-orion added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jan 12, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jan 12, 2021
@CirqBot CirqBot merged commit 2a9fff7 into quantumlib:master Jan 12, 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 Jan 12, 2021
@tonybruguier tonybruguier deleted the clifford_copy_state branch January 13, 2021 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE For pull requests that are important to mention in release notes. cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants