Interactive Calculator · Quantum Foundations
Classical Simulation Memory Calculator
Find out how many qubits your laptop, GPU, or supercomputer can simulate exactly, and see why 50 qubits is such a famous line.
A gate on a state vector reads and writes every amplitude, so speed is limited by bandwidth.
State vector size
563 TB
3.52×10¹³ amplitudes
Your total memory
80.0 GB
Does not fit
Largest circuit that fits
32 qubits
Devices needed
7,037
of 80 GB each
Speed (memory-bound estimate)
Time per gate: 9.38 minutes
Whole circuit: 6.52 days
Memory needed versus qubits
Quick reference
| Qubits | Memory |
|---|---|
| 30 | 17.2 GB |
| 40 | 17.6 TB |
| 45 | 563 TB |
| 50 | 18.0 PB |
| 53 | 144 PB |
| 60 | 18.4 EB |
| 70 | 18.9 ZB |
| 100 | 20,282,410 YB |
Compute the memory needed to store an n-qubit state vector at a chosen precision, how many qubits fit in your hardware, how many devices you need, and how long a circuit takes when the simulation is memory-bandwidth bound.
What this calculator does
The founding argument for quantum computing is that classical computers cannot efficiently simulate quantum systems, because the description of n qubits needs 2 to the n complex numbers. This calculator turns that statement into concrete numbers. Choose the number of qubits and the precision used to store each amplitude, and it tells you the size of the state vector in bytes, whether it fits in the memory you specify, how many devices you would need, and how long each gate takes if the simulation is limited by memory bandwidth.
This is the method used by state-vector simulators such as those in Qiskit, Cirq, and cuQuantum. It is exact, but its cost doubles with each added qubit. The calculator's chart plots memory against qubit count on a logarithmic axis, along with reference lines for a laptop, a high-end GPU, and the memory scale of the largest supercomputers, so you can see where each machine runs out of room.
How to use it
Use the Laptop preset first. With 16 GB of memory and double precision, you can fit 29 qubits, or 30 if you count 16 binary gigabytes. That number is worth remembering: each additional qubit doubles the requirement, so 31 qubits already needs 34 GB, and 40 qubits needs about 17.6 terabytes. Switch to single precision and you gain exactly one qubit, since halving the bytes per amplitude only halves the memory. Then try the single 80 GB GPU preset: you can reach 32 qubits in double precision, and a node of eight such GPUs reaches 35.
Then move the qubit slider to 45. In 2017, Häner and Steiger simulated a 45-qubit circuit on a supercomputer using about half a petabyte of memory. At 53 qubits, the size of Google's Sycamore processor, the state vector in double precision takes about 144 petabytes, which exceeds the total memory of any machine ever built. That is why the 2019 supremacy experiment could not be checked by exact simulation, and it is also why classical groups needed cleverer methods, such as tensor networks, to challenge it.
The bandwidth input matters for speed. Applying a gate to a state vector reads and writes each amplitude, so on modern hardware the cost is dominated by moving data, not by arithmetic. The calculator estimates time per gate as twice the state size divided by total bandwidth. A 30-qubit simulation on a GPU with 2 terabytes per second takes about 17 milliseconds per gate, while a 40-qubit simulation on a cluster with the same total memory capacity needs to spread across many devices and takes much longer.
Reading the result
The headline number is the largest circuit that fits. If your circuit is bigger, brute-force state-vector simulation is out of reach, but that does not mean the circuit cannot be simulated at all. Circuits with limited entanglement can be simulated with tensor networks, whose cost depends on the entanglement rather than on the number of qubits. Circuits made only of Clifford gates can be simulated efficiently by the Gottesman-Knill theorem. Noisy circuits can be simpler than they look, as shown by the 2023 result of Aharonov and coauthors. The calculator's callout reminds you of these exceptions.
The quick reference table shows memory for common sizes. It is useful for sanity-checking claims: when a press release says a quantum computer performed a task that no classical computer could, you can check whether the task requires a state-vector approach or admits shortcuts.
Assumptions and limits
The model assumes a dense state vector, ignores memory used by the simulator itself, assumes perfect parallel scaling across devices, and treats speed as purely bandwidth bound. Real simulators have overheads, communication costs between nodes can dominate for large runs, and some use tricks such as gate fusion and compression to reduce the cost. The reference line for the largest supercomputers is an approximate round figure. Use the output as an order-of-magnitude guide.
The formulas behind it
Number of amplitudes
2ⁿ
One complex amplitude for each basis state of n qubits.
Memory
M = 2ⁿ × b
With b = 8 bytes for single precision complex numbers and 16 bytes for double precision.
Qubits that fit
n_max = ⌊log₂(M_total / b)⌋
Largest n whose state vector fits in the total memory.
Time per gate
t ≈ 2M / (devices × bandwidth)
Each gate reads and writes the full state, so the cost is set by memory bandwidth.
Worked examples
A laptop
- 16 GB of memory, double precision.
- n_max = ⌊log₂(16 × 10⁹ / 16)⌋ = ⌊29.9⌋ = 29.
ResultAbout 29 or 30 qubits fit, depending on how you count binary gigabytes.
The 45-qubit record
- n = 45 at 16 bytes per amplitude.
- M = 2⁴⁵ × 16 = 5.6 × 10¹⁴ bytes.
ResultAbout 0.56 petabytes, consistent with the 2017 simulation by Häner and Steiger.
Sycamore scale
- n = 53 at 16 bytes per amplitude.
- M = 2⁵³ × 16 = 1.44 × 10¹⁷ bytes.
ResultAbout 144 petabytes, far beyond any single machine, which is why the supremacy task was hard to check exactly.
Frequently asked questions
Why does each qubit double the memory?
Because adding a qubit doubles the number of basis states, so the number of amplitudes doubles.
Can I simulate 100 qubits?
Not with a state vector. You would need about 2 × 10³¹ bytes. You can simulate special 100-qubit circuits with other methods.
Why not just use compression?
Generic quantum states are not compressible. Compression works only when the state has structure, such as low entanglement.
References
- Häner, T., & Steiger, D. S. (2017). 0.5 petabyte simulation of a 45-qubit quantum circuit. Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis (SC17), 33.
- Boixo, S., et al. (2018). Characterizing quantum supremacy in near-term devices. Nature Physics, 14, 595-600.
- Pednault, E., et al. (2019). Leveraging secondary storage to simulate deep 54-qubit Sycamore circuits. arXiv:1910.09534.
- Gottesman, D. (1998). The Heisenberg representation of quantum computers. arXiv:quant-ph/9807006.
- Orús, R. (2014). A practical introduction to tensor networks: Matrix product states and projected entangled pair states. Annals of Physics, 349, 117-158.
- Aharonov, D., Gao, X., Landau, Z., Liu, Y., & Vazirani, U. (2023). A polynomial-time classical algorithm for noisy random circuit sampling. STOC '23, 945-957.
Keep exploring
- Paper: Quantum Supremacy Using a Programmable Superconducting Processor
- Paper: Simulating Physics with Computers
- Myth: Classical computers can never simulate a quantum computer
- Term: Hilbert Space
- Forecast: Quantum Simulation: The Most Likely Early Scientific Payoff
These calculators use simplified, published models for education and planning. Real devices and systems differ, so treat results as estimates. They are not engineering, investment, legal, or security advice.