Skip to main content
KetQat

Appearance

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.

M(n)=b⋅2n bytes,Tgate(n,k)=O(2 n+k)M(n) = b \cdot 2^{n}\ \text{bytes}, \qquad T_{\text{gate}}(n, k) = O\big(2^{\,n+k}\big)

A pure state of nn qubits is a unit vector in C2n\C^{2^n}, so storing it takes b 2nb\,2^n bytes. A kk-qubit gate acts on the vector as 2n−k2^{n-k} independent products of a 2k×2k2^k \times 2^k matrix with a 2k2^k-vector, one for each setting of the other n−kn-k qubits, i.e. 2n−k⋅4k=2n+k2^{n-k}\cdot 4^k = 2^{n+k} multiply–adds, and it must read and write every amplitude. With b=16b = 16: n=30n = 30 gives 2342^{34} bytes =16= 16 GiB; n=40n = 40 gives 1616 TiB; n=45n = 45 gives 2492^{49} bytes =512= 512 TiB, consistent with the roughly half-petabyte memory used for the 45-qubit simulation of Häner and Steiger; n=50n = 50 gives 1616 PiB. Each additional qubit doubles memory and time. Density-matrix simulation of mixed states squares the dimension, b 4nb\,4^n bytes. Simulators that avoid the full vector (stabilizer, tensor-network, low-rank) trade this exponential for others tied to circuit structure.

Holds when

  • Pure-state simulation storing every amplitude; bb bytes per complex amplitude (b=16b = 16 for two double-precision floats); a dense kk-qubit gate given as a 2k×2k2^k \times 2^k matrix.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. 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

  1. 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

  1. 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).