Skip to main content
QUICK REVIEW

[Paper Review] Simulation of quantum physics with Tensor Processing Units: brute-force computation of ground states and time evolution

Markus Hauru, Alan Morningstar|arXiv (Cornell University)|Nov 19, 2021
Parallel Computing and Optimization TechniquesComputer Science4 citations
TL;DR

This paper demonstrates the use of Google's TPU v3 pods—originally designed for machine learning—for brute-force simulations of quantum many-body systems, achieving ground state and time evolution computations for up to 38 qubits. By leveraging TPU-native matrix multiplication units (MXUs), high-bandwidth memory (HBM), and fast inter-core communication, the method efficiently computes Hamiltonian actions on wavefunctions, enabling exact simulations beyond the reach of QMC and tensor network methods.

ABSTRACT

Tensor Processing Units (TPUs) were developed by Google exclusively to support large-scale machine learning tasks. TPUs can, however, also be used to accelerate and scale up other computationally demanding tasks. In this paper we repurpose TPUs for the challenging problem of simulating quantum spin systems. Consider a lattice model made of $N$ spin-$\\frac{1}{2}$ quantum spins, or qubits, with a Hamiltonian $H = \\sum_i h_i$ that is a sum of local terms $h_i$ and a wavefunction $|\\Psi\ angle$ consisting of $2^N$ complex amplitudes. We demonstrate the usage of TPUs for both (i) computing the ground state $|\\Psi_{gs}\ angle$ of the Hamiltonian $H$, and (ii) simulating the time evolution $|\\Psi(t)\ angle=e^{-itH}|\\Psi(0)\ angle$ generated by this Hamiltonian starting from some initial state $|\\Psi(0)\ angle$. The bottleneck of the above tasks is computing the product $H |\\Psi\ angle$, which can be implemented with remarkable efficiency utilising the native capabilities of TPUs. With a TPU v3 pod, with 2048 cores, we simulate wavefunctions $|\\Psi\ angle$ of up to $N=38$ qubits. The dedicated matrix multiplication units (MXUs), the high bandwidth memory (HBM) on each core, and the fast inter-core interconnects (ICIs) together provide performance far beyond the capabilities of general purpose processors.

Motivation & Objective

  • To investigate whether TPUs, designed for machine learning, can accelerate exact simulations of quantum many-body systems.
  • To enable brute-force computation of ground states and time evolution in quantum spin systems, which are otherwise intractable due to exponential resource scaling.
  • To overcome limitations of existing methods like Quantum Monte Carlo (sign problem) and tensor networks (entanglement growth) by using exact, full-wavefunction simulations.
  • To demonstrate the feasibility of using TPU v3 pods with 2048 cores and 32 TB HBM for large-scale quantum simulations.
  • To provide a high-performance, error-free benchmark for quantum simulation methods using a specialized hardware platform.

Proposed method

  • Repurpose TPU v3 pods—featuring 2048 cores, 16 GB HBM per core, and dedicated MXUs—for exact quantum simulations of spin-1/2 systems.
  • Distribute the 2^N-dimensional quantum wavefunction across TPU cores' high-bandwidth memory to enable large-scale state storage.
  • Use the TPU's MXUs to efficiently compute the Hamiltonian action H|Ψ⟩ via high-throughput half-precision matrix multiplications.
  • Employ fast inter-core interconnects (ICIs) to dynamically redistribute the wavefunction across cores during iterative updates.
  • Implement the Lanczos algorithm in a memory-efficient two-phase approach: first compute tridiagonal matrix T_j without storing Krylov vectors, then reconstruct the ground state from Ritz vectors.
  • Use the wavefunction update H|Ψ⟩ as a primitive for computing ground states via Lanczos and time evolution via exponential operator splitting.

Experimental results

Research questions

  • RQ1Can TPU v3 pods be effectively repurposed for exact quantum many-body simulations beyond machine learning workloads?
  • RQ2What is the maximum system size (in terms of qubits) that can be simulated using brute-force TPU-based methods?
  • RQ3How does TPU performance compare to general-purpose HPC for Hamiltonian action and wavefunction evolution in quantum systems?
  • RQ4Can the Lanczos method be adapted to run efficiently on TPU hardware with limited memory per core?
  • RQ5To what extent can TPU-based simulations serve as a benchmark for approximate methods like QMC and tensor networks?

Key findings

  • The TPU v3 pod with 2048 cores and 32 TB of HBM successfully simulates quantum systems of up to 38 qubits, representing a significant scale for brute-force methods.
  • The method achieves high performance by leveraging native MXUs for half-precision matrix multiplication and fast inter-core communication for wavefunction redistribution.
  • The Lanczos algorithm was successfully adapted to TPU constraints by splitting the computation into two phases, reducing memory usage while maintaining accuracy.
  • The simulation of ground states and time evolution was demonstrated on 1D spin chain Hamiltonians, with results validated through correlation functions and entanglement measures.
  • The approach provides a reliable, error-free benchmark for approximate quantum simulation methods, particularly in regimes where QMC and tensor networks fail.
  • The study establishes TPU pods as a viable, high-performance alternative for exact quantum simulations, especially in cases requiring full wavefunction access.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.