Shor's Factoring Algorithm
Shor's algorithm (1994) factors an integer N in O((log N)Β³) time β exponentially faster than the best classical algorithms, which run in sub-exponential but super-polynomial time. Since RSA encryption relies on the hardness of factoring large numbers, a large-scale quantum computer running Shor's algorithm would break RSA and most public-key cryptography currently protecting the internet.
Key Concepts
Key Equations
Factoring N=15 with a=7
Use period finding to factor with base .
Compute powers of 7 mod 15 to find the period:
Period . Now compute the factors:
Exercises
6 problems
Find the period of : . What is ?
Unlock Exercise 3
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro β(Use period : , so answer .)
Unlock Exercise 4
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro β
Unlock Exercise 5
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro βShor's algorithm time complexity is . What is ?
Unlock Exercise 6
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro βKey Takeaways
- Shor's algorithm factors in time β exponentially faster than any known classical method.
- The key step is period finding: find s.t. ; then gives factors.
- The QFT efficiently extracts the period from the periodic amplitude pattern of .
- RSA security relies on factoring being hard classically; Shor's algorithm breaks this assumption.
- Post-quantum cryptography (lattice-based, hash-based) is being standardized to resist quantum attacks.