Tensor compression scales to 127 qubits with new parallel method

A 127-qubit simulation, using a kicked Ising circuit, has been achieved by researchers at Algorithmiq S.r.l., representing the largest reported matrix-product simulation of this circuit to date. Their work introduces portc, an open-source tool that distributes tensor compression across multiple GPUs and memory levels, achieving speed-ups of 3.8x on four NVLink-connected GH200s and 5.8x on eight PCIe-connected RTX PRO 6000 cards when compressing a 50-site stack from a bond dimension of 256,000 to 2,000. The structure of successive randomized compression enables large tensor-train contractions with “quantitatively predictable performance,” as the team demonstrates a method for distributing computations across devices and memory hierarchies.

Parallel Out-of-Core Implementation of SRC for Tensor Networks

This advance relies on a parallel, out-of-core implementation of successive randomized compression, or SRC, that allows for the compression of stacks of tensor trains without explicitly forming their full product. The method distributes contractions and orthogonalization across multiple GPUs while staging intermediate data across device memory, host memory and even disk storage.

The computational cost per site decreases as the number of GPUs increases, shifting the bottleneck from computation to communication on systems with eight GPUs. The design of portc incorporates an exact compression-error identity alongside an analytical cost model, enabling predictable performance during tensor compression and distribution across different memory hierarchies. This allows researchers to assess the trade-offs between accuracy and computational cost when compressing stacks of tensor trains.

Experiments demonstrate that single-sweep stacking can outperform pairwise compression under certain conditions, clarifying when this approach offers an advantage. The implementation supports stacks whose working set exceeds host memory, expanding the size of simulations possible with available hardware. The team’s work, detailed in Section 2 of their paper, introduces the notation and randomized range finding, formulates SRC for stacks, and counts its operations.

SRC Extension to Stacks of Tensor Trains

The portc implementation distributes tensor compression by partitioning contractions and stored environments across GPUs, enabling simulations that exceed the capacity of single devices. This is achieved through the use of a random sketch index, which provides a dimension for distribution and allows for batching operations out of core, extending beyond the limits of both GPU and host memory. The design uses the fact that this index is a free variable in every contraction, facilitating parallel processing and efficient memory staging.

Stacks of tensor trains, products of multiple tensor trains, present a challenge for compression due to the accumulation of intermediate data. Portc addresses this by avoiding the formation of the full product tensor, instead storing only a limited number of prefix environments. These environments, at large bond dimensions, can quickly overwhelm available memory, a problem mitigated by the distribution strategy.

Distributed Sweep with Shifted Cholesky QR

This approach, detailed within the portc implementation, distributes the workload across multiple GPUs and is critical to scaling matrix-product simulations to larger systems. The process involves receiving cores of each site, computing contractions over batches of data, and employing a Cholesky QR decomposition to manage the resulting matrices. When Cholesky QR factorization is declined, a Householder QR is used, with the resulting data copied to the host for further processing.

This staged approach, combined with all-to-all data gathering, minimizes idle time and maximizes throughput. However, the implementation’s design aims to minimize this serial bottleneck, allowing for near-linear scaling in ideal conditions.

Analytical Cost Model Predicts Multi-GPU Performance

This scaling is not merely a result of parallelization, but is predicted by an analytical cost model integrated within the portc framework. The model’s accuracy was validated by predicting four-GPU run times on the JUPITER system within 2% of measured values, using only single-GPU rates and link bandwidths as input.

This predictive capability extends to out-of-core stacks, where the working set exceeds host memory capacity, and is essential for managing the memory demands of increasingly complex simulations. The experiments also clarify when stacked compression, compressing multiple tensor trains simultaneously, improves the accuracy-cost trade-off compared to pairwise compression, a critical consideration for balancing computational efficiency and simulation fidelity.

NVLink and PCIe Benchmarks with GH200 and RTX PRO

Performance distinctions between interconnect technologies emerged during testing of the portc framework on different hardware platforms. The JUPITER nodes each contained four GH200s, with each chip pairing a 72-core Grace CPU with a Hopper GPU, interconnected by a full-mesh NVLink configuration capable of sustaining 130-133 GB/s per receiving GPU. The eight-GPU PCIe node used RTX PRO 6000 Blackwell Server Edition GPUs, each with 95 GiB of memory, connected via PCIe 5.0 × 16.

127-Qubit Kicked Ising Circuit Simulation at Bond Dimension 8192

The system’s ability to handle a working set exceeding host memory was also tested, pushing the boundaries of available resources and demonstrating the efficacy of out-of-core execution. Further analysis focused on fusing Trotter steps in mixed-field Ising chains, revealing that combining two or four steps is 1.5 to 2.7 times faster than applying them individually, with a minimal increase in infidelity, at most 8%.

The researchers clarify that this speed-up arises not from reducing the overall contraction work, but from minimizing the number of QR factorizations and state transfers required during the simulation. “Fusing two or four steps is 1.5–2.7 times faster than applying one step at a time,” the study reports, highlighting the efficiency gains achieved through this stacking technique.

Structured Random Projections Enable Device Distribution

This distribution is supported by an analytical cost model and enables predictable performance during the compression process. The approach avoids forming the complete product tensor, instead storing prefix environments across the chain, a strategy that can exceed the capacity of single GPUs and host memory at large bond dimensions.

The random sketch index provides a natural dimension for distributing calculations across GPUs, and the output bond index derived from it is a free index in every contraction. The system employs a row-distributed shifted Cholesky QR factorization, exchanging only Gram matrices when the sketch is sufficiently well-conditioned, with a Householder QR serving as a fallback.

Environment contractions during the initial pass require no communication between devices, as the stored environments are partitioned across them, and the random sketches remain independent of the number of GPUs used. A planner within portc sizes each contraction to fit the device budget by batching along the free index and assigns each environment to device memory, host memory, or disk, overlapping data transfers with computation.

This strategy bounds the working set on each device, ensuring that the result is only affected by standard floating-point rounding errors. Unlike site-partitioned fitting algorithms, this distribution does not require sub-chain updates or a final merge, though it does replicate the projected environment.

Accuracy-Cost Trade-offs of Stacked Versus Pairwise Compression

Experiments with the portc implementation demonstrate that single-sweep stacked compression can offer substantial advantages over pairwise compression, though the gains are not universal. At smaller bond dimensions, the computational workload is insufficient to fully use the GPU, resulting in the CPU performing faster. Portc requires less host memory than the quimb library. However, at a bond dimension of 1000, the GPU accelerates the process to be 182-233 times faster than quimb running on 32 CPU cores.

The performance difference between stacked and pairwise compression is also influenced by the complexity of the tensor network being compressed. Analysis reveals that both methods operate 2-15 times above the theoretical lower bound for compression efficiency, indicating room for further optimization. Thin Trotter layers, with a bond dimension of at most 4, take 0.6-1.4 times longer to compress using the single-sweep method compared to pairwise compression up to a depth of 5.

Conversely, random matrix product operators with bond dimensions of 8 and 16 at a depth of 4 are 30 and 136 times slower, respectively. Further optimization through fusion, combining multiple compression steps, yields additional speedups. The Householder QR decomposition, a key component of the compression process, runs at 0.3-2.4 TFLOP/s and accounts for 36-45% of the total time required for pairwise compression. Fusing two compression steps saves 16 seconds at a bond dimension of 512 compared to applying them individually.

👉 More information
🗞 portc: Parallel Out-of-Core Randomized Tensor-Network Compression
✍️ Ramón L. Panadés-Barrueta, Davide Materia, Matteo A. C. Rossi and Roberto Di Remigio Eikås (Algorithmiq S.r.l., Via della Chiusa 15, Milan, Italy)
🧠 ArXiv: http://arxiv.org/abs/2611.37370v1

Stay current

See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.

Avatar of Dr. Donovan

Latest Posts by Dr. Donovan: