Cheat sheet
Quantum computing cheat sheet
This sheet fits the core ideas of quantum computing on one page. It is built for quick reference and prints on a single side of paper. Each line links to a longer explanation, in case you want the reasoning behind it.
The five rules
- State. A qubit holds two numbers, called amplitudes, one for the reading 0 and one for the reading 1. Write it a|0⟩ + b|1⟩.
- Chances. The chance of each reading is the squared size of its amplitude. The two chances always add to 1.
- Gates. A gate rewrites the amplitudes by a fixed rule and reads nothing. Every gate can be run backwards.
- Interference. Amplitudes can be negative or complex, so two routes to one outcome can cancel. Chances alone never could.
- Measurement. Reading a qubit returns one bit, 0 or 1, with the chances above. It then leaves the qubit in the state you read.
Key numbers
| Quantity | Value |
|---|---|
| Amplitudes for n qubits | 2 to the power n. That is 2, 4, 8, 16 for one to four qubits, 1,024 for ten, and about 1.1 quadrillion for fifty. |
| Bits you get on reading n qubits | n |
| Even split | Both amplitudes are 1 ÷ √2, about 0.71, so each chance is ½ |
| Chance from an amplitude | Amplitude × amplitude, or the squared size if it is complex |
| Repeat runs | Each run of a circuit is a shot. A few thousand shots give the chances to about one percent |
Most-used gates
| Gate | One line |
|---|---|
| H | Turns |0⟩ into an even split. Adds and subtracts the two amplitudes, then divides by √2. |
| X | Swaps the two amplitudes. The quantum NOT. |
| Z | Flips the sign of the amplitude for 1. |
| CNOT | Flips a second qubit wherever the first reads 1. H then CNOT makes a Bell state. |
The full list, with matrices, is on the quantum gates cheat sheet.
What quantum computers are good for
| Task | Method | Gain over an ordinary computer |
|---|---|---|
| Factoring large numbers | Shor's algorithm | Far fewer steps than any known ordinary method. Needs a large, error-corrected machine. |
| Searching an unsorted list | Grover's search | Square-root saving only. A list 100 times longer needs about 10 times the rounds. |
| Modelling molecules and materials | Quantum simulation | Likely, and an active research area |
| Everyday computing | None | No gain. An ordinary computer is faster and cheaper. |
See Can quantum computers break encryption? for what Shor's algorithm threatens and what replaces the affected locks.
Hardware at a glance
| Kind of qubit | Made from | Kept at |
|---|---|---|
| Superconducting | Tiny electrical circuits on a chip | Close to absolute zero |
| Trapped ion | Single charged atoms held by electric fields | A vacuum, with laser control |
| Others | Photons, neutral atoms, electron spins in silicon | Varies |
The hard part is errors
- Decoherence is the fading of the tidy numbers when heat or stray fields leak in. A device has a coherence time, and a circuit must finish well inside it.
- Error correction spreads one protected logical qubit across many physical ones so slips can be found and repaired.
- Fidelity scores how close a real state or gate is to the one intended. Higher is better.
Mistakes to avoid
- A qubit is not 0 and 1 at the same time. It is one state with two numbers, and a reading gives one bit.
- A quantum computer does not try every answer and hand you the best. It helps only when a circuit makes the wrong answers cancel before the reading.
- Entanglement does not send messages. Each qubit read alone is a fair toss.
- Quantum computers will not replace ordinary ones. They are tools for a few particular jobs.
Go deeper
Start with What is quantum computing? or follow the reading order in Quantum computing for beginners. The Nerdictionary defines every term on this sheet, and Quantum vs classical computing compares the two kinds of machine side by side.
Questions people ask
What are the key rules of quantum computing?
A qubit holds two amplitudes. The chances of the readings are their squared sizes and add to 1. Gates rewrite the amplitudes without reading them. A measurement returns one bit per qubit and ends the superposition.
How many numbers does it take to describe n qubits?
It takes 2 to the power n amplitudes. That is 4 for two qubits, 1,024 for ten and about 1.1 quadrillion for fifty. Reading them still gives only n bits.
What are the main quantum algorithms?
Shor's algorithm factors large numbers, Grover's search finds a marked item in an unsorted list with a square-root saving, and quantum simulation models molecules and materials.
What are the main kinds of qubit?
The two most common are superconducting circuits, cooled near absolute zero, and trapped ions, held in a vacuum. Others use photons, neutral atoms and electron spins in silicon.
What is the most common beginner mistake?
Saying a qubit is 0 and 1 at the same time. A qubit holds two numbers, and each reading gives one bit.