Hello, world!

The Work of Interference

A quantum computation can end with a bit as ordinary as any bit on a laptop. In a laboratory, a detector registers a signal and a classical controller records a zero or a one. There may be hours of calibration behind that digit, and a calculation that could be ruined by a slight change in the phase of a microwave pulse. The digit carries no record of that effort. To understand the machine, we have to look at what happened before the detector was turned on.

A minus sign you can measure

Start with a qubit prepared in state 0. Apply a gate called Hadamard, or H. Measure now and you have an even chance of seeing 0 or 1. Apply H again before measuring and you get 0 with certainty, assuming ideal gates. The first H prepared a superposition with two equal amplitudes. The second H combined those amplitudes. For the outcome 0 they reinforced each other. For the outcome 1 they canceled.

Slip a different gate, Z, between the two H gates. It reverses the sign of the amplitude associated with 1. A measurement immediately after Z would still give an even split. The final H makes that changed sign visible. Now the two contributions to 0 cancel, and the ones leading to 1 add.

One ideal qubit, starting in state 0
Gates in orderFinal measurement
H0 or 1 with equal probability
H, then HAlways 0
H, then Z, then HAlways 1

A probability describes the odds of an outcome. An amplitude also has a phase, which affects how it combines with other amplitudes. The two states just before the final H give the same odds when measured directly in the 0/1 basis. They behave differently under the next operation. A single run gives one result, and repeated preparations and measurements reveal its probability.

What belongs to the pair

Prepare two qubits in an entangled state that yields either 00 or 11, each half the time, when both are measured in the 0/1 basis. Each observer sees a random bit. Together they see perfect agreement. A pair of matching slips of paper in separate envelopes could do that much. To see how the quantum pair differs, let the observers choose among different measurement settings and compare many trials. For suitable settings, the correlations can violate a Bell inequality, a bound that applies to local hidden-variable models. The observers still need an ordinary channel to compare results. Neither can choose the random bit the other will see. Read the Bell experiment.

Entanglement changes the bookkeeping of a computation. A general pure state of n qubits takes 2n amplitudes to describe directly. Some states have compact descriptions, and clever classical simulations exploit that structure. A useful quantum algorithm must find structure of its own. It needs a way to turn information held in those amplitudes into a result that can be recovered through a feasible number of measurements.

What the problem must give you

Suppose there is one marked item among a million and the only operation available is a test of a candidate. Classically, the worst case calls for about a million tests. Grover’s algorithm brings the number of queries down to the order of a thousand, provided that the test can be performed coherently on the quantum computer. Each round increases the marked item’s amplitude, and the algorithm stops when measuring is likely to return it. The cost of implementing the test, preparing the input, and running each round still counts. Read Grover’s paper.

Shor’s algorithm gets more from the particular structure of factoring. It reduces the task to finding a period in modular arithmetic. A quantum Fourier transform helps make information about that period visible in the measurement statistics, and ordinary arithmetic then recovers factors with high probability across repeated attempts. The algorithm runs in polynomial time on an ideal quantum computer. The best known general-purpose classical methods take longer asymptotically. Whether a classical computer can factor in polynomial time remains open. Read Shor’s paper.

A machine capable of running Shor’s algorithm at the required scale would threaten the mathematics behind RSA and elliptic-curve cryptography. Cryptographers can change what their systems rely on while physicists work on the machine. The first three post-quantum standards NIST published in 2024 cover key establishment and digital signatures. Their algorithms run on ordinary computers. See the NIST standards.

Matter as a subject of computation

Richard Feynman approached the field from a problem in physics. To calculate how a many-body quantum system evolves, a classical program may have to keep track of a rapidly growing state. Could a second quantum system be controlled well enough to reproduce the evolution of the first? The proposal was concrete enough to change the kind of apparatus people could imagine building. Read Feynman’s 1982 paper.

A physicist modeling a magnetic material might want to estimate how a disturbance spreads through it. A chemist might want an energy difference between two molecular configurations. These are specific quantities that can be estimated from a set of measurements. The hard parts include preparing a suitable initial state, representing the interactions accurately, and collecting enough data to resolve the effect. Classical methods remain formidable whenever the relevant states have useful structure. An experiment earns its place by returning a useful quantity at a precision and cost the best available comparison makes meaningful.

How long a calculation can last

A qubit acquires errors as it interacts with its surroundings and as imperfect controls act on it. A long computation must keep going while those errors occur. Quantum error correction encodes one logical qubit across several physical qubits. Measurements called syndrome checks reveal information about errors while preserving the encoded information in the ideal procedure. A classical decoder interprets the pattern of check results. It has to keep up while the experiment produces more of them.

The surface code makes the engineering tradeoff unusually clear. A larger code uses more physical qubits and asks the hardware to perform more checks. Below a suitable noise threshold, increasing the code distance can still reduce the logical error rate. Google Quantum AI reported this behavior in surface-code memories on its Willow processor. A memory experiment asks how faithfully an encoded state survives repeated checks. A long algorithm also needs reliable logical gates, state preparation, measurement, and enough room to do all of that on the same machine. Read the surface-code experiment.

Go back to the single qubit and the minus sign. With three gates, a change that leaves the immediate measurement statistics untouched determines the final answer. A much longer circuit asks the hardware to preserve such distinctions through thousands or millions of operations, with a specified chance of failure. At the end, a detector will register a signal and a classical controller will write down ordinary bits. The question worth asking of those bits is what they let us find out, and what it took to make them reliable enough to believe.