Movatterモバイル変換


[0]ホーム

URL:


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 inQ&A
Discussion options

Hi everyone!

I have worked on implementing and testing aclassical 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 ofN.

Added Tests:

  • Unit tests cover multiple values ofN (e.g., 15, 21, 35, 55).
  • Ensures correctness usingpytest.

💡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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@adityakrmishra

[8]ページ先頭

©2009-2025 Movatter.jp