-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 a bug is StabilizerState repr #11368
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7096995386Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Shelly. Can you add a one-line fix release note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* fix a bug in StabilizerState repr * add a test to check repr does not throw an error * add release notes (cherry picked from commit 1b69780)
* fix a bug in StabilizerState repr * add a test to check repr does not throw an error * add release notes (cherry picked from commit 1b69780) Co-authored-by: Shelly Garion <[email protected]>
Summary
Currently, printing
StabilizerState(qc)
raises the following error, since the Clifford class API has been changed.AttributeError: 'Clifford' object has no attribute 'stabilizer'
This PR fixes this bug, and adds a test to check that the printing does not raise an error.
Details and comments