Tutorial 4 of 13 · Simulated in your browser
Many qubits
n qubits have 2ⁿ amplitudes, and you still read out only n bits.
- Amplitude bars
From one qubit to two
One qubit took two amplitudes. Put two side by side and the state is one list, with an amplitude for each of 00, 01, 10 and 11. Not two pairs.
Say the two qubits have nothing to do with each other. Then the list is a product: each of the four amplitudes is one qubit’s amplitude times the other’s. That’s what independence looks like here.
Every qubit doubles the list
A third qubit makes the list 8 long. Each one doubles it. So n qubits take 2ⁿ amplitudes, the same way ten bits have 1,024 possible values.
Ten qubits: 1,024 amplitudes. Thirty: 1,073,741,824. Turn on qubits in the register below. The bars double.
- Amplitudes
- 8
- Bits per shot
- 3
- Not zero
- 1
- A product state
- yes
Arrow length
- qubit 0 1.00
- qubit 1 1.00
- qubit 2 1.00
You read n bits
Measure all n qubits and out comes one string of n bits, picked with probability |amplitude|². Not the list. One line of it.
There’s no getting around it by measuring more cleverly. Preskill shows that n qubits “can convey no more than n bits of information”, even with one measurement made on all of them at once.
Say you only want one bit back out of many. Nayak shows that encoding them in qubits has no asymptotic advantage over encoding them in bits, even then.
So: 2ⁿ numbers in, n bits out.
Where the cost comes from
Simulating the state means keeping the whole list, at 16 bytes per amplitude in double precision. So memory doubles with every qubit: 16 KiB for ten, 16 GiB for thirty.
In 2017 Häner and Steiger simulated 45 qubits on the Cori II supercomputer. It took half a petabyte of memory across 8,192 nodes. They wrote that just storing the state of 50 qubits would take 16 petabytes.
Five qubits more, 32 times the memory.
- Amplitudes
- 1,024
- Memory to store them
- 16 KiB
- Bits one shot reads
- 10
- Where this site’s own simulator stops
- Häner and Steiger’s 45-qubit simulation
- The full 49-qubit state Pednault et al. avoided storing
- The 50 qubits Häner and Steiger put at 16 PB
Most states aren’t products
With every qubit on its own, the register needs two angles per qubit: 2n numbers, so 20 for ten qubits. A general state takes 2ⁿ⁺¹ − 2. For ten, that’s 2,046.
A state that isn’t a product of its qubits is called entangled. GHZ is one. Almost all of the list lives there. That’s the next tutorial.
- Every qubit on its own (two angles each)6
- Any state of the register14
- A general state needs, per number a product needs
- 2.3 ×
A long list isn’t a hard problem
2ⁿ isn’t a floor. It’s what the obvious simulation costs.
Entangling lots of qubits doesn’t always make a circuit hard. Knill’s theorem, as Gottesman’s paper gives it, says circuits of Hadamard, phase and CNOT gates with Pauli measurements can be simulated in polynomial time on an ordinary computer.
Little entanglement makes it cheap too. Vidal’s simulation costs grow linearly in n and exponentially in the entanglement. So an exponential speed-up needs entanglement that grows with the size of the problem. Jozsa and Linden get to the same need, and still argue it’s misleading to call entanglement the key resource.
Clever simulation beats the list, too. A 2017 preprint, mostly by IBM researchers, puts the full 49-qubit state at 8 PB. By computing it in slices, they ran a 49-qubit circuit in just over 4.5 TB.
So the 2ⁿ is real. What it buys you depends on the circuit.
Qubit order: bit strings are written with qubit 0 on the left, as in Nielsen and Chuang’s book. (Qiskit puts it on the right.)
Sources
IBM, Basics of Quantum Information Basics of Quantum Information (IBM Quantum Learning). IBM. Live course: single systems, multiple systems, circuits, entanglement in action.
- Multiple systems, Quantum information: “Quantum states” (Cartesian product order, tensor products)
- Multiple systems, Quantum information: “Tensor products of quantum state vectors” (they represent independence)
- Multiple systems, Classical information: “Classical states via the Cartesian product” (ten bits, 1,024 states)
- Multiple systems, Quantum information: “Measurements of quantum states”
- Multiple systems, Quantum information: “Entangled states” and “GHZ and W states”
Preskill, Quantum Shannon Theory Quantum Shannon Theory. Lecture notes. John Preskill, chapter 10 of the Ph219 notes, arXiv:1604.07450 (v5, 8 July 2025, read as the arXiv HTML).
- §6.1, after eq. (206), with d = 2ⁿ; the Holevo bound is §6.2, eq. (211)
Nayak 1999 Optimal lower bounds for quantum automata and random access codes. Preprint. Ashwin Nayak, arXiv quant-ph/9904093 (v3, 7 September 1999); the arXiv comment reads “To appear in FOCS’99”.
- §1, and Theorem 2.3: m ≥ (1 − H(p))n qubits for n bits. A preprint, listed to appear in FOCS’99
Häner and Steiger 2017 0.5 Petabyte Simulation of a 45-Qubit Quantum Circuit. Paper. Thomas Häner and Damian S. Steiger, SC 2017, article 33 (the arXiv text, 1704.01127v2).
- §2: the state of n qubits is a complex vector of size 2ⁿ; §3.1: 16 bytes per double-precision entry
- Abstract and §4.1.2: 45 qubits, 8,192 nodes, 0.5 PB; §2: 16 PB for 50 qubits
Gottesman 1998 The Heisenberg Representation of Quantum Computers. Paper. Daniel Gottesman, Group22 proceedings, International Press, 1999, pp. 32–43 (the arXiv text, quant-ph/9807006).
- §3: H, P and CNOT generate the Clifford group; §8, Theorem 1 (“Knill’s theorem”)
Vidal 2003 Efficient classical simulation of slightly entangled quantum computations. Paper. Guifré Vidal, Physical Review Letters 91, 147902 (2003) (the arXiv abstract, quant-ph/0301063).
- Abstract
Jozsa and Linden 2002 On the role of entanglement in quantum computational speed-up. Paper. Richard Jozsa and Noah Linden, Proceedings of the Royal Society A (the arXiv abstract, quant-ph/0201143v2).
- Abstract
Pednault et al. 2017 Breaking the 49-Qubit Barrier in the Simulation of Quantum Circuits (now titled “Pareto-Efficient Quantum Circuit Simulation Using Tensor Contraction Deferral”). Preprint, IBM-led: Edwin Pednault and eight others, most at IBM’s T.J. Watson Research Center, arXiv:1710.05867 (v4, 27 August 2020).
- §2.1: 2⁴⁹ amplitudes, 8 PB; §1: just over 4.5 TB for the depth-27 run on a 7 × 7 grid. IBM-led
Everything here is paraphrased from the sources, not quoted, and every figure that is not plain arithmetic is attributed. The simulator is this site’s own and is tested against the formulas on the page. Where a source is silent the page says so.
