Skip to content

Shor in library corrected - post-processing#702

Merged
nadavyoran merged 2 commits intomainfrom
CAD-22506-shor-modular-exponentiation-correction
Jan 12, 2025
Merged

Shor in library corrected - post-processing#702
nadavyoran merged 2 commits intomainfrom
CAD-22506-shor-modular-exponentiation-correction

Conversation

@nadavyoran
Copy link
Member

PR Description

Some notes

  • Please make sure that you placed the files in an appropriate folder

  • And that the files have indicative names.

  • Please note that Classiq runs automatic code linting, which may minorly alter some files.

    • If you're familiar with pre-commit, you may run pre-commit install, and then at each commit, your files will be altered in a similar way

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -2,15 +2,15 @@
"cells": [
Copy link
Collaborator

@orsa-classiq orsa-classiq Jan 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #1.    from classiq.qmod import QNum, bind, control, within_apply

replace all of the imports to from classiq import *


Reply via ReviewNB

@@ -2,15 +2,15 @@
"cells": [
Copy link
Collaborator

@orsa-classiq orsa-classiq Jan 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #2.    print(result_1.parsed_states)

I think it is better to use result.parsed_counts


Reply via ReviewNB

@@ -2,15 +2,15 @@
"cells": [
Copy link
Collaborator

@orsa-classiq orsa-classiq Jan 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

powerregister -> missing space

Maybe also add what are you going to factorize here, what is a,etc.


Reply via ReviewNB

@@ -2,15 +2,15 @@
"cells": [
Copy link
Collaborator

@orsa-classiq orsa-classiq Jan 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'as expected' - redundant enter after expec

maybe add a reference to the continued fraction algorithm? (e.g wiki page)


Reply via ReviewNB

@nadavyoran nadavyoran force-pushed the CAD-22506-shor-modular-exponentiation-correction branch from b6810b6 to d864324 Compare January 9, 2025 16:01
@nadavyoran nadavyoran merged commit 743c4bd into main Jan 12, 2025
2 checks passed
@github-actions
Copy link

🔥 Fantastic work @nadavyoran! Your very first PR to classiq-library has been merged! 🎉🥳

If you're feeling adventurous, why not dive into another issue and keep contributing? The Classiq community would love to see more from you! 🚀

Happy coding! 👩‍💻👨‍💻

@classiqdor classiqdor deleted the CAD-22506-shor-modular-exponentiation-correction branch January 23, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants