Core idea
What is a qubit?
A qubit, short for quantum bit, is the basic unit of a quantum computer. A bit is always 0 or 1. A qubit holds two numbers, called amplitudes, one for the reading 0 and one for the reading 1. The squared size of each number is the chance of that reading.
That is the full definition. This page shows how to read a qubit, what it is physically made of, and what you can and cannot do with one.
How a qubit holds information
Write the two amplitudes as a and b, so the qubit is a|0⟩ + b|1⟩. The chance of reading 0 is a × a and the chance of reading 1 is b × b. Those must add to 1, since one of the two readings always happens.
Say a is 0.6 and b is 0.8. The chances are 0.36 and 0.64, and 0.36 + 0.64 = 1. A qubit with a = 1 and b = 0 is a plain 0, and one with a = 0 and b = 1 is a plain 1. Anything between is a superposition.
The amplitudes can be negative, and they can be complex numbers, which carry a turn as well as a size. That extra freedom is what a bit lacks, and it is what lets gates make the two numbers cancel.
What happens when you read a qubit
A measurement returns one plain bit. With a = 0.6 and b = 0.8, you get 0 with chance 0.36 and 1 with chance 0.64. Afterwards the qubit holds the state you read, so a second reading straight away gives the same bit.
Reading destroys the two numbers. You cannot learn a and b from one reading. To estimate them you prepare the same state many times and count. A few thousand repeats, called shots, give the chances to about one percent.
Picturing one qubit
After you drop the overall factor that no measurement can see, a single qubit needs only two real numbers. That is why it can be drawn as an arrow from the centre of a ball to its surface, called the Bloch sphere. The top of the ball is 0 and the bottom is 1. The pair (0.6, 0.8) points a little below the middle, tilted about 106 degrees from the top. The page What is the Bloch sphere? explains the picture, and you can turn a qubit yourself on the qubit page.
What a qubit is made of
A qubit needs a tiny system with two levels that you can control and read. Several kinds are in use.
- Superconducting qubits are small electrical circuits on a chip, cooled close to absolute zero.
- Trapped ions are single charged atoms held in place by electric fields in a vacuum, and steered with lasers.
- Photons, neutral atoms and electron spins in silicon are also being developed.
None of these is a perfect two-level system, and all of them are noisy. Keeping the two numbers tidy long enough to finish a circuit is the central engineering challenge, and it is covered on the decoherence and coherence time pages.
What you cannot do with a qubit
- Copy an unknown one. No gate can copy an unknown qubit. This is the no-cloning rule, and it is why quantum data is handled differently from files.
- Read its two numbers. One reading gives one bit, not a and b.
- Treat it as 0 and 1 at the same time. It holds one state described by two numbers. The page What is superposition? tests that idea with a sum.
Why qubits matter
The state of n qubits needs 2 to the power n amplitudes, so the list doubles with every qubit you add. Ten qubits need 1,024. Fifty need about 1.1 quadrillion. That growth makes large quantum computers hard to simulate on ordinary ones. It does not mean a quantum computer hands you every answer, since reading n qubits still gives only n bits.
Where to go next
What is quantum computing? shows what a program does with qubits. The quantum gates cheat sheet lists how each gate rewrites the two numbers, and Quantum vs classical computing compares the two kinds of machine.
Questions people ask
What is a qubit in simple terms?
A qubit is the quantum version of a bit. Where a bit is always 0 or 1, a qubit holds two numbers, called amplitudes, one for the reading 0 and one for the reading 1.
What is the difference between a bit and a qubit?
A bit is always 0 or 1 and can be read and copied freely. A qubit holds two amplitudes, gives a single bit when read, changes when read, and cannot be copied if its state is unknown.
How are qubits made?
A qubit can be any tiny system with two levels that can be controlled. Common choices are small superconducting circuits, single trapped atoms, particles of light, and electron spins in silicon.
How many qubits does a quantum computer have?
Today's machines have from tens to a few thousand physical qubits. They are noisy, so useful long calculations need error correction, which turns many physical qubits into one reliable logical qubit.
Can a qubit be copied?
Not if its state is unknown. The no-cloning rule says no gate can copy an unknown qubit. You can only prepare fresh qubits in a state you already know how to make.