-
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
Fix small issues in Shor tutorial #5639
Conversation
- use cirq.X instead of cirq.ops.X - Add a circuit_diagram_info for better printing - Add a few clarifications here and there. Also, this changes ArithmeticOperation to use a raw docstring so it will format better.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
" - the base\n", | ||
" - the modulus\n", | ||
"\n", | ||
" Note that the target and exponent should be qubit\n", |
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.
Optional: Strictly speaking exponent can be either a qubit register or a fixed constant, though for specific application in Shor's algorithm we use the former.
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.
I think I will skip this technicality since this docstring is describing our particular implementation.
* Fix small issues in Shor tutorial - use cirq.X instead of cirq.ops.X - Add a circuit_diagram_info for better printing - Add a few clarifications here and there. Also, this changes ArithmeticOperation to use a raw docstring so it will format better.
* Fix small issues in Shor tutorial - use cirq.X instead of cirq.ops.X - Add a circuit_diagram_info for better printing - Add a few clarifications here and there. Also, this changes ArithmeticOperation to use a raw docstring so it will format better.
Also, this changes ArithmeticOperation to use a raw
docstring so it will format better.