2026-07-07

Shor's Algorithm: Why Unique Continued Fractions Matter

The classical post-processing step most quantum factoring demos skip — and why it determines whether RSA-2048 falls in 2030 or 2035.

In short: Shor's algorithm's continued fractions step requires a uniqueness condition that most quantum factoring demonstrations treat as automatic — and getting it right is what separates credible RSA-breaking claims from marketing.

— BrunoSan Quantum Intelligence · 2026-07-07
· 5 min read · 1090 words
quantum computingShor's algorithmRSAcryptography2026

A July 2026 question on Quantum Computing StackExchange, citing David Mermin's Quantum Computer Science, surfaces a detail that most Shor's algorithm explanations gloss over: the continued fractions step that recovers the order r from a quantum measurement outcome y depends on a uniqueness condition from Hardy and Wright's An Introduction to the Theory of Numbers. Without that condition, the algorithm can converge to the wrong rational and fail to factor the target integer — even when the quantum hardware performed perfectly.

For CTOs and technical VCs evaluating quantum computing roadmaps, the implication is concrete: every credible factoring demonstration depends on classical post-processing that is rarely published in full. The companies that handle this step transparently will own the credibility advantage when RSA-2048 factoring becomes feasible.

What the Continued Fractions Step Actually Does

Shor's algorithm has two phases. The quantum phase uses period-finding to produce a measurement outcome y that, with probability greater than 40%, lies within 1/2 of an integer multiple of 2^n/r, where n is the number of measurement qubits and r is the order of a randomly chosen element modulo N. The classical phase then recovers r from y.

The recovery uses the continued fraction expansion of y/2^n. If |y/2^n − j/r| ≤ 1/(2N²), and since r < N, this implies |y/2^n − j/r| ≤ 1/(2r²). The Hardy–Wright theorem then guarantees that j/r is the unique rational with denominator at most r within distance 1/(2r²) of y/2^n. Uniqueness is what makes the continued fraction algorithm return the correct order — and not some other rational that happens to be close.

Without uniqueness, the algorithm could converge to a fraction j/r' where r' is a multiple or divisor of the true order, producing a useless result. The 1/(2N²) bound in Mermin's presentation is precisely what ensures the bound is tight enough to satisfy the 1/(2r²) requirement. This is the silent gatekeeper that most quantum factoring demonstrations skip over in their press releases.

Why This Matters for Quantum Factoring Claims

Every public demonstration of Shor's algorithm — from IBM's 2001 factoring of 15 on a 7-qubit NMR device to more recent trapped-ion and superconducting claims targeting larger integers — depends on this classical step working correctly. The quantum hardware gets the headlines; the continued fractions post-processing is what determines whether the demonstration is valid.

For CTOs evaluating quantum vendors, the implication is direct: any factoring claim should be reproducible with the classical post-processing made explicit. Vendors that publish only the quantum circuit and the final factors — without showing the intermediate measurement outcomes and the continued fraction convergents — leave room for the result to be a lucky guess rather than a validated algorithm run.

This is not a hypothetical concern. The cryptographic community has historically been quick to flag factoring demonstrations that don't disclose their measurement statistics. A single ambiguous continued fraction convergent can invalidate a "first to factor N" claim, and the burden of proof falls on the vendor.

Competitive Implications

This affects the credibility gap between hardware roadmaps. IBM's 2025 announcement of a 127-qubit Heron processor and its longer-term path to fault-tolerant quantum computing via the 1386-qubit Condor and the 2029 Kookaburra system all assume that Shor's post-processing will scale. IonQ, Quantinuum, and PsiQuantum face the same constraint: their logical-qubit roadmaps are bounded above by the classical difficulty of recovering r from noisy measurements, not just by quantum hardware fidelity.

The companies most exposed are those that have published factoring demonstrations without releasing the full measurement statistics. A vendor that claims to factor a 64-bit integer but cannot show the convergents that produced the order has not, in any rigorous sense, demonstrated Shor's algorithm — only that some classical search found a factor. This is a low bar to clear: the convergents are a few lines of output from any standard continued fraction library.

For investors, this creates a diligence opportunity. The classical post-processing is computationally cheap and well-understood; verifying a vendor's claim requires only a laptop and the published measurement outcomes. Quantum VCs who ask for the convergents will separate credible demonstrations from marketing. The same diligence applies to quantum advantage claims in optimization and simulation, where the classical baseline is often the harder part of the comparison.

Adjacent markets benefit from this scrutiny. Quantum software vendors — Classiq, QC Ware, Zapata — that build classical post-processing into their stacks have an underappreciated moat. As factoring demonstrations scale, the classical wrapper becomes a larger share of the engineering effort, and vendors that own that wrapper capture more value.

The Bigger Picture: 2026 Quantum-Cryptography Landscape

The continued fractions step is one of several classical bottlenecks that determine when RSA-2048 becomes practically breakable. NIST finalized its post-quantum cryptography standards — ML-KEM, ML-DSA, and SLH-DSA — in August 2024, with federal migration timelines extending through the 2030s. The implicit assumption is that cryptographically relevant quantum computers will arrive in the 2030–2035 window, but that window is set by hardware milestones, not by the classical post-processing, which is well-understood and runs in milliseconds on a laptop.

Recent comparable milestones calibrate the pace. Google's December 2024 announcement of the Willow chip — 105 qubits with error rates below 10⁻³ — moved the field closer to the surface-code threshold needed for fault-tolerant operation. Quantinuum's H2 system, announced in 2024, claims 32 trapped-ion qubits with all-to-all connectivity and measured two-qubit gate fidelities above 99.7%. PsiQuantum's 2025 funding round of $940 million, led by BlackRock, signaled continued institutional conviction that photonic quantum computing will scale to millions of qubits.

What the StackExchange question reveals is that the classical side of Shor's algorithm is more pedagogically neglected than it should be — and that neglect creates a credibility risk for vendors who skip over it in their technical disclosures. As quantum hardware approaches the threshold for factoring larger integers, the classical post-processing will move from a textbook footnote to a board-level diligence question.

The signal here is that the uniqueness condition in the continued fractions step is the silent gatekeeper of every Shor's algorithm demonstration. Quantum hardware roadmaps get the press; the classical post-processing determines whether the press release is real.

In short: Shor's algorithm's continued fractions step requires a uniqueness condition that most quantum factoring demonstrations treat as automatic — and getting it right is what separates credible RSA-breaking claims from marketing.

Frequently Asked Questions

What does the continued fractions step in Shor's algorithm do?
It converts a quantum measurement outcome y into a candidate order r of an element modulo N, which is then used to compute a factor of N. The step uses the Hardy–Wright theorem to guarantee that the recovered fraction j/r is the unique rational within distance 1/(2r²) of y/2^n. Without this uniqueness guarantee, the algorithm could converge to the wrong rational and fail to factor N. This classical computation runs in milliseconds on a laptop.
How does this affect quantum computing roadmaps?
It doesn't slow them down directly — the continued fractions computation is classical and polynomial-time. But it does affect the credibility of factoring demonstrations. Vendors that don't publish their measurement outcomes and convergents leave their claims open to challenge from the cryptographic community. The hardware milestones that matter — IBM's 2029 Kookaburra, Google's Willow-class systems, Quantinuum's H3 — all assume this step scales correctly.
Is quantum computing ready to break RSA-2048?
No. Current systems have on the order of 100–1000 physical qubits and error rates far above what Shor's algorithm requires. Credible estimates put cryptographically relevant quantum computers — capable of factoring RSA-2048 in hours — at 2030–2035, assuming continued progress in error correction. NIST's post-quantum standards, finalized in August 2024, assume a similar migration timeline.
What is the business model for quantum computing vendors?
Most public quantum vendors (IonQ, Rigetti, D-Wave) sell cloud access to their hardware, priced per quantum operation or per minute. IBM and Google bundle hardware with proprietary software stacks and consulting. The longer-term bet is on quantum advantage in optimization, simulation, and machine learning before cryptography becomes commercially relevant. PsiQuantum's $940M 2025 round signals continued institutional conviction in photonic scaling.
What quantum computing milestones matter most in 2026?
Three: (1) demonstrations of logical qubits with error rates below 10⁻⁶, (2) quantum advantage claims in commercially relevant problems beyond random circuit sampling, and (3) credible factoring demonstrations beyond small integers with full classical post-processing disclosed. The third is the most underreported and arguably the most important for credibility as RSA-2048 factoring timelines compress.

Follow Shor's algorithm continued fractions Intelligence

BrunoSan Quantum Intelligence tracks Shor's algorithm continued fractions and 44+ quantum computing signals daily — ArXiv papers, Nature, APS, IonQ, IBM, Rigetti and more. Updated every cycle.

Explore Quantum MCP →