Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Classical Implementation & Testing of Shor’s Algorithm (#12318) #12547

Unanswered
adityakrmishra asked this question in Q&A
Discussion options

Hi everyone!

I have worked on implementing and testing a classical simulation of Shor’s Algorithm without using quantum computing libraries like Qiskit or Cirq. The goal is to demonstrate how Shor’s Algorithm factors composite numbers in a classical setting.

Implementation Highlights:

  • Uses modular exponentiation and order-finding to determine factors.
  • Checks for trivial factors before proceeding with the order-finding method.
  • Returns valid non-trivial factors of N.

Added Tests:

  • Unit tests cover multiple values of N (e.g., 15, 21, 35, 55).
  • Ensures correctness using pytest.

💡 Discussion Points:

  • Are there ways to optimize the order-finding process?
  • Should we add support for larger numbers?
  • Any edge cases we should test?

📌 You can find the PR here: PR #12545
Let me know your thoughts and feedback! 🚀

Thanks!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /