Skip to content
aiqbenchAI & Quantum Intelligence
NewsInsightsBenchmarksSkillsAsk AILearnAbout
...Loading your session
NewsInsightsBenchmarksSkillsAsk AILearnAbout
  1. Future Jobs
  2. ›
  3. Quantum Software Developer
  4. ›
  5. Lesson 4 of 8

Shor's Algorithm & Cryptographic Implications

Beginner¶ Read · 3 min⚑ Mission · 35 min◆ Test · 5 questions✓ Checked Nov 30, 2026

You'll be able to:

You can sketch the high-level structure of Shor's algorithm (classical reduction of factoring to period-finding, plus quantum period-finding via QFT) and explain why it, more than any other algorithm, drives post-quantum cryptography deadlines.

Shor's algorithm is the reason organisations are replacing cryptography they have relied on for decades. It is worth understanding structurally, because the shape of the algorithm explains both why it works and why nothing comparable has emerged for other problems — which is exactly the question anyone planning a migration eventually asks.

The classical reduction

The first insight is not quantum at all. Factoring an integer N reduces to finding the period of a function: pick a random a with no common factor with N, and consider the function mapping x to a raised to the power x, modulo N. This function is periodic, and its period r is the smallest positive value where a to the power r is congruent to 1 modulo N.

Given r, and provided r is even and a further condition holds, elementary number theory recovers a factor of N by computing a greatest common divisor. If the conditions fail you pick a different a and retry, which succeeds with high probability after few attempts.

Everything here is classical arithmetic. The entire quantum requirement is finding r.

The quantum part

Classically, finding the period requires evaluating the function until it repeats, which takes exponentially many steps for large N. The quantum routine evaluates the function across a superposition of inputs, producing a state whose amplitudes carry the periodicity, then applies the Quantum Fourier Transform.

The QFT causes amplitudes to interfere so that outcomes related to the period reinforce and everything else cancels. Measuring the result yields a value from which r is recovered by classical post-processing. The exponential speedup comes entirely from the QFT detecting periodicity — the structure the problem happened to have.

Why this drives migration deadlines

Three properties combine into urgency. It is exponential rather than incremental, so no key size restores safety. It targets precisely the problems underlying RSA, Diffie-Hellman, and elliptic curve cryptography, so those fail together rather than degrading independently. And recorded traffic is retroactively vulnerable, so data intercepted today is exposed whenever the capability arrives.

The same structure explains the limits of the threat. Symmetric ciphers and hash functions have no comparable periodic structure to exploit, so they face only Grover's quadratic reduction, which larger keys handle. The threat is precisely scoped to a mathematical property, not to cryptography in general.

Failure modes

Threat over-generalised — assuming all cryptography breaks. Signal: effort spent replacing AES ahead of key exchange.

Timeline-gated planning — migration deferred pending hardware. Signal: no analysis of confidentiality lifetimes.

Resource estimates ignored — headline qubit counts read as physical qubits. Signal: forecasts that omit error-correction overhead.

Signatures overlooked — attention on confidentiality only. Signal: no plan for long-lived signing keys.

Explaining this to stakeholders

On what it does: it turns factoring into finding a repeating pattern, and quantum machines are unusually good at spotting repeating patterns. That is the whole trick.

On why we cannot wait: someone recording encrypted traffic today can read it once the machine exists. If the data still matters then, it is at risk now.

On what survives: our bulk encryption is fine with a larger key. It is key exchange and signatures that have no equivalent fix, and those are what we are replacing.

Curated Materials

1.6h

The deep work happens here — the lesson is your briefing.

  • Shor: Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer (1995 extended version of the 1994 paper)Paper· 40 min
  • How Quantum Computers Break Encryption — Shor's Algorithm Explained (minutephysics)Video· 30 min
  • NIST: Post-Quantum Cryptography OverviewDocs· 25 min

Live on aiqbench

This lesson's subject on the rest of the site, today.

In the news, last 30 days

  • Improved quantum algorithm for factoring integers with Jacobi symbolarXiv · Dec 4
  • Harness or Fine-Tuning? Execution-Verified Agents for Qiskit-to-CUDA-Q PortingarXiv · Dec 4
  • Classiq Partners with Carahsoft to Distribute Quantum Software Across U.S. Public Sector ContractsQuantum Computing Report · Dec 4
More news on this subject →

Go further

  • Quantum vendors comparedQubits, fidelities and roadmaps, each with its source.
  • Ask AI about this lessonOpens Ask AI with a question about this lesson, answered from the news archive with sources.

Test your knowledge

5 questions in 100 seconds, on a page of its own. Read everything above first.

Test your knowledge →

Module Mission

30–40 min

Explain in one page — to a security engineer who is not a physicist — why Shor's algorithm breaks RSA and ECC but does not break AES. Include one honest caveat about current hardware.

Loading your work…

← Previous lesson3. Foundational Algorithms — Deutsch, Grover, QFTNext lesson →5. NISQ, Variational Algorithms & Practical Use
aiqbench
AI & Quantum Intelligence© aiqbench. All rights reserved.

Feeds:RSS·JSON Feed

LanguageEnglish·Românăbeta
NewsAI & TechQuantumInsights
ExploreBenchmarksLearn
CompanyAboutTrustLegal noticeTerms of ServicePrivacy PolicyCopyright noticesData erasureReport content

The aiqbench take, the insights, the daily digest and Ask answers are written by AI models from the sources shown, without editorial review before publication. They may contain errors — check the source. How the model is used →

  • News
  • Insights
  • Ask AI
  • Benchmarks
  • Account