Skip to content

Fix small issues in Shor tutorial#5639

Merged
dstrain115 merged 3 commits intoquantumlib:masterfrom
dstrain115:tutorial_shors
Jun 30, 2022
Merged

Fix small issues in Shor tutorial#5639
dstrain115 merged 3 commits intoquantumlib:masterfrom
dstrain115:tutorial_shors

Conversation

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

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
Comment thread docs/experiments/shor.ipynb
Comment thread docs/experiments/shor.ipynb
@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
Copy Markdown
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
Copy Markdown
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