algorithms simulation

Realified tensor networks: quantum circuit simulation on real-valued matrix accelerators

Curator's Take

AI Commentary

This article shows how to translate any complex‑valued tensor network into an equivalent real‑valued one, letting modern AI accelerators that only expose real GEMM kernels be used for high‑fidelity quantum circuit simulation without costly software emulation. By proving a tight overhead bound of at most three‑fold in real multiplications and demonstrating near‑identical contraction orders on dozens of benchmark circuits, the work bridges a long‑standing hardware–algorithm mismatch that has limited the use of TPUs, NPUs and similar devices for quantum workloads. The result opens a practical path to faster VQE, QAOA and Clifford+$T$ simulations on existing cloud‑scale AI chips, albeit with modest memory growth as intermediate tensors can double in size.

— Mark Eatherly

Summary

Tensor-network contraction simulates quantum circuits, but modern matrix accelerators (NPUs, TPUs) expose only real GEMM pipelines, so the complex networks of quantum simulation must be reconstructed in software. We resolve the mismatch by a realification rewrite that maps any complex tensor network to a real one. At each merge of two complex tensors, a rank-3 structure tensor realizes Gauss's three-multiplication (3M) formula; contractions with one or no complex operand need only two or one real products. We prove a tight cost law: overhead $1 + 2m + r$ in real multiplications, where $m$ and $r$ are the volume fractions of two- and one-complex-operand contractions, never exceeding $3\times$ relative to real contraction, with every intermediate at most doubled in size. On 67 circuits (random, Clifford+$T$, QAOA, VQE), the law holds across the real-to-complex range and complex-gate placement, not count, governs cost. Contraction orders transfer from the complex network with a relative arithmetic-cost gap below $5\times 10^{-4}$ on 66 of 67 circuits; the exception closes under a few steps of low-temperature simulated annealing. On an Ascend 910 NPU the rewrite beat both the four-real-GEMM baseline and a per-GEMM Gauss lowering on all twelve random circuits and on 52 of 55 structured cells (three cells slower by at most 12\%); the four-GEMM baseline was slower by a median $1.7\times$ (random) and $1.4\times$ (structured). Realification makes complex tensor-network contraction native to real-only matrix engines.