Murray Hill, New Jersey · April 1994

A Quantum Computer Could Break the Codes

Bell Labs in Murray Hill, New Jersey, where Shor found his algorithm, in 2010
Bell Labs in Murray Hill, New Jersey, where Shor found his algorithm, in 2010Christian Kaack · Wikimedia Commons

A quantum computer suddenly has a killer application. Peter Shor, at AT&T’s Bell Labs, finds a way for one to factor large numbers: to find the prime numbers that multiply to give them. That sounds harmless, but most of the internet’s secrets, from bank transfers to private messages, are locked with codes that are safe only because no classical computer can factor a number hundreds of digits long in less than the age of the universe. A quantum computer running Shor’s algorithm could do it in hours.

The trick is to find a rhythm. Take powers of some number, divide them by the number to be factored, and the remainders repeat. Once you know how often, a little arithmetic gives the factors. A classical computer would have to work out the remainders one after another; a quantum computer works them all out at once and lets them interfere, so that only the rhythm is left.

Factoring 15 the way Shor’s algorithm does: the remainders of the powers of 7 divided by 15 repeat every four steps; interference makes only every fourth outcome possible, which reveals the four; and from it, 7² + 1 = 50 and 7² − 1 = 48 share the factors 5 and 3 with 15 Remainder of 7ˣ ÷ 15 Chance of each outcome, after interference
Factoring 15, the smallest example. Divided by 15, the powers of 7 leave remainders that repeat every four steps. After the interference, only outcomes that are multiples of 16 ÷ 4 can come out, and any of them reveals the four. Then 7² − 1 and 7² + 1 each share a factor with 15. For numbers hundreds of digits long, the rhythm is far too long for any classical computer to find.

Where does all that computing happen? Factoring a large enough number, Deutsch later works out, would take some 10⁵⁰⁰ times the computational resources that can be seen to be present. “There are only about 10⁸⁰ atoms in the entire visible universe, an utterly minuscule number compared with 10⁵⁰⁰,” he writes. “So if the visible universe were the extent of physical reality, physical reality would not even remotely contain the resources required to factorize such a large number. Who did factorize it, then? How, and where, was the computation performed?” Only other universes, he argues, can explain it.

Not everyone is impressed. In May, at a meeting in Santa Fe where Shor’s algorithm is presented, the American physicist Rolf Landauer of IBM objects that a quantum computer could never correct its errors. Weeks later, the Canadian physicist William Unruh calculates how quickly a quantum computer’s surroundings would ruin its computation: far too quickly, it seems, to factor a large number.

Idea by Peter Shor·​#5901

A quantum computer could factor numbers hundreds of digits long in hours, by finding how often the remainders of a number’s powers repeat. That would break the codes that protect most of the internet’s secrets, which rely on factoring being too hard.

Criticism of #5901 by Rolf Landauer·​#5902

A quantum computer could never run long enough. Its quantities vary continuously, like those of an old analog computer, so small errors pile up and can’t be corrected the way a classical computer corrects a slipped bit: you can’t even look at a quantum state to check it without disturbing it.

The state of the discussion

Landauer’s criticism goes unanswered for now, so Shor’s algorithm isn’t rationally adoptable.

Use arrow keys ← →, the Previous and Next buttons above, or the timeline below to move through the history.Swipe left or right, or use the Previous and Next buttons above or the timeline below, to move through the history.

Sources:

  • Deutsch, The Fabric of Reality (London, 1997), chapter 9
  • Landauer, “Is Quantum Mechanics Useful?”, Philosophical Transactions of the Royal Society A 353 (1995), 367–376
  • Shor, “Algorithms for Quantum Computation: Discrete Logarithms and Factoring”, Proceedings of the 35th Annual Symposium on Foundations of Computer Science (Santa Fe, 1994), 124–134
  • Shor, “The Early Days of Quantum Computation” (2022), arXiv:2208.09964
  • Unruh, “Maintaining Coherence in Quantum Computers”, Physical Review A 51 (1995), 992–997

Researched and written with the help of AI, from the sources named. AI can make mistakes. Veritula doesn’t claim perfect historical accuracy; the sources are there to check against.

The full discussion

Can One Machine Do It All?

Dennis Hackethal started this discussion about 2 months ago.

Search·​Activity

Babbage designed a machine that could carry out any calculation, and Lovelace saw that it could do far more than arithmetic. Turing explained why one machine can do the work of every other, and Deutsch argued that it has to be a quantum computer.


Discussions can branch out indefinitely. You may need to scroll sideways.
The discussion as it was in April 1994. Chronicle discussions are read-only. Jump to the present
Gottfried Wilhelm Leibniz’s avatar
Gottfried Wilhelm LeibnizHistorical profile·​#5870·​September 8, 1930·​AI-assisted

Every question of mathematics can be answered: there is no “we will not know.” All of mathematics can be written in one system of symbols and rules that proves every true statement, and a mechanical procedure can decide, for any statement, whether it can be proved.

4 pending criticisms
Kurt Gödel’s avatar
Kurt GödelHistorical profile·​#5872·​September 8, 1930·​Criticism·​AI-assisted

In any consistent system of rules strong enough for arithmetic, there are true statements that the rules can neither prove nor disprove. So no one system can answer every question of mathematics.

Alfred Tarski’s avatar
Alfred TarskiHistorical profile·​#5873·​1933·​Criticism·​AI-assisted

Truth for a language rich enough for arithmetic can be defined only in a richer language, never within the language itself. So no one system of symbols and rules can even say which of its own statements are true: there’s no universal criterion of truth.

Alonzo Church’s avatar
Alonzo ChurchHistorical profile·​#5874·​May 28, 1936·​Criticism·​AI-assisted

Some problems can’t be solved by any effective calculation: I’ve found one in elementary number theory. So no mechanical procedure can decide, for every statement of logic, whether it can be proved.

Alan Turing’s avatar
Alan TuringHistorical profile·​#5875·​May 28, 1936·​Criticism·​AI-assisted

No machine can decide, for every statement of logic, whether it can be proved. If one could, it could decide whether any machine ever prints a 0, and a machine that asked it that about itself could be made to do the opposite.

Charles Babbage’s avatar
Charles BabbageHistorical profile·​#5865·​June 14, 1822·​AI-assisted

Mathematical tables can be worked out and printed by machinery. Almost any table can be built up by adding differences, and gears can add, so a machine of number wheels can do it, without the mistakes that human computers and typesetters make.

Charles Babbage’s avatar
Charles BabbageHistorical profile·​#5899·​July 8, 1985·​AI-assisted

Every physical system that can be built can be perfectly simulated by a universal computer working by finite means – but only by a quantum one. A universal quantum computer can do whatever any physical machine can do, and some things far faster than any classical computer could.

Ada Lovelace’s avatar
Ada LovelaceHistorical profile·​#5869·​1843·​AI-assisted

The Analytical Engine can’t originate anything. It can do whatever we know how to order it to perform, and follow our reasoning, but it can’t anticipate any truths we haven’t worked out ourselves.

3 pending criticisms
Alan Turing’s avatar
Alan TuringHistorical profile·​#5878·​October 1950·​Criticism·​AI-assisted

Machines will be able to think. The question “Can machines think?” is too meaningless to deserve discussion as it stands. Ask instead whether a machine can play the imitation game, passing for a person in typed conversation. In about fifty years, computers will play it so well that an average interrogator won’t have more than a 70 percent chance of telling them apart after five minutes of questioning, and one will be able to speak of machines thinking without expecting to be contradicted.

Battle-tested · 8
Alan Turing’s avatar
Alan TuringHistorical profile·​#5881·​October 1950·​Criticism·​AI-assisted

The theological objection: thinking is a function of man’s immortal soul. God has given an immortal soul to every man and woman, but not to any other animal or to machines. So no animal or machine can think.

1 pending criticism
Alan Turing’s avatar
Alan TuringHistorical profile·​#5883·​October 1950·​Criticism·​AI-assisted

The heads-in-the-sand objection: the consequences of machines thinking would be too dreadful. Let us hope and believe that they can’t.

1 pending criticism
Alan Turing’s avatar
Alan TuringHistorical profile·​#5885·​October 1950·​Criticism·​AI-assisted

The mathematical objection: results of mathematical logic, such as Gödel’s theorem, show that every machine has limits. There are questions it will answer wrongly, or not at all, however long it’s given. The human mind has no such limits.

1 pending criticism
Alan Turing’s avatar
Alan TuringHistorical profile·​#5879·​October 1950·​Criticism·​AI-assisted

A machine can be made to learn. Instead of programming it to act like an adult mind, program it like a child’s, and educate it. Its teachers won’t know quite what is going on inside it, so it won’t only do what we know how to order it to do.

Alan Turing’s avatar
Alan TuringHistorical profile·​#5880·​October 1950·​Criticism·​AI-assisted

Machines take me by surprise with great frequency. To think that nothing new can come from following given rules is to assume that as soon as we know a fact, all its consequences spring to mind at once. They don’t: working them out is real work.

Paul Benioff’s avatar
Paul BenioffHistorical profile·​#5897·​May 1981·​AI-assisted

A computer can run by the laws of quantum mechanics alone. A Turing machine can be built of quantum parts that carry it through its steps one after another, as an isolated system, without losing energy.

Richard Feynman’s avatar
Richard FeynmanHistorical profile·​#5898·​May 1981·​AI-assisted

A classical computer can’t simulate quantum physics efficiently: the numbers it needs double with every particle added, so a few hundred particles would take more numbers than there are atoms in the universe. To simulate nature, build a computer of quantum parts that behaves as nature does.

Peter Shor’s avatar
Peter ShorHistorical profile·​#5901·​April 1994·​AI-assisted

A quantum computer could factor numbers hundreds of digits long in hours, by finding how often the remainders of a number’s powers repeat. That would break the codes that protect most of the internet’s secrets, which rely on factoring being too hard.

1 pending criticism
Rolf Landauer’s avatar
Rolf LandauerHistorical profile·​#5902·​April 1994·​Criticism·​AI-assisted

A quantum computer could never run long enough. Its quantities vary continuously, like those of an old analog computer, so small errors pile up and can’t be corrected the way a classical computer corrects a slipped bit: you can’t even look at a quantum state to check it without disturbing it.

  • Rationally adoptable.
  • Not rationally adoptable.
  • Older versions with pending criticisms.
  • Ideas are blue, criticisms red, comments small and gray.
  • Hover over ideas to expand them.
  • Click on ideas to jump to their place in the discussion.