-
Notifications
You must be signed in to change notification settings - Fork 51
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
[mod_arithmetic] Organize modular addition #907
Conversation
@tanujkhattar or @fdmalone can you ptal |
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.
LGTM, mostly organization. Some small nits
return t_complexity(cirq.decompose_once(op)) | ||
return t_complexity(op) |
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.
Why this change?
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.
It was causing a failure if it encountered CRz. I don't understand why you'd want to decompose it again. Controlled.as_cirq_op
(above) should do the trick
mod_arithmetic
that will contain modular arithmetic.[C][Mod]Op[K]
More to come after this