+ Part I · One sample

What is hard, and what a qubit is.

A laptop multiplies two primes of 309 digits each in a fraction of a millisecond, while no computer yet built can find them again from their 617-digit product. Part I starts from that asymmetry. Chapter 1 shows why the reverse direction defeats ordinary computers however fast they become. Chapter 2 shows what a qubit physically is and what reading one gives, and Chapter 3 what a quantum computer holds between readings: not odds, but arrows that can add up or cancel.

01 — The wall

Problems that outgrow computers.

+ The questionWhy can't a faster ordinary computer factor a 617-digit number?

One sum, two directions

RSA-2048 is a number 617 digits long that the security research group RSA Laboratories published as part of a factoring challenge, with a prize of 200,000 dollars for anyone who found its two prime factors. The challenge ended in 2007 and the prize was never claimed. Some challenge numbers are named by their length in decimal digits, such as RSA-260, and others by their length in binary digits, or bits, such as RSA-768, RSA-896 and RSA-2048. A decimal digit is worth about 3.32 bits, so 2,048 bits make 617 digits. The number is the product of two primes of about 309 digits each, and finding them is the whole difficulty. Multiplying the two primes together is quick: the schoolbook method takes about 309 × 309, or roughly 95,000, single-digit multiplications, which a laptop does in a fraction of a millisecond.

Going back is another matter. The obvious method is trial division, which divides the number by every prime in turn and must try candidates up to its square root, a number of about 309 digits for RSA-2048. There are far more such candidates than the roughly 10⁸⁰ atoms usually estimated for the observable universe. The asymmetry is what RSA encryption rests on: anyone may encrypt a message with an RSA public key, which contains a large product, and the private key that decrypts it depends on knowing the product's factors. Anyone who could factor the product quickly could read what the key protects.

01 — Multiplying is quick; undoing it is not
PRIME P 309 digits PRIME Q 309 digits RSA-2048 617 digits MULTIPLY schoolbook multiplication: about 95,000 digit products, a fraction of a millisecond on a laptop cannot finish FACTOR BY TRIAL DIVISION candidates up to a 309-digit square root, more than the ~10⁸⁰ atoms of the observable universe FACTOR BY THE NUMBER FIELD SIEVE the best ordinary method: about 1.2 × 10¹² GPU-years by its own formula the reverse direction is the lock RSA rests on
ReadoutFocal detail
Plate 01 — Multiplying two 309-digit primes takes about 95,000 digit products. Recovering them from their 617-digit product defeats every known ordinary method, and RSA encryption rests on that asymmetry.

The best ordinary method

Mathematicians found far better methods than trial division, and the best known for numbers of this size is the number field sieve. It hunts for many small numbers that break down entirely into small primes, and each one it finds is called a relation. A very large matrix calculation then combines the relations into one that splits the target. Every recent factoring record for numbers of this kind was set with the sieve. The table lists the record challenge numbers factored since 2009 and the effort each team reported.

NumberDigitsCompletedEffort reported by the team
RSA-768232December 2009about 2,000 years of one 2.2 GHz processor core
RSA-240240November 2019about 1,000 core-years
RSA-250250February 2020about 2,700 core-years
RSA-260260September 2026about 13.5 GPU-years (company figure)
RSA-896270September 2026about 30 GPU-years

The effort figures are not strictly comparable, because processors, software and accounting differ: RSA-240 took fewer core-years than RSA-768 despite being larger, thanks to better software and newer processors. The two 2026 records moved the work from ordinary processors to graphics processors, or GPUs. On 3 September 2026 a researcher at the AI company Cognition factored RSA-260. The researcher used a version of CADO-NFS, open-source software for the number field sieve, rewritten for graphics processors with the company's AI coding agent. The company puts the cost at about 400,000 dollars and calls it ten times cheaper than the previous state of the art.

Sixteen days later, an engineer at Anthropic, another AI company, factored RSA-896, which has 270 digits, running a similar GPU version of the software on up to 2,048 graphics processors over about ten days. Both factorizations are correct, as anyone can check by multiplying the published factors, but the compute figures are the researchers' own.

The account of the RSA-260 factorization describes where the effort went. The first stage chooses a good polynomial, the formula that supplies the numbers the sieve tests. Choosing it took about 640 GPU-days, the sieve itself about 3,800, and the final matrix calculation about 470. That matrix had about 656 million rows and as many columns, with about 98 billion nonzero entries, and solving it is the step that turns billions of collected relations into the two factors. Every stage grows with the size of the number, which is why each record is a project of its own rather than a rerun of the last one with a bigger input.

How fast the wall rises

Each record took months or years of preparation and moved the frontier by about ten digits. The reason is the shape of the sieve's cost: at today's sizes, each additional ten digits multiplies the work by roughly two and a half to three, and that multiplier shrinks only slowly as numbers grow.

Solved example: from RSA-260 to RSA-2048

The sieve's published cost formula gives a ratio of about 2.6 for each extra ten digits near 250 digits. The records agree: one team factored both RSA-240 and RSA-250 and reported about 2,700 core-years for RSA-250 against 953 for RSA-240, a ratio of about 2.8. The 953 is the paper's itemized total, which the table rounds to about 1,000. RSA-260 is 862 bits long and RSA-2048 is 2,048 bits long. Applying the formula from RSA-260 to RSA-2048 multiplies the work by about 9 × 10¹⁰. Starting from 13.5 GPU-years, that gives 13.5 × 9 × 10¹⁰, or about 1.2 × 10¹² GPU-years, the figure the RSA-260 team itself published. A million graphics processors working together would need about 1.2 million years. The formula leaves out a correction term, so the result is an order of magnitude, not a forecast.

The same arithmetic shows how little raw speed buys. A computer a thousand times faster does a thousand times more work in the same time. Near today's record of 270 digits, each additional ten digits multiplies the work by about two and a half. A thousandfold increase in work therefore covers seven or eight such steps, and the frontier moves by only about eighty digits. From 270 digits, that is still more than 260 digits short of RSA-2048.

Even a millionfold faster computer falls far short of 617 digits

Speed improvements multiply what a machine can do, while the cost of factoring multiplies with every few digits added. A millionfold faster computer would reach only about 450 digits by the sieve's formula, far short of 617. Only a method whose cost grows more slowly changes the picture, and that is what Shor's algorithm offers.

Polynomial, exponential and in between

Computer scientists sort methods by how their cost grows with the size of the input, here the number of digits. A cost is polynomial when it grows like a fixed power of the size: schoolbook multiplication grows with the square of the digits, so doubling the digits multiplies the work by four. A cost is exponential when each added digit multiplies it by a fixed factor: trial division multiplies its candidates by ten for every two digits added, because the square root of the number gains one digit. Doubling at every step is exponential growth, however slow its first steps look.

The number field sieve sits between the two. Its cost grows faster than any fixed power of the digits but more slowly than any growth by a fixed factor for each added digit, and computer scientists call such growth sub-exponential. From a number of 1,024 bits to one of 2,048 bits, the sieve's cost multiplies by about a billion. Shor's algorithm, by contrast, is polynomial: with schoolbook arithmetic inside it, its number of operations grows roughly with the cube of the number of bits, so doubling the length of the key multiplies its work by about eight.

02 — Doubling the key: ×8 against ×1 billion
10⁹ 10⁶ 10³ 1 1/10³ 1/10⁶ 512 1,024 1,536 2,048 RELATIVE WORK (1 AT 1,024 BITS) KEY LENGTH IN BITS TRIAL DIVISION ×2⁵¹² from 1,024 to 2,048 bits: off any chart NUMBER FIELD SIEVE SHOR-LIKE, CUBE OF THE BITS ×1.17 × 10⁹ ×8 the gap in growth rate is the whole advantage constant factors ignored
AmplitudeReadoutFocal detail
Plate 02 — Doubling the key from 1,024 to 2,048 bits multiplies the work of a polynomial method such as Shor's by about 8, the number field sieve's by about a billion, and trial division's beyond any physical meaning. Only a change in growth rate changes the picture.

A second wall: describing nature

Factoring is a problem about numbers. A second wall concerns physics, and it is older in the history of the subject. Describing the joint state of many interacting two-level systems takes one number for every combination of their states. The spins of electrons in a molecule or a magnet are such systems: each electron's spin makes it a tiny magnet, which a measurement always finds pointing one of two ways. With fifty such systems the count is 2⁵⁰, about 10¹⁵ numbers. Each added system doubles the count, so the description grows exponentially, and ordinary computers manage only small cases exactly or rely on clever approximations.

In 1981, Richard Feynman proposed that a machine built from quantum parts could carry such a description naturally, and Chapter 10 follows that idea to the chemistry it is meant to serve. The two walls are structured problems in arithmetic and the simulation of quantum matter. Between them, they account for almost every case in which a quantum computer is known to give a large speedup. Most problems that ordinary computers handle, from sorting to spreadsheets, face neither wall, and Chapter 9 shows why a quantum computer gives them little or nothing.

What would change, and what it would cost

Shor's algorithm turns factoring from a sub-exponential problem into a polynomial one, on a machine that does not yet exist at the needed size. The change is in the growth rate, not in seconds: a quantum computer runs each step far more slowly than a laptop, and Chapter 6 shows that this slowness can cancel a modest speedup entirely. The algorithm's advantage is decisive only because the gap in growth rates is so large: for a doubled key, about eightfold against about a billionfold.

The steps of that algorithm must also be correct. The rumor of 1994 ran into Landauer's objection within a month, and that objection is still the subject of most of the engineering in this guide. Chapters 7 and 8 show how the algorithm works, Chapters 12 to 16 what keeping its billions of steps correct costs, and Chapter 22 adds up the bill for RSA-2048.

Ask for the growth, not the seconds

When a quantum computer is compared with an ordinary one, ask three questions before reading the ratio of times. How does the cost of each method grow with the size of the problem? Which classical method, on which hardware, served as the baseline? And how large was the problem? A speedup measured at one size says little about the next, and a comparison against an outdated classical method says little at all.

+ What this chapter established
  • Multiplying two large primes is quick, while recovering them from their product defeats ordinary computers, and RSA encryption rests on that asymmetry.
  • The best ordinary method, the number field sieve, multiplies its work by roughly two and a half to three for every ten digits near today's records, which reached 270 digits on graphics processors in September 2026.
  • Faster hardware moves that frontier only a little: a thousandfold speedup gains about 80 digits and a millionfold one reaches about 450, while RSA-2048 needs about a trillion GPU-years by the sieve's own formula.
  • Shor's algorithm changes the growth rate itself, from sub-exponential to polynomial, but only on a quantum machine whose billions of steps are kept correct.
Created with Claude (Anthropic).
Educational reference material, not engineering, regulatory or clinical advice. Product and company names referenced are the property of their respective owners.