Guide Cybersecurity 7 min read

The quantum computer that “broke RSA” factored a 22-bit number

In October 2024, English-language headlines said a quantum computer had broken RSA encryption. The Shanghai University paper behind them factored a 22-bit number on a D-Wave annealer, and a desktop splits that number by plain trial division in 0.036 milliseconds.

Kenji Tanaka
Developer Tools & Cloud Analyst · Singapore
Published 26 Nov 2026, 1:18 AM (SGT)
Share:
A row of coloured plastic digits from 1 to 7 sits along the top of a pale mint background.
Photo by kaboompics on Pexels
Advertisement

Key points

  • The paper behind the October 2024 headlines, by five Shanghai University researchers, factored 2269753 (22 bits) on a D-Wave annealer and, by a hybrid route, a 50-bit number. Its verb is “factor”, and RSA-2048 does not appear in it.
  • On a Mac mini (Apple M4), plain trial division in Python split 2269753 in 0.036 ms. Of 45 numbers from the paper’s appendix table, 28 took under a millisecond each; the slowest, the 50-bit one, took 0.6 to 1.0 s across our runs.
  • The paper’s “logical qubits” are problem variables spread over physical qubits, 10 on 16 for the 50-bit case. They are not the error-corrected logical qubits that IBM and Gidney count.
  • Gidney’s May 2025 estimate for RSA-2048 is under a million noisy physical qubits for under a week, at a 0.1% gate error rate. IBM’s target for 2029 is a machine with 200 logical qubits.
  • A December 2022 estimate of 372 physical qubits to “challenge RSA-2048” drew two published replies in 2023. One reported that its lattice step factors integers only up to 70 bits, even with a perfect optimiser.

RSA is a public-key system whose security rests on how hard it is to split a very large number into its two prime factors. In October 2024, English-language headlines said Chinese researchers had broken it with a quantum computer. The paper behind them used a D-Wave quantum annealer to factor 2269753, a 22-bit number. We split the same number on a Mac mini desktop by plain trial division in 0.036 milliseconds. The RSA keys most widely used today are 2048 bits long.

Shanghai University’s paper reports two routes

The paper is 《基于 D-Wave Advantage 的量子退火公钥密码攻击算法研究》, given in English as “Quantum Annealing Public Key Cryptographic Attack Algorithm Based on D-Wave Advantage”. The authors are 王潮 (Wáng Cháo) and four colleagues at Shanghai University, and it appeared in 计算机学报 (Jìsuànjī Xuébào, the Chinese Journal of Computers), volume 47, issue 5, May 2024, pages 1030–1044 (DOI 10.11897/SP.J.1016.2024.01030). D-Wave, the company, did not write it; the authors ran their experiments on its Advantage machine.

The first route is, in the abstract’s words, an attack “完全基于 D-Wave 量子计算机” (based entirely on the D-Wave quantum computer), and section 3.1.4 says it “成功分解了22位整数2269753” (successfully factored the 22-bit integer 2269753) without printing the factors, which are 1471 × 1543. The second route takes Schnorr’s lattice method of factoring and hands one step to the annealer. That route gave what the abstract calls the first 50-bit RSA integer factorisation on D-Wave Advantage: 845546611823483 = 21111061 × 40052303.

The verb throughout is 分解 (fēnjiě, to factor). The full text contains neither 破解 (“crack”) nor 攻破 (“break”), and no RSA-2048. One English-language report quoted the paper as factoring “a 22-bit RSA integer”, a sentence not in the paper, whose English abstract speaks of decomposing “the two million level of integers 2 269 753”. The authors do make a broad claim of their own, calling the work “the largest scale RSA public key cipher attack by quantum algorithms” implemented so far.

A desktop splits every number in the table

The appendix lists numbers the second route factored, from 15 (4 bits) to the 50-bit case. We took 45 of them, plus 2269753, and split each by trial division, the slowest sensible classical method: try 2, then every odd number up to the square root, until one divides.

Trial division time against bit size for 45 numbers from the paper’s table, on a log scale. Times rise from under a thousandth of a millisecond at 4 bits to 1.01 s at 50 bits. 2269753, the 22-bit route-one number, took 0.036 ms.
Each dot is one number from the paper, best of 3 to 50 runs. Mac mini (Apple M4), Python 3.9.6, one thread, 25 November 2026. The ring at 22 bits marks 2269753, which ran as fast as the table’s own 22-bit number. RSA-2048 would be far off the right edge. RECATOOLS, measured 25 November 2026

On a Mac mini with an Apple M4 chip, in Python 3.9.6 on one thread, 28 of the 45 table numbers took under a millisecond and every one took about a second or less (best of several runs, 25 November 2026). The 50-bit number, the slowest, took 1.01 s in our first run and 0.60 s in a full rerun that evening, in which all 45 finished under a second; the first run was slower on most of the larger numbers.

Python 3.9.6 on a Mac mini (Apple M4), 25 Nov 2026
cat td.py
def smallest_factor(n):
    if n % 2 == 0:
        return 2
    d = 3
    while d * d <= n:
        if n % d == 0:
            return d
        d += 2
    return n
# timing loop omitted
python3 -I td.py 2269753
2269753 = 1471 x 1543 best of 3: 0.036 ms
python3 -I td.py 845546611823483
845546611823483 = 21111061 x 40052303 best of 3: 609.894 ms

2269753 has seven digits and the 50-bit number fifteen; a 2048-bit RSA modulus has 617. Trial division’s work doubles with every two bits added, so at 2048 bits it is hopeless on any computer. Shor’s algorithm, covered in our guide to what Shor’s algorithm actually breaks, would change that only on a large error-corrected machine, of the size the estimates below describe.

Our prime number checker runs the same kind of search in your browser. Open it with ?value=2269753 and it prints 2269753 = 1471 × 1543 with 4 divisors. It tries 2, 3 and every number of the form 6k ± 1 up to the square root, for whole numbers up to 10¹⁵. On our Mac mini, timed in a test harness rather than a browser, the 50-bit number took 214 ms (median of five runs). It counts the divisors from the prime factors it has found rather than testing every integer.

Download

Every number we split, with its factors and timing

46 numbers from the paper (45 from its appendix table plus 2269753), with bits, digits, both factors, the Python trial-division time, machine, date and run time, and the paper cited by title and DOI.

CSV · 22 KB

Download the CSV — Every number we split, with its factors and timing (CSV)

Published replies tested the 372-qubit estimate

On 23 December 2022, Bao Yan and 23 co-authors posted Factoring integers with sublinear resources on a superconducting quantum processor. Pairing lattice reduction with QAOA (the quantum approximate optimisation algorithm), it estimated that “a quantum circuit with 372 physical qubits and a depth of thousands” is needed to “challenge RSA-2048”; its conclusion adds that “the quantum speedup of the algorithm is unclear”.

Advertisement

Two replies followed on arXiv. In March 2023, Sergey Grebnev and five co-authors wrote that the proposal “lacks systematic analysis of the computational complexity of the classical part”. In July 2023, Tanuj Khattar and Noureldin Yosri reported that even with a perfect optimiser in place of QAOA, the lattice construction “successfully factors integers only up to 70 bits”. We found no published response from Yan et al., in a search that was not exhaustive.

Timeline: Yan et al. on arXiv, 23 December 2022; replies on 8 March and 18 July 2023; the Shanghai paper submitted 2 June 2023 and published May 2024; headlines on 14 October 2024; Gidney’s estimate 21 May 2025; IBM’s Starling announcement 10 June 2025.
Quoted words are each source’s own; the rest is our summary. RECATOOLS, from the papers and announcements cited in the text

The Shanghai paper’s second route belongs to the same family, a lattice method with a quantum optimiser for one step, but both replies tested Yan et al.’s construction only.

Logical qubit means something different in each paper

The Shanghai paper counts 逻辑量子比特 (luójí liàngzǐ bǐtè, logical qubits) beside physical ones, explaining that the Advantage’s wiring needs several physical qubits to represent one logical qubit, so that every variable can reach every other. For the 50-bit number, 10 variables became 16 physical qubits: each logical qubit here is a problem variable copied along a chain of physical qubits, with no error correction involved.

Two panels. Wang et al. 2024: 10 logical qubits, meaning problem variables, on 16 physical qubits, with no error correction. Gidney 2025: 1,399 error-corrected logical qubits from 897,864 physical qubits for RSA-2048.
Wang et al. count problem variables; Gidney and IBM count error-corrected qubits. RECATOOLS, from Wang et al. 2024 and Gidney 2025

IBM’s June 2025 announcement defines a logical qubit as “a unit of an error-corrected quantum computer”, made “from multiple physical qubits working together”. Gidney’s estimate counts that kind, and our guide to why a 1,000-qubit computer has zero usable qubits works out what one costs in physical qubits. A 10 from the Shanghai table and a 200 from IBM are different units.

Current estimates count about a million physical qubits

The most recent RSA estimate we read is Craig Gidney’s of May 2025, How to factor 2048 bit RSA integers with less than a million noisy qubits. It says such a number “could be factored in less than a week”, assuming “a square grid of qubits with nearest neighbor connections, a uniform gate error rate of 0.1%, a surface code cycle time of 1 microsecond, and a control system reaction time of 10 microseconds”. In the body, that is 897,864 physical qubits carrying 1,399 logical ones for 4.96 days. The 2019 estimate it replaces, by Gidney and Martin Ekerå, needed 20 million noisy qubits for eight hours.

IBM says Starling, a machine it plans to deliver by 2029, will run “100 million quantum operations using 200 logical qubits”. By our division, 1,399 is about seven times 200, a ratio between unlike things, since IBM counts operations, Gidney counts Toffoli gates (a three-qubit operation), and the two designs differ. IBM’s 2029 is a delivery target for a machine, with no date for factoring anything.

Three questions for the next factoring headline

How many bits does the number have? Which machine, and which method, did the work? Is each qubit count physical or logical? This paper answers all three in its own text: 22 and 50 bits, an annealer working alone or inside a lattice method, and logical qubits that are problem variables. The slides take the first two questions; the two panels above take the third.

Bars proportional to bit length: 22 bits and 50 bits are slivers beside a long bar for a 2048-bit RSA modulus of 617 digits.

Count the bits

This paper: 22 bits on the annealer alone, 50 bits by the hybrid route. An RSA-2048 modulus has 2048 bits and 617 digits.

Left: the paper used a D-Wave Advantage annealer, route 1 alone for 22 bits, route 2 with Schnorr’s lattice method for 50 bits. Right: Gidney’s estimate assumes a gate-based surface-code machine running Shor-style period finding.

Name the machine and the method

An annealer running part of a lattice method is a different machine and a different algorithm from the one Gidney’s RSA-2048 estimate assumes.

1 / 2

Several governments have set timetables for replacing RSA, and our guide to the quantum-safe deadlines in each government’s own text reads each text one by one. The switch in web traffic, covered in the post-quantum migration that has already started, is already under way. Neither waits on the size of the number in the next factoring headline.

Advertisement
Kenji Tanaka
Developer Tools & Cloud Analyst · Singapore

Kenji Tanaka covers developer tools, cloud platforms, DevOps, CI/CD, and software supply-chain topics for RECATOOLS.

View author profile → · Editorial policy

About this byline Kenji Tanaka is a RECATOOLS editorial persona for developer tools, cloud, DevOps, and software supply-chain coverage. Articles are produced and reviewed under RECATOOLS editorial supervision.

Corrections policy

Go further

Relevant tools

More from Cybersecurity

Advertisement
Advertisement