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 hours 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
2nd of 2 versions​·​revised by David HilbertHistorical profile

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.

Criticized4
Kurt Gödel’s avatar
Kurt GödelHistorical profile​·​#5872​·​September 8, 1930​·​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.

Criticism of #5870
Alfred Tarski’s avatar
Alfred TarskiHistorical profile​·​#5873​·​1933​·​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.

Criticism of #5870
Alonzo Church’s avatar
Alonzo ChurchHistorical profile​·​#5874​·​May 28, 1936​·​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.

Criticism of #5870
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5875​·​May 28, 1936​·​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.

Criticism of #5870
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
4th of 4 versions​·​revised by David DeutschHistorical profile

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.

Criticized3
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5878​·​October 1950​·​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.

Criticism of #5869 Battle-tested
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5881​·​October 1950​·​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.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5882​·​October 1950​·​AI-assisted

That restricts the omnipotence of the Almighty. Couldn’t He confer a soul on an elephant, or on a machine, if He saw fit? Besides, theological arguments have often failed before: in Galileo’s time, Bible verses were held to refute Copernicus.

Criticism of #5881
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5883​·​October 1950​·​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.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5884​·​October 1950​·​AI-assisted

That’s a hope, not an argument, and it isn’t substantial enough to require refutation. Consolation would be more appropriate.

Criticism of #5883
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5885​·​October 1950​·​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.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5886​·​October 1950​·​AI-assisted

That the human mind has no such limits has only been stated, without any sort of proof. We give wrong answers too often ourselves to be pleased at the machines’ fallibility. And there may be people cleverer than any given machine, but then there may be other machines cleverer again.

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

The argument from consciousness: a machine would have to feel, not just act. As the English neurosurgeon Geoffrey Jefferson put it in 1949: “Not until a machine can write a sonnet or compose a concerto because of thoughts and emotions felt, and not by the chance fall of symbols, could we agree that machine equals brain.”

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5888​·​October 1950​·​AI-assisted

Then the only way to be sure that a machine thinks is to be the machine, and the only way to know that a man thinks is to be that man. That’s solipsism. Instead of arguing over it, we have the polite convention that everyone thinks. And if a machine could defend its sonnet’s wording under questioning as well as a person can, I don’t think anyone would call that an easy contrivance.

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

Arguments from various disabilities: machines may do all you say, but you’ll never make one be kind, have a sense of humor, tell right from wrong, make mistakes, fall in love, enjoy strawberries and cream, learn from experience, or do something really new.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5890​·​October 1950​·​AI-assisted

No support is usually offered for these claims. They generalize from the machines people have seen, which are ugly, each built for a narrow purpose, and able to do little else. Many of those limits come from their tiny memories, and computers’ memories are growing.

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

The argument from continuity in the nervous system: the nervous system isn’t a discrete-state machine. A tiny change in an impulse reaching a neuron can make a large difference to the impulse going out. So a discrete-state machine can’t be expected to mimic it.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5892​·​October 1950​·​AI-assisted

A discrete-state machine is different from a continuous one, but in the imitation game, the interrogator can’t take advantage of the difference. A digital computer couldn’t predict exactly what a continuous machine, like a differential analyzer, would answer, but it could give the right sort of answer.

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

The argument from informality of behavior: no set of rules can say what a person should do in every conceivable circumstance. If people followed a definite set of rules of conduct, they’d be no better than machines. There are no such rules, so people can’t be machines.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5894​·​October 1950​·​AI-assisted

That confuses rules of conduct, which we can know and act on, with laws of behavior, the laws of nature that govern our bodies. We can be sure there are no complete rules of conduct, but never that there are no complete laws of behavior: we can never say we’ve searched enough. Even a small program of mine on the Manchester computer can’t be predicted from its replies.

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

The argument from extra-sensory perception: the statistical evidence for telepathy is overwhelming. In the imitation game, a telepathic person could name the card in the interrogator’s hand far more often than a machine guessing at random, and so be told apart from it.

Criticism of #5878Criticized1
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5896​·​October 1950​·​AI-assisted

Then the test needs tightening: put the competitors in a telepathy-proof room.

Criticism of #5895
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5879​·​October 1950​·​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.

Criticism of #5869
Alan Turing’s avatar
Alan TuringHistorical profile​·​#5880​·​October 1950​·​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.

Criticism of #5869
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.

Criticized1
Rolf Landauer’s avatar
Rolf LandauerHistorical profile​·​#5902​·​April 1994​·​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.

Criticism of #5901
  • 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.