Random Batch Algorithms for Quantum Monte Carlo simulations

Li Xiantao, Shi Jin, Xiantao LiCommunications 2020 · DOI

Abstract

Quantum Monte Carlo (QMC) simulations are essential for determining the ground state properties of many-body quantum systems. However, the computational cost of calculating pairwise particle interactions traditionally scales quadratically with the number of particles ($O(N^2)$). This paper introduces a Random Batch Method (RBM) that reduces this complexity to linear scaling ($O(N)$). By utilizing stochastic mini-batches to estimate forces and energies, the authors demonstrate that large-scale quantum simulations involving thousands of particles become feasible on modest hardware without sacrificing physical accuracy.

Introduction

In the fields of quantum chemistry and condensed matter physics, Variational Monte Carlo (VMC) and Diffusion Monte Carlo (DMC) are considered the gold standards for calculating the ground state energy of many-body systems. Despite their accuracy, these methods encounter a significant "computational wall" as the system size increases. The primary bottleneck is the calculation of two-body interactions, such as the potential energy and the Jastrow factor, which accounts for electron correlations. For a system of $N$ particles, evaluating these interactions requires summing approximately $N^2/2$ pairs, leading to an $O(N^2)$ scaling that makes large-scale simulations prohibitively expensive.

This research proposes a novel adaptation of Random Batch Methods—techniques originally developed for machine learning—to the domain of QMC. By replacing exact pairwise sums with stochastic estimates, the authors achieve $O(N)$ efficiency, enabling the simulation of systems an order of magnitude larger than previously possible.

Methodology

The authors developed Random Batch Algorithms for both VMC and DMC frameworks, addressing the unique requirements of each.

1. VMC via Langevin Dynamics

Traditional VMC often relies on Metropolis-Hastings moves. The authors instead employ over-damped Langevin dynamics to sample the particle distribution. In this approach, the force acting on a particle is not calculated from all other $N-1$ particles. Instead, the algorithm randomly selects a small "batch" (which can be as small as a single particle) and scales its contribution to represent the total force. This stochastic force provides a noisy but unbiased estimate, sufficient for the system to reach the correct equilibrium distribution over time.

2. DMC via Energy Decomposition

DMC involves a branching process where "walkers" (system configurations) are duplicated or annihilated based on their local energy. Because the branching depends on the square of the gradient of the trial wave function, a simple two-body batch is insufficient. The authors mathematically demonstrated that a batch of at least three particles is required to obtain an unbiased estimate of the local energy, maintaining $O(N)$ efficiency throughout the branching step.

3. Handling Singular Potentials

Physical potentials, such as the Lennard-Jones potential, often contain terms that blow up at short distances (e.g., $r^{-12}$). To prevent numerical instability from the random batching of these singularities, the authors implement a kernel-splitting technique. The interaction is divided into a short-range component, calculated exactly using neighbor lists, and a long-range component, which is handled efficiently by the random batch algorithm.

Experimental Results

The algorithms were validated using a model of liquid $^4$He (Helium-4) atoms interacting with a graphite surface. The study compared standard methods against the RBM approach across different scales.

  • Computational Efficiency: For a system of 168 particles, the CPU time for 1000 VMC steps was reduced from 1503 seconds using traditional Metropolis-Hastings to just 54 seconds using the Random Batch approach.
  • Scaling: The transition from quadratic to linear complexity was empirically confirmed. In a system of 1050 particles, the Random Batch DMC was approximately 15 times faster than the direct DMC method.
  • Large-Scale Simulation: The authors successfully simulated 5016 Helium atoms on a deformed graphite lattice using only 60 CPU cores. Such a simulation would be extremely taxing, if not impossible, for standard $O(N^2)$ QMC algorithms on similar hardware.
  • Accuracy: Despite the introduction of stochastic noise, the calculated energies converged to values consistent with exact methods. The error introduced by batching was shown to decrease linearly with the time step $\Delta t$, achieving first-order weak accuracy.

Discussion and Conclusion

The Random Batch Method demonstrates that stochasticity is a powerful tool rather than a hindrance in quantum simulations. Much like Stochastic Gradient Descent in machine learning, the RBM provides a "noisy" path that nonetheless converges to the correct physical distribution.

While the current iteration is a first-order method requiring relatively small time steps, it opens several avenues for future research. The authors suggest that the bias inherent in Langevin-based samplers could be further mitigated by combining RBM with a Metropolis-Hastings accept/reject step. Furthermore, the framework is highly extensible and could likely be applied to Path-Integral Quantum Monte Carlo for studying systems at finite temperatures. By breaking the $O(N^2)$ barrier, this work provides a scalable path forward for the high-fidelity simulation of complex quantum materials.

Summary updated

BibTeX
@misc{xiantao2020random,
  author = {Li Xiantao and Shi Jin and Xiantao Li},
  title = {{Random Batch Algorithms for Quantum Monte Carlo simulations}},
  year = {2020},
  eprint = {2008.12990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.12990},
}
Figure