Simulating a quantum computer on classical hardware means storing $2^n$ complex numbers, called amplitudes, for $n$ qubits and updating all of them for every gate. On a GPU this hits a wall well before memory runs out. On an A100, speed degrades exponentially once the state outgrows the L1 cache at about 13 qubits and the L2 cache at about 22 qubits (State of practice). Many circuits that people actually simulate, including reversible arithmetic, oracles, state preparation, and the opening layers of most algorithms, leave most amplitudes exactly zero for long stretches. Today's GPU simulators either ignore this or recover it only through general-purpose lossy compressors that must decompress before every update.
We propose storing the state itself, not the gate matrices, as a block-sparse array. Each stored block is a dense, warp-aligned run of $2^b$ amplitudes, and a small index records which blocks are nonzero. Gates are then applied directly to this representation without ever expanding it. The key design choice is that which qubits live "inside" a block and which qubits index the blocks is a cheap, runtime-adjustable permutation of qubit labels. That turns the expensive row-reordering step of sparse linear algebra into a decision over $n$ qubits rather than $2^n$ rows.
Core Claim
The two research directions meet at a real tension. Qandle reports a "sparsity paradox": dense PyTorch operations beat torch.sparse and cuSPARSE on quantum gates because of conversion, indexing and uncoalesced memory access. Mera shows on a CPU that element-wise sparse gate formats raise the qubit limit from 17 to 35 on 0.7 TB of RAM. Mera's comparison point, however, is full $2^n \times 2^n$ gate matrices, which production simulators never build; they apply small dense gates in place. The sparsity that matters for the memory wall is therefore in the state, not in the gates.
Our claim is that a lossless block-sparse state, with block size matched to warp and Tensor Core tile boundaries and with qubit placement chosen adaptively, can do three things on workloads with sparse support. It can match or beat dense GPU simulators in time. It can approach the memory reduction of lossy compressors such as BMQSim. And it can do this exactly, with no decompression step. On dense workloads it falls back to a dense layout at a bounded cost.
The memory cost makes the role of qubit placement explicit. Let $\pi$ assign each qubit either to one of $b$ in-block positions or to one of $n-b$ block-index positions. Let $N_\pi(\psi)$ count the blocks of state $\psi$ that contain at least one nonzero amplitude. The footprint is then
$$M_\pi(\psi) = N_\pi(\psi)\,2^b\,c + N_\pi(\psi)\,(n-b)/8,$$
where $c$ is the bytes per amplitude (16 in FP64) and the second term is the index metadata in bytes. The block count $N_\pi$ can vary by orders of magnitude across placements: putting the qubits that are currently in superposition inside blocks packs nonzeros densely. Choosing $\pi$ well is the analogue of the Jaccard row reordering in SMaT. Here it costs $O(n)$ per decision instead of a pass over the matrix. That matters because SMaT's own open problem is that reordering is too expensive for sparsity patterns that change at runtime, and a simulated quantum state changes at every gate.
Research Program
The simulator classifies each gate by where its target qubits sit under the current placement.
A gate acting only on in-block qubits is a dense local update applied to every stored block. A single-qubit gate is a butterfly within the warp. A fused $k$-qubit gate is a $2^k \times 2^k$ matrix multiplied against all stored blocks at once, with the blocks as the batch dimension. That maps onto Tensor Core matrix-multiply instructions, using the batch-size-last layout and fused output-stationary kernel of Fast Inference with Kronecker-Sparse Matrices. We reuse their kernel-design method directly: a gate on qubit $q$ is $I \otimes U \otimes I$, which is exactly a Kronecker-sparse matrix, and their kernel avoids the permute–multiply–permute pattern that consumed up to half of runtime in their setting.
Gates that permute basis states, such as X, CNOT, Toffoli and SWAP on index qubits, only rewrite block indices and never touch the amplitudes. Diagonal gates such as Z, phase and CZ scale blocks in place. A superposition-creating gate on an index qubit, such as H or $R_Y(\theta)$, pairs block $B$ with block $B \oplus 2^j$, where $j$ is that qubit's index bit. If the partner block is missing, a new block is allocated; this "fill-in" is the only way the state grows.
This classification also addresses Mera's unresolved bottleneck. Mera cannot compress dense $R_Y(\theta)$ encoding gates in quantum neural networks. Here such a gate costs nothing extra in storage when its qubit is in-block, and causes predictable fill-in when it is not.
The placement policy looks ahead over the circuit. It moves qubits that are about to be put into superposition into block positions, and moves qubits that are in definite basis states out. Each move is a single transpose pass. The policy borrows the staging idea of Atlas, which uses integer linear programming to sort qubits into local and global sets to cut communication. Our objective is different: Atlas minimizes communication, while we minimize predicted $N_\pi$ plus fill-in.
When the fraction of nonzero blocks crosses a measured threshold, the simulator converts to a dense array and hands off to a dense kernel. The block size $b$ is a tunable parameter. Setting $b=0$ recovers an element-wise sparse state in the style of Mera's index formats, and a large $b$ approaches a dense simulator. This gives a clean ablation axis.
We will also measure the regime known from low-sparsity kernels. MACKO shows that metadata and padding dominate at extreme sparsity, while plain sparse formats lose to dense ones at moderate sparsity. We expect a similar two-sided crossover in block density and will report where it falls.
Baselines
The naive reference is a dense state-vector simulation in cuQuantum on the same single GPU with host-memory offload. It represents what a user gets by default, and it fixes the qubit ceiling set by device memory.
The strongest dense competitor is Atlas, which reports being 7.2x faster than cuQuantum at best and 3.2x on average, up to 20.2x faster than HyQuas, and 74x faster than QDAO on average for out-of-core 29–32 qubit circuits (Atlas). We will run its released partitioner on identical circuits and hardware. Beating it means lower time-to-solution on circuits whose support stays small, together with no more than a fixed, reported slowdown (target under 1.3x) on dense circuits after fallback.
The strongest memory competitor is BMQSim. On NWQBench it reports average memory reduction over 10x, up to 678x on cat_state, 42 qubits in 128 GB of RAM and 47 qubits with SSD fallback, at fidelity above 0.99 (BMQSim). We will run it on the same 128 GB workstation configuration and the same NWQBench circuits and qubit range (23–47). Beating it means higher throughput at equal or lower memory with fidelity exactly 1. Matching its memory ratio is not required, as long as we state the gap honestly.
A sparse-library baseline stores the state in CSR and applies gates through cuSPARSE, reproducing the setting behind Qandle's paradox. Our method must clear this baseline by a wide margin, or the format contributes nothing. Mera's element-wise formats are reproduced as the $b=0$ ablation on GPU rather than run on its CPU platform. For context only, Mera reports a 141.2x speedup on matrix–vector operations and 6.9x end-to-end on quantum neural networks on its CPU workstation.
Two further ablations isolate the key ingredient. One freezes the placement $\pi$ at the identity ordering. The other uses blocks that are not warp-aligned. Together they separate the gain from adaptive qubit placement from the gain from hardware alignment.
All methods receive the same GPU, the same host memory, the same circuits and the same gate-fusion settings where they apply, and a tuning budget of one sweep over each method's main parameters.
Why not just…?
Why not just use BMQSim-style lossy compression? This is the real threat on memory ratio, because a general compressor will also exploit long runs of zeros. Its limits are that every gate pass decompresses and recompresses, that it relies on offline gate clustering to hide this cost, and that it is lossy. Our method works on the stored blocks directly and is exact. The head-to-head experiment on NWQBench settles whether exactness and no decompression buy throughput. If BMQSim matches our speed on sparse-support circuits, the contribution reduces to exactness, and we will say so.
Why not just use a tensor network or matrix product state simulator? A state supported on $K$ basis states has Schmidt rank at most $K$ across any cut, so states with small support are never maximally entangled. Matrix product states will win easily on GHZ and cat states. Support size and entanglement are not the same thing, though. Reversible arithmetic on superposed inputs can have moderate support with high bond dimension across many cuts, and long-range gates require swap networks in a matrix product state. Following the barriers noted in Large-Scale Simulation of Quantum Computational Chemistry on a New Sunway Supercomputer, we will compare against cuQuantum's tensor network path on the same circuits and report a regime map. If tensor networks dominate every circuit where we win, the idea fails, and the experiments are designed to reveal this.
Why not just partition and offload the dense state, as Atlas and HiSVSIM do? Partitioning improves locality but moves the full $2^n$ amplitudes on every stage. HiSVSIM reports gains of up to 3.9x over Intel IQS from partitioning alone. Our method reduces the bytes moved in proportion to $N_\pi / 2^{n-b}$. Measured memory traffic per gate in the Atlas comparison shows directly whether this reduction turns into wall-clock time.
Proposed Experiments
The first experiment is a characterization study. It traces $N_\pi$ gate by gate across QASMBench (QASMBench) and NWQBench circuits under the identity placement and under the adaptive placement. It measures how much of each circuit's runtime is spent in sparse-support prefixes. No reported result on Lacuna was found for state-support statistics on these suites, so this study is itself a contribution. It also decides whether the approach has an audience.
The second experiment is a set of kernel microbenchmarks. Sweeping block density and $b$ on A100 and H100 GPUs, we measure the crossover against dense kernels, reported in bytes moved and achieved bandwidth.
The third experiment measures end-to-end performance on NWQBench (qft, qaoa, ghz_state, cat_state) and on selected large QASMBench circuits. We report time-to-solution, peak memory, the maximum number of qubits under fixed memory, and fidelity against an exact reference.
The decisive checks are threefold. On circuits whose block density stays below the crossover, the method must beat Atlas in time and cuQuantum's dense path in qubit capacity. On fully dense circuits such as qaoa, the automatic fallback must stay within the stated overhead. Adaptive placement must reduce $N_\pi$ by at least an order of magnitude over the identity ordering on circuits where block-index qubits enter superposition, because otherwise the method is ordinary sparse storage. The outcome we cannot rule out in advance is that wins appear only on circuits that tensor networks already handle cheaply, and the regime map is built to show whether that happens.
References
- State of practice: Evaluating GPU performance of state vector and tensor network methods
- Qandle: Accelerating State Vector Simulation Using Gate-Matrix Caching and Circuit Splitting
- Mera: Memory Reduction and Acceleration for Quantum Circuit Simulation via Redundancy Exploration
- BMQSim: Overcoming Memory Constraints in Quantum Circuit Simulation with a High-Fidelity Compression Framework
- High Performance Unstructured SpMM Computation Using Tensor Cores
- Fast Inference with Kronecker-Sparse Matrices
- Atlas: Hierarchical Partitioning for Quantum Circuit Simulation on GPUs
- MACKO: Sparse matrix-vector multiplication for low sparsity
- Large-Scale Simulation of Quantum Computational Chemistry on a New Sunway Supercomputer
- Efficient Hierarchical State Vector Simulation of Quantum Circuits via Acyclic Graph Partitioning
- QASMBench: A Low-Level Quantum Benchmark Suite for NISQ Evaluation and Simulation