A pure state of qubits is a unit vector in , so storing it takes bytes. A -qubit gate acts on the vector as independent products of a matrix with a -vector, one for each setting of the other qubits, i.e. multiply–adds, and it must read and write every amplitude. With : gives bytes GiB; gives TiB; gives bytes TiB, consistent with the roughly half-petabyte memory used for the 45-qubit simulation of Häner and Steiger; gives PiB. Each additional qubit doubles memory and time. Density-matrix simulation of mixed states squares the dimension, bytes. Simulators that avoid the full vector (stabilizer, tensor-network, low-rank) trade this exponential for others tied to circuit structure.
Equation · introductory
Cost of state-vector simulation
Storing the full state of n qubits takes 2^n complex amplitudes, and applying a k-qubit gate touches all of them, so memory and time per gate grow as 2^n; at 16 bytes per amplitude, 30 qubits need 16 GiB and 45 qubits about half a pebibyte.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Holds when
- Pure-state simulation storing every amplitude; bytes per complex amplitude ( for two double-precision floats); a dense -qubit gate given as a matrix.
Related records
- Part of
- Related
- Stated in
Contributions about this record
Nobody has published a contribution about it yet.
Publish a result, reproduction or commentPropose a correction to this page
References
- Thomas Häner, Damian S. Steiger (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), article 33. doi:10.1145/3126908.3126947arXiv:1704.01127
Contributors
- KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
- Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Memory and per-gate operation counts re-derived (2^{n-k} blocks of 4^k multiply-adds); byte figures recomputed: 2^34 B = 16 GiB, 2^44 B = 16 TiB, 2^49 B = 512 TiB, 2^54 B = 16 PiB. 45-qubit simulation with 0.5 petabytes of memory compared with the abstract of Haner and Steiger, arXiv 1704.01127 (SC17); Crossref metadata match.
Revision history
- 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)
80537b7e
Current revision a589d7d559995f14. Source file knowledge/records/equation/state-vector-simulation-cost.md in the content repository (readable there once it is public).