TL;DR
A qubit is the quantum version of a bit: a system with exactly two basis states, usually written and . Unlike a classical bit, its state can be a weighted mix of both at once, described by two complex numbers called amplitudes. When you measure it you always get 0 or 1, and the amplitudes decide how likely each result is.
The mix is what makes qubits useful for computing: quantum algorithms work by steering amplitudes so that wrong answers cancel and right answers add up.
Where you'll see it: in quantum computers, where each qubit is a physical two-level system such as a trapped ion, a superconducting circuit or the spin of an electron, and in quantum cryptography, where the qubit is the unit of transmitted information.
Intuition
A bit that can be a little of both
A classical bit is a switch: off or on, 0 or 1. Its state is always one of two definite values. A qubit is also a two-level system, but its state is a direction in a space of arrows rather than one of two points. You can prepare it in , in , or in any blend of the two. The blend is not a hidden mixture of "either 0 or 1, we just don't know which". It is a genuine state that interferes with itself, which is the feature the rest of quantum computing depends on.
The blend is set by two complex numbers, which is why complex numbers are a prerequisite. Their sizes say how likely each outcome is, and their phases say how the two parts line up when they meet again, which is where interference comes from.
A picture: the sphere
Any qubit state can be drawn as a point on the surface of a ball, the Bloch sphere. The north pole is , the south pole is , and every other point is a blend. Points near the poles are almost certainly 0 or almost certainly 1. Points on the equator are a fifty-fifty mix. The plot below shows the simplest slice of this picture: the probability of getting 0 as the state moves from the north pole to the south.
- P(measure 0)
- P(measure 1)
Why the idea exists
A bit with a continuous family of states is not new in itself: a spinning arrow has that too. What is new is that quantum physics lets such a two-level system be prepared, controlled and read out, and that the state is more than a probability table. Two qubits together do not hold two bits of information; they live in a space with four basis states, and the number of amplitudes doubles with each added qubit. That exponential growth is the reason a machine built from qubits can, for some problems, beat a classical computer, and the reason it is hard to simulate one.
The math
States
A qubit state is a unit vector in a two-dimensional Hilbert space with basis and :
Here and are the amplitudes. The symbol is the modulus of a complex number, so is the squared size of . The constraint says the state has length 1 in the Hilbert space, which is the normalisation that makes the probabilities below add up. The global phase of the whole state (multiplying and by the same complex number of size 1) changes nothing physical, so only the relative phase between and matters.
Measurement: the Born rule
Measuring a qubit in the basis gives outcome 0 with probability and outcome 1 with probability . After the measurement the state is collapsed to the outcome you saw: or . This is the Born rule in its simplest form. A second measurement right after gives the same answer, but the amplitudes are gone; you cannot read them out from a single measurement.
The Bloch sphere
Every qubit state can be written, up to a global phase, as
The pair are the polar and azimuthal angles of a point on the unit sphere. The probability of outcome 0 is , which is the curve in the plot above. The factor in the angle is not a typo: and are orthogonal states, yet they sit at opposite poles, an angle apart on the sphere, while the amplitudes only rotate by . Angles on the sphere are twice the angles between the state vectors.
Two standard states
The states and sit on the equator, on opposite sides. They are the equal superpositions that the superposition principle makes available.
Worked examples
Take .
- Check normalisation: and .
- Add them: . The state is valid.
- Probability of measuring 0 is ; of measuring 1 is .
- Interpretation: the state leans towards . Over many identical preparations, about three in four runs give 0.
The Hadamard gate is the matrix . Apply it to , which is the vector .
- Multiply the top row by the input: .
- Multiply the bottom row by the input: .
- The result is .
- Measure it: each outcome has probability .
- Apply again. The bottom row now contributes to the amplitude, so the result is with certainty.
Interpretation: the second Hadamard made the two paths to cancel. That cancellation is interference, and it is the mechanism every qubit algorithm uses.
Tradeoffs and failure modes
| Situation | Problem | Better choice |
|---|---|---|
| Storing a classical bit | A qubit adds cost and fragility for no gain | A classical bit |
| Keeping a qubit for a long time | It loses its phase to the environment (decoherence) | Error correction, or shorter circuits |
| Copying a qubit to check it | The no-cloning theorem forbids a general copy operation | Measure only what you must, or encode the state redundantly |
| Reading out the full state | One measurement gives one bit, and collapses the state | Repeat the preparation many times and estimate the probabilities |
The biggest practical failure is decoherence: the environment picks up information about the qubit, and the phase relationship between and fades. Interference depends on that phase, so the algorithm stops working even though the probabilities look fine.
History
The mathematics of two-level quantum systems is older than the word. Felix Bloch's 1946 description of nuclear spins in a magnetic field gave the sphere picture that carries his name. In the early 1980s Richard Feynman argued that quantum systems are hard to simulate on classical computers and suggested that quantum machines could simulate them better. David Deutsch described a universal quantum computer in 1985. The term "qubit" was coined by Benjamin Schumacher in the mid-1990s, when quantum information theory was becoming a field of its own. It caught on because the two-level unit became the standard resource in quantum algorithms, quantum error correction and quantum communication.
Check yourself
QuestionWhat is the difference between a classical bit and a qubit in one sentence?Show answer
A bit is always definitely 0 or definitely 1, while a qubit can be in a state that is a weighted blend of and , described by two complex amplitudes whose squared sizes give the measurement probabilities.
QuestionA qubit has and (real and positive). What is the probability of measuring 1?Show answer
. Check: , so the state is valid.
QuestionWhy does applying the Hadamard gate twice return , even though one application gives a 50-50 measurement?Show answer
The first Hadamard puts equal amplitudes on and . The second adds the two paths that lead to with opposite signs, so they cancel, while the paths to add. The cancellation is interference, which a single measurement cannot reveal.
QuestionWhy can't you read out the amplitudes of an unknown qubit with one measurement?Show answer
A measurement returns 0 or 1 and collapses the state to that outcome, so the amplitudes are destroyed. Estimating them needs many preparations and measurements of the same state.
QuestionA quantum computer gets a qubit prepared in and lets the phase rotate by , giving . Which Bloch sphere point is this, and what does it measure?Show answer
It is , on the equator at the opposite side from . Measuring in the basis gives 0 or 1 with probability one half each, the same as . The difference only shows up if you measure in a different basis, such as .