Intermediate Topic 27 of 51 Emerging & Frontier Topics
Shor's Algorithm
Quantum method factoring integers efficiently.
How it works
Shor's 1994 algorithm factors an integer N in polynomial time on a quantum computer. It reduces factoring to finding the period r of the function a to the x modulo N for a random a. A quantum circuit puts the input register in superposition, computes the function, and applies the quantum Fourier transform, so measurement reveals a multiple of 1/r with high probability. Classical post-processing with continued fractions recovers r, and gcd calculations then give factors of N. The best classical methods need super-polynomial time.
Where it is used
Its importance is that it would break RSA and elliptic-curve cryptography, motivating post-quantum cryptography standards.
Common pitfall
Running it on numbers of cryptographic size needs thousands of error-corrected logical qubits, far beyond today's machines, so current demonstrations factor tiny numbers. Organizations should plan migration to quantum-resistant algorithms now, since encrypted data can be stored and decrypted later.
Where it fits in the course
Shor's Algorithm is topic 27 of 51 in Emerging & Frontier Topics, rated Intermediate. It follows Entanglement. The next topic is Grover's Algorithm.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Emerging & Frontier Topics quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Emerging & Frontier Topics quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Shor's Algorithm?
Where do people use Shor's Algorithm?
What is the most common mistake with Shor's Algorithm?
What should I learn before this topic?
How can I practice it?
Is Shor's Algorithm hard to learn?
How long does it take to learn Shor's Algorithm?
Which topics are related to Shor's Algorithm?
What should I study after Shor's Algorithm?
Related topics
- Entanglement (Emerging & Frontier Topics)
- Grover's Algorithm (Emerging & Frontier Topics)
- Quantum Gates (Emerging & Frontier Topics)
- Quantum Error Correction (Emerging & Frontier Topics)
- Algorithm Basics (Algorithms)
- Dijkstra's Algorithm (Algorithms)
- Bellman-Ford Algorithm (Algorithms)