November 2026

Quantum Computers

Quantum computers attract more confident nonsense than almost any other technology. You may have heard that they try every possible answer at the same time, or that they are simply much faster computers. Neither is true, and the real story is stranger and more interesting than either.

At the heart of the machine is the qubit, the quantum version of a bit. Below you can see the state of a single qubit, drawn as an arrow inside a sphere. You can drag the sphere to look at it from other directions. The two bars on the right show the chance of reading out 0 or 1 if we measured the qubit right now:

It's fine if this means nothing yet. We'll build it up step by step: how an ordinary computer stores information, what a qubit holds instead, why its state can point in directions that no bit can, and what a machine made of many of them can and cannot do. Then comes the hardest part of the story, which is how to keep such a delicate machine from falling apart.

Some demonstrations in this article are animated. You can pause or resume all of them at once, or use the button in the corner of each one.

Bits

An ordinary computer stores information in bits, and every bit is either 0 or 1. A group of n bits can hold any of 2n different patterns: two bits give four patterns, eight bits give 256, and so on. Each extra bit doubles the number of possibilities. In the demonstration below, a register of bits counts through all of its patterns. The slider changes the number of bits. Every square in the grid is one pattern, and the lit one is the pattern that the register holds right now:

Notice that at any moment the register holds exactly one pattern. If we want to look at all of them, we have to visit them one after another, and the list gets long fast. Ten bits have 1,024 patterns. Twenty bits have over a million. For three hundred bits, there are more patterns than there are atoms in the observable universe.

That doubling is the reason some problems are out of reach for ordinary computers, and it's also what a quantum computer is trying to turn to its advantage. To see how, we first have to understand a single qubit.

Qubits

When we read out a qubit, we get a 0 or a 1, just like with a bit. The difference is what the qubit holds before we read it. Its state is described by two numbers, called amplitudes, one for each possible outcome. The rule for reading is simple: the chance of getting an outcome is its amplitude multiplied by itself. If the amplitude of 0 is 0.6, then the chance of reading 0 is 0.6 × 0.6 = 0.36, which is 36%.

Amplitudes can be negative, and as we'll see, that matters a lot. For now I'll only use real numbers. The demonstration below draws the state of a qubit as an arrow of length one. Its horizontal part is the amplitude of 0, and its vertical part is the amplitude of 1. The bars on the right show the same two amplitudes, where I color positive ones and negative ones differently. The slider turns the arrow:

When the arrow points right, the amplitude of 0 is 1 and reading gives 0 every time. When it points up, reading gives 1 every time. In between, the two chances share the total of 100%. The arrow has length one, so the two squared amplitudes always add up to one, by Pythagoras.

Now compare the arrow at 45° with the arrow at 135°. Both give 50% for each outcome, but they are different states: one has two positive amplitudes, the other has a negative one. If we only read them out once, we can't tell them apart. Remember this, because it is the secret of the whole machine.

The act of reading has a peculiar effect. Whatever the state was, after we read a 0, the qubit is in the state "certainly 0", and the other amplitude is gone. This is called measurement. It means that one reading tells us very little about the amplitudes that came before. To find them out, we have to prepare the same state over and over and count the results. In the next demonstration the qubit is prepared, read, and prepared again, 60 times. The slider sets the state. The dashed lines show how many of each result to expect:

Each single result is random. Only the counts follow the squared amplitudes, and they only do so approximately. Neither the arrow nor the amplitudes can be seen in any single outcome.

It's tempting to conclude that the qubit simply held a hidden 0 or 1 all along and the amplitudes only describe our ignorance. That would be a perfectly reasonable thing to believe, and it's wrong. The next section shows why.

Interference

A gate is an operation that changes a qubit's amplitudes without measuring them. Two gates will be enough for now. The Z gate flips the sign of the amplitude of 1 and leaves the amplitude of 0 alone. It changes no chances, since squaring hides signs, but it does change the state. The Hadamard gate, written H, takes the two amplitudes a and b and replaces them with their sum and difference, each divided by the square root of two. In particular, H turns the state "certainly 0" into an equal mix of both outcomes.

The demonstration below follows a qubit through a short circuit. It starts as 0, goes through an H gate, optionally through a Z gate, and then through a second H gate. The bars show the amplitudes after each step. Use the buttons to switch the Z gate on and off:

Look at the circuit without the Z gate first. After the first H, the qubit is a 50–50 mix. If the amplitudes were just a description of our ignorance, the second H would shuffle a coin that was already random, and the qubit would still be 50–50. Instead, it comes back as a perfect 0. The two routes that lead to the outcome 1 contribute amplitudes of +0.5 and −0.5, and they cancel each other out. The two routes that lead to 0 both contribute +0.5 and add up to one.

With the Z gate in between, the signs change and the roles swap: now the routes to 0 cancel, and those to 1 add up. The qubit comes out as a certain 1. The Z gate by itself changed no probabilities, yet it decides the final answer.

This is called interference: amplitudes of different routes to the same outcome add up like waves, reinforcing each other or cancelling. It is the one thing that a quantum computer can do and a computer with coin flips cannot. Every quantum algorithm is a way to arrange the routes so that wrong answers cancel and the right answer adds up.

Phase

I made one simplification so far: amplitudes are really complex numbers, which means that each has a size and also an angle, called its phase. A negative amplitude is simply one that has a phase of 180°. Allowing all the phases gives a much richer set of states, but a single qubit still has a neat picture. Every state of one qubit is a point on a sphere, called the Bloch sphere.

The north pole stands for certainly 0, the south pole for certainly 1. The latitude decides the chances. The longitude is the relative phase between the two amplitudes. You can drag the sphere to look at it from other sides. The first slider changes the latitude of the arrow and the second one changes its longitude:

On the equator the chances are 50–50, no matter where on it we are. But the states along the equator are all different, and as the interference example showed, those differences can be made to matter. Turning the longitude, with the arrow on the far side, is just what the Z gate does: it rotates the sphere half a turn around its vertical axis. The H gate is a half-turn around a tilted axis. The sphere also contains the real-valued states we used before: they are the circle that passes through both poles and the two points at longitudes 0° and 180°.

So every gate on a single qubit is a rotation of this sphere, and reading the qubit looks at only one thing: how far the arrow is from each pole. Everything about the phase stays hidden until a later gate turns it into a difference in chances. With one qubit, that is all there is. The next step is to put several of them together.

Many Qubits

Two qubits have four possible readouts, 00, 01, 10, and 11, and so a state of two qubits has four amplitudes. Three qubits have eight. In general, a state of n qubits has 2n amplitudes, one for every pattern of bits. In the demonstration below I've given all patterns equal amplitudes, which is what we get by applying an H gate to each qubit. As before, positive amplitudes are teal. The slider changes the number of qubits:

Contrast this with the register of bits at the start of the article. That register held one pattern at a time. A register of qubits holds an amplitude for every pattern at the same time. Every extra qubit doubles the length of the list.

There is also something new in the way qubits can be linked. Suppose we have two qubits whose four amplitudes are all equal. The result of reading the first has no influence on the second, just like two separate coins. But we can also choose amplitudes where only 00 and 11 are possible. Let's compare the two cases by reading the pair thirty times. Use the buttons to switch between them:

In the entangled case each pair always agrees. Yet each qubit alone is a perfectly fair coin: if we looked at only one of them, we would see random results. The randomness is in the pair. Neither qubit has a state of its own, only the pair does. Such a state is called entangled, and it can't be split into one list of amplitudes for the first qubit and one for the second.

Entanglement can't be used to send a message. Each qubit on its own just looks random. It only shows up when we put the two lists of results side by side. But it has a drastic consequence for the size of the description. For separate qubits, we'd need two amplitudes for each one. For entangled qubits, we need the whole list, and the list doubles with every qubit.

Just how fast is that? Describing a quantum state on an ordinary computer takes one complex number per amplitude, which is about 16 bytes. The plot below shows the memory needed for n qubits. Each step up on the vertical scale is ten times more memory, so the straight line is a doubling at every qubit:

The memory of a laptop runs out at 30 qubits. At 50 qubits the list needs tens of petabytes, which is more than the memory of the largest supercomputers. Clever tricks can push these limits a little further, but a doubling always wins in the end. Around 260 qubits, we'd need more bytes than there are atoms in the observable universe, which is about 1080.

This is the reason why physicists were the first to be interested in the idea. In 1981 Richard Feynman pointed out that nature itself keeps this huge list: the electrons in a molecule are described by amplitudes. Simulating them on an ordinary computer is hopeless, he said, so we should build computers out of quantum parts and let them play the role of nature.

The Catch

It's now easy to see where the myth comes from. A register of qubits holds amplitudes for all patterns at once, and a gate acts on all of them together. It sounds like a machine that tries all answers in parallel.

It isn't, because of measurement. At the end of any computation, we read the register and get one pattern of n bits, chosen at random with chances given by the squared amplitudes. The list is gone. If we did nothing clever, the result would be a random pattern, which is worthless.

A quantum computer is only useful if we can steer the amplitudes so that the pattern we want has a high chance at the end. And the only tool we have for that is interference. This works only for problems that have the right kind of structure, so a quantum computer isn't expected to speed up everything. It's more like a very strange, very specialized instrument. Let's look at the two best-known problems that it suits.

Imagine a list of 16 items, and a test that says "yes" for exactly one of them. A normal computer has no better strategy than trying them one by one, which takes about eight tries on average. In 1996 Lov Grover found a quantum method that needs fewer. The register holds one amplitude for each item. We start with all amplitudes equal, and then repeat two steps:

First, the test is applied to all items at once. It flips the sign of the amplitude of the correct item, and nothing else. Second, every amplitude is reflected about the average of all amplitudes. In the demonstration below, the dashed line is that average, and I've outlined the correct item in gold. The slider moves through the steps one at a time. The odd steps apply the test, and the even steps do the reflection:

After the first test, the correct amplitude is negative, and so it pulls the average down a bit. The reflection that follows flips every bar around the average. The ordinary bars shrink a little and the correct bar grows a lot, because it was the one below the line. The chance of finding the right item is up from 6% to 47%. Notice how these two steps are interference at work: the amplitudes of the wrong items cancel a little, and the amplitude of the right item is pumped up.

After three rounds the right item has a chance of 96%. Be careful, though: if we continue, the process doesn't stop. After four rounds, the amplitude has overshot, and the chance drops to 58%. Each round is a rotation of the state, and we have to stop at the right moment.

The number of rounds needed grows as the square root of the number of items. For a million items, that's about 785 rounds, against an average of 500,000 tests for an ordinary computer. It's a real speedup, and it has been proven that no quantum method can do better. But it's only a quadratic one, and every round is a quantum circuit that is slower and costlier than an ordinary test. For many practical problems that eats up much of the gain.

Factoring

The second problem is the one that made the world pay attention. Multiplying two large prime numbers is easy, but given only the product, finding the two primes is, as far as we know, extremely hard for an ordinary computer. A great deal of the security on the internet depends on this fact. In 1994 Peter Shor showed that a quantum computer could factor large numbers efficiently.

The method has a classical part and a quantum part. Let's start with the classical part, using the small number 15. We pick a number a that has no factor in common with 15, and look at the sequence ax divided by 15, keeping just the remainder, for x = 0, 1, 2, and so on. The demonstration below plots this sequence. Use the buttons to pick a:

The sequence always repeats. The length of the repeating part is called the period, r. Once we know it, the factors of 15 come out of simple arithmetic. For a = 7, the period is 4. Halfway through the period, 72 = 49, and the common factors of 48 and 15, and of 50 and 15, are 3 and 5. These are the two factors of 15. This works for any a in the demonstration, and for nearly any a in general.

The classical part is easy. The hard part is finding the period of a sequence for a number with hundreds of digits: the sequence is astronomically long, and for an ordinary computer, finding its period is just as hard as factoring. This is where the quantum computer comes in.

First, one register is put into an equal mix of all values of x, and a second register computes ax mod N for all of them at once. We then read the second register. Whatever value we get, the first register is left with equal amplitudes on exactly those x that give this value, and these x are spaced one period apart, like the teeth of a comb. The position of the first tooth is random, but the spacing is the period we're after.

We can't read that spacing from a single measurement, because a measurement shows just one tooth. So we use interference, in a step called the quantum Fourier transform. In the demonstration below, the upper plot is the comb. The lower plot shows the amplitudes after the transform. The slider changes the period:

The lower plot has sharp spikes, spaced 64 divided by the period apart. Everything between the spikes has cancelled out, and the random starting position of the comb makes no difference. Reading this register now gives a value near one of the spikes, and from it we can work out the period. When the period doesn't divide 64 evenly, like with a period of five, the spikes are blurred, but they stay near the right places, and an ordinary computer can clean up the result afterwards.

The first real demonstration of the method came in 2001, when a small machine factored 15 into 3 × 5. To break the 2048-bit numbers used for real encryption keys, the machine would have to be vastly bigger. In 2025 Craig Gidney of Google estimated that fewer than a million qubits would be enough, running for less than a week. The earlier estimate, from 2019, was 20 million. The estimates keep falling, which is why the standards bodies are not waiting. In 2024 NIST published the first standards for encryption that is believed to resist quantum computers, and the migration to them has begun.

The big word in Gidney's estimate is "noisy". We have reached the problem that decides how soon any of this will work.

Real Qubits

A qubit can be any system that has two distinguishable states, can be controlled with precision, and can be read out. Nature supplies plenty. A tiny loop of superconducting metal can carry a current in two different ways. An atom has a lowest energy level and a higher one. The simplest picture is the atom's: the lowest level is 0 and the higher level is 1.

To act on it, we shine on it a pulse of microwaves or laser light whose frequency matches the gap between the two levels. The light slowly pushes the state from one level toward the other. In the demonstration below, the pulse is drawn at the top, the two levels are on the left, and the plot on the right shows the chance of finding the atom in the upper level. The slider sets how long the pulse lasts:

A pulse of half the right length leaves the atom in an equal mix of both levels, which is what an H gate does. A pulse of the full length flips it completely from 0 to 1. A pulse twice as long takes it all the way back. Every gate is a pulse like this, with its duration and phase chosen to produce the rotation of the Bloch sphere that we want. Gates between two qubits work by making the qubits interact for a controlled moment: through a shared circuit element, through their shared motion, or through the strong interaction of atoms excited into very large orbits.

Several kinds of hardware are being built. Superconducting circuits, used by Google and IBM, are made on chips with the usual manufacturing methods and work in tens of nanoseconds, but they have to be cooled to around ten thousandths of a degree above absolute zero. Trapped ions, which are single atoms held in place by electric fields, are slower but they hold their state for much longer and make very few errors. Neutral atoms held by beams of light can be arranged in arrays of more than a thousand. There are also qubits made of photons and of electron spins in silicon. No design has won yet.

Noise

Qubits are fragile. A stray photon, a tiny fluctuation of a magnetic field, or the slightest heat can disturb the amplitudes. This is an unwanted measurement by the environment, and it is called decoherence. On top of that, every gate is slightly imperfect. Today, a good two-qubit gate fails about one time in a thousand, and the best reported results are around one in ten thousand.

That sounds small, but let's see how it adds up. If each operation fails with a chance of ε, then a program of N operations runs without a single error with a chance of about (1 − ε)N. In the plot below, the horizontal axis shows the number of operations on a scale where each step is ten times more. The slider changes ε:

At one error in a thousand, a program of a thousand operations already fails about two times in three, and a program ten times longer almost never works. The dashed line marks one billion operations, roughly the scale of an algorithm like Shor's on a large number. To get there, ε would need to be a million times smaller than today's best, and each qubit would have to be a million times better. Physics doesn't offer that.

An ordinary computer doesn't have this problem, because the voltage that represents a bit is pushed back to 0 or 1 all the time, and it's easy to copy bits and compare them. For qubits both of these tools seem to be forbidden. Measuring destroys the amplitudes, and the no-cloning theorem says that an unknown quantum state can't be copied. It looks like a dead end. In 1995 Shor found a way out.

Error Correction

Let's start with the classical idea. To protect a bit, we store it three times and take a majority vote when we read it. A single flipped copy is outvoted. The vote fails only if two or more copies flip, which for a flip chance p happens with a chance of about 3p2. For small p, that's much smaller than p itself.

The quantum version can't copy the state, but it can spread it over three entangled qubits, so that the amplitudes of 0 and 1 are now amplitudes of 000 and 111. And it doesn't read the qubits. Instead, it uses two extra helper qubits that ask only about parity: are the first two qubits the same or different? Are the second and third the same or different? The answers say nothing about the stored amplitudes, because the two possible states agree about them. In the demonstration below, use the buttons to choose which qubit suffers a bit flip:

With no error, both checks stay quiet. A flip on the first qubit makes only the first check light up. A flip on the last one lights only the second. A flip on the middle one lights both. The pattern of alarms, called the syndrome, points at the faulty qubit, and we can undo the flip, all without ever finding out what was stored.

This simple code only handles bit flips. Quantum states can also suffer phase errors, which flip the sign of an amplitude, and a full code needs checks for both kinds. The most popular design, the surface code, arranges the qubits in a square grid, with data qubits at the corners and checks in the tiles between them. I've drawn only the tiles that detect bit flips. The buttons choose the size of the grid, and the slider flips a growing row of qubits across the middle:

A single flip makes one or two alarms go off in the neighboring tiles. Notice what happens with a row of flips: the tiles in the middle of the row are touched by two flipped qubits each, which cancel out, so only the two ends of the row raise alarms. An end that touches the left or right edge of the grid raises none. A decoder, which is an ordinary program, sees the two alarms, guesses the shortest row of flips that explains them, and undoes it. If the guess is right, the stored information is saved.

It can only go wrong when the row of errors crosses the whole grid. Then no alarm goes off at all, yet the stored bit has been flipped. But that needs at least as many simultaneous errors as the grid is wide, and so a larger grid is safer. That's the whole idea behind the code. One logical qubit, the reliable one that a program sees, is made of a whole grid of ordinary physical qubits.

Whether bigger is better depends on the physical error rate. Below a critical value, called the threshold, which for the surface code is around one percent, every increase in the size of the grid suppresses logical errors further, and it does so exponentially. Above it, more qubits just means more things that can go wrong. In the plot below, each curve shows the error rate of a logical qubit for one grid size. The slider moves along the physical error rate. I used a simple model of the curves, so the exact numbers are only for illustration:

When the physical error rate is below the threshold, the bigger grids win by a wide margin. Cross to the other side and the order flips. In December 2024, Google showed on its 105-qubit Willow chip that this works in practice. Grids of three by three, five by five, and seven by seven qubits each cut the logical error roughly in half, one after the other. It was the first time that real hardware sat clearly on the right side of the threshold.

That is a milestone, not the finish line. A single good logical qubit takes hundreds or thousands of physical qubits, so a million physical qubits give you at most a few thousand logical ones. Everything that makes Gidney's number so large is in that overhead.

Where Things Stand

The field moves fast, and this section is the part of the article most likely to be out of date, so treat it as a snapshot.

Machines with hundreds of physical qubits have existed for some years, and several groups have built arrays of more than a thousand. Error correction has crossed its threshold on superconducting hardware, and groups working with ions and neutral atoms have shown small logical qubits that are better than the physical ones they are made of. Quantum computers have also solved artificial tasks, designed to be hard for ordinary machines, faster than any known classical method. But, as far as I could verify, no quantum computer has yet done something of practical use that couldn't also be done on an ordinary computer in reasonable time.

When that happens, it will most likely be in simulating quantum systems, which is what Feynman asked for: understanding molecules such as the active site of the enzyme that makes fertilizer from air, or designing new materials. Factoring will come later, because it needs the full machinery of error correction at a large scale. And many of the claims that you may read about databases, optimization, or machine learning rest on much weaker evidence. Quadratic speedups like Grover's are modest. For problems with large amounts of input data, just loading the data into the qubits can wipe out any gain.

Further Reading

Quantum Country, by Andy Matuschak and Michael Nielsen, is a series of essays on quantum computing with built-in memory aids. It goes through the mathematics at a gentle pace, and it's a good next step for anyone who wants to calculate with amplitudes.

Michael Nielsen and Isaac Chuang's textbook Quantum Computation and Quantum Information is the standard reference for the field. The first chapters are surprisingly readable.

Scott Aaronson's blog, Shtetl-Optimized, is the best place to read an honest and funny assessment of the latest claims, from someone who works on the theory.

If you'd like to see where the numbers for factoring come from, Craig Gidney's paper How to factor 2048 bit RSA integers with less than a million noisy qubits explains the estimate in detail. Google's Willow results appeared in Nature in 2025, under the title "Quantum error correction below the surface code threshold".

Final Words

It's a curious fact that the power of a quantum computer doesn't come from doing many things at once. It comes from a negative sign. A number that can be less than zero lets two routes to the same answer cancel each other out, and almost everything in this article is a way of using that cancellation without losing it.

The difficulty comes from the same place. A sign is such a delicate thing that a stray photon can flip it, and the many layers of error correction exist to protect a handful of minus signs from the rest of the universe. The machine isn't hard to imagine. What's hard is keeping it quiet.

I don't know when, or even whether, the large machines will be built. But the question they raise is already worth thinking about. We found that nature keeps a book with an entry for every possible arrangement of its parts, and that building a machine to read and write that book is one of the hardest things we have tried.