-
Notifications
You must be signed in to change notification settings - Fork 1k
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
enable simulation of controlled gates in classical simulator #6589
enable simulation of controlled gates in classical simulator #6589
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6589 +/- ##
=======================================
Coverage 97.81% 97.81%
=======================================
Files 1063 1063
Lines 91761 91796 +35
=======================================
+ Hits 89755 89793 +38
+ Misses 2006 2003 -3 ☔ View full report in Codecov by Sentry. |
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 for noticing this and offering to help, I left a couple of comments
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.
one more thing + CI
whoops, I realized why I wasn't seeing the linter errors locally---I was mistaken about what running |
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.
@GregDMeyer thanks for your contribution. great work
Currently, only X, CNOT, TOFFOLI, SWAP, and measurement are supported by
cirq.ClassicalStateSimulator
. This pull request adds support for versions of the first four gates with an arbitrary number of controls (as generated by the.controlled()
function).