-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add measurement gate. #141
Conversation
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.
First pass of review comments - still need to review tests, and likely need another read of the *for
files.
I can think of several Cirq users who will be very happy to have this. On their behalf, thanks for building this feature out!
@@ -49,7 +51,7 @@ struct BasicGateFuser final { | |||
* applied together. Note that gates fused with this method are not | |||
* multiplied together until ApplyFusedGate is called on the output. | |||
* @param num_qubits The number of qubits acted on by 'gates'. | |||
* @param gates The gates to be fused. | |||
* @param gates The gates to be fused. Gate times should be ordered. |
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.
This is a change from our previous assumptions, correct? re: #74
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.
Correct. Gates don't get explicitly sorted. So there was a possibility of getting incorrect results for unordered gate times.
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 remaining request for comments - otherwise this is ready to merge. Thanks again!
Thank you for the review. I added a function comment. |
This PR also cleans up statespace.