Skip to content
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

Merged
merged 3 commits into from
Jun 30, 2022

Conversation

dstrain115
Copy link
Collaborator

  • 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.

- 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.
@dstrain115 dstrain115 requested review from a team, vtomole and cduck as code owners June 29, 2022 17:55
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@CirqBot CirqBot added the size: S 10< lines changed <50 label Jun 29, 2022
docs/experiments/shor.ipynb Show resolved Hide resolved
docs/experiments/shor.ipynb Show resolved Hide resolved
@dstrain115 dstrain115 requested a review from viathor June 29, 2022 19:49
" - the base\n",
" - the modulus\n",
"\n",
" Note that the target and exponent should be qubit\n",
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

@dstrain115 dstrain115 merged commit d2484d5 into quantumlib:master Jun 30, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
* 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.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants