Superposition is the first idea people meet in quantum computing, and the one most often misdescribed. It does not mean that a qubit is “0 and 1 at the same time” in any everyday sense, and by itself it does not make a computer faster. It is a precise statement about how quantum states combine.
What does superposition mean?
In classical physics a system is in one definite state: a switch is on or off, a coin lying on a table shows heads or tails. In quantum mechanics, if a system can be in state A and can be in state B, it can also be in a weighted combination of the two. That combination is a superposition. It is a legitimate state in its own right, not an expression of our ignorance about which state the system is “really” in.
For a qubit, the two basic states are 0 and 1, and a superposition is any combination of them. Superposition is not peculiar to qubits. It is a general feature of quantum systems and has been confirmed in experiments with photons, electrons, atoms and even large molecules.
What are amplitudes, and how do they relate to probabilities?
The weights in a superposition are called amplitudes. An amplitude is not a probability. It is a number with both a size and a direction, the direction being known as the phase. The probability of an outcome is the square of the size of its amplitude, and the probabilities of all outcomes add up to one. A qubit whose two amplitudes are equal in size, for example, gives 0 in about half of the measurements and 1 in the rest.
The phase is what separates a quantum superposition from ordinary chance. Two amplitudes with the same phase reinforce each other; two with opposite phases cancel. Probabilities can only add, whereas amplitudes can also subtract. Everything that is distinctive about quantum computing follows from this.
With more qubits the bookkeeping grows quickly. Two qubits have four possible outcomes and therefore four amplitudes; three qubits have eight. Each additional qubit doubles the number.
What does measurement do to a superposition?
Measurement forces a result. A qubit in superposition, when measured, gives 0 or 1, never a blend, and afterwards it is in the state that was observed. The original amplitudes are no longer accessible.
The outcome of a single measurement is random; the state fixes only the probabilities. This randomness is not caused by imperfect instruments but is built into quantum theory itself. In practice it means that a quantum computation ends with a short string of ordinary bits, and that the computation usually has to be repeated many times to estimate the probabilities reliably.
Superpositions are also fragile. Unwanted interaction with the environment acts much like a measurement and destroys them, a process called decoherence. This is why qubits have to be isolated so carefully.
Does a quantum computer try every answer at once?
This is the most common misconception. It is true that a group of qubits in superposition has an amplitude for every possible input, and that a gate acts on all of these amplitudes in a single step. But at the end a measurement is made and only one outcome is obtained. If nothing else has been done, that outcome is random, which is no better than guessing.
What makes algorithms work is interference. A quantum algorithm arranges its operations so that the amplitudes of wrong answers cancel while those of right answers add up, so that a measurement returns a right answer with high probability. Whether this is possible depends on the structure of the problem. Shor’s algorithm exploits a hidden periodicity. Grover’s algorithm increases the amplitude of the sought item step by step and achieves a quadratic, not an exponential, speed-up. For problems where no such arrangement is known, superposition offers no advantage by itself.
Is there an everyday way to picture superposition?
Sound is a reasonable analogy. A guitar string can vibrate at its fundamental tone, at an overtone, or at both together; what you hear is a superposition of vibrations, each with its own strength. Noise-cancelling headphones show the other half of the story: two waves with opposite phase cancel each other, which is interference.
The analogy breaks down at measurement. A microphone can record the entire sound wave and show every tone with its strength. A qubit cannot be read out in this way: one measurement gives one result, 0 or 1, and destroys the rest. In addition, several qubits in superposition together can be entangled, which has no counterpart in ordinary sound waves.
How Q&Co can help
Knowing what superposition can and cannot do is the basis for judging whether a problem suits a quantum computer. Q&Co carries out this quantum suitability assessment before developing any algorithm, and provides consulting and training on the fundamentals. To discuss your own case, get in touch.