arXiv:2610.02745physics.comp-phOct 2026

Manuscript Offprint

arXiv:2610.02745

AI-Assisted GPU optimization of the Stochastic Variational Method for Few-Body Boson System

Noritaka Shimizu, Shigeyoshi Aoyama, Yusuke Tsunoda, Akira Nukada

Noritaka Shimizu*, Shigeyoshi Aoyama†, Yusuke Tsunoda*, Akira Nukada*

*Center for Computational Sciences, University of Tsukuba, Tsukuba, Japan

{shimizu, ytsunoda}@nucl.ph.tsukuba.ac.jp, nukada@cs.tsukuba.ac.jp

†Computing Research Center, High Energy Accelerator Research Organization (KEK), Tsukuba, Japan

shigeyoshi.aoyama@kek.jp

Abstract—The stochastic variational method (SVM) is one of the most powerful methods to solve quantum few-body systems precisely in various fields, such as nuclear and atomic physics. To the best of our knowledge, no SVM code optimized for GPUs has been reported. We developed a parallel SVM code for few-body clusters of 4{}^{4}He atoms and optimized it for two GPU architectures, NVIDIA GH200 and AMD Instinct MI300A, with the entire code written by an AI coding agent. On the algorithmic side, we introduce the secular-equation method with the Gu–Eisenstat prescription for solving the generalized eigenvalue problem within the SVM framework. The main part of the code tuning is to batch the many small matrices so that the GPUs are used efficiently, together with an array layout in memory optimized for coalesced addressing. For the five-body system with 4800 SVM basis states, the tuned SVM code runs 16.2 (14.7) times faster on the NVIDIA GH200 (AMD MI300A) than the same tuned code on the Intel Xeon Max CPU system, and 168 (153) times faster than the first working CPU implementation. The achieved performance brings 6-body and larger cluster systems within reach.

Index Terms—Quantum many-body problem, stochastic variational method, GPU acceleration

I. Introduction

1

Quantum few-body problems, namely calculating ground-state and low-lying excited states of atomic, nuclear, and exotic clusters, are fundamental in computational physics. The Stochastic Variational Method (SVM) with a correlated Gaussian basis [1], [2] is one of the most successful methods for obtaining high-precision solutions, particularly for problems with strong correlations, such as halo nuclei or weakly bound atomic clusters like helium dimers and trimers. In the present work, we adopt the SVM to evaluate a few-body system consisting of 4He{}^{4}He atoms.

The helium-4 cluster system has attracted much interest in connection with the Efimov physics. Much effort has been devoted to elucidating this physics with the Gaussian expansion method [3], density functional theories, and other approaches [4]. Precise quantum many-body calculations beyond the five-body system remain difficult because they have to treat the strong short-range repulsion and are limited by available computational resources.

In the SVM, the wave function is written as a linear combination of correlated Gaussian basis states, which are selected stochastically from many candidates so that the variational energy is systematically lowered as the basis space is enlarged. In the original SVM the selection is performed sequentially: candidates are generated and their energies evaluated one by one, and a candidate is adopted if a certain energy gain is achieved. Such a sequential selection, however, hampers efficient parallel computation, and “Parallel SVM” was proposed as a parallel-computing-based extension of the SVM [5]. In this method a fixed number of candidate basis states are evaluated in parallel, which exploits the performance of modern massively parallel computers efficiently, and the best one is chosen among these candidates incrementally. In the present work, we follow this strategy which is expected to be beneficial also for GPU computing.

Most of the latest supercomputers are equipped with Graphics Processing Units (GPUs), which accelerate scientific computations by an order of magnitude over CPU systems. Although the SVM algorithm is well suited to parallel computation, GPU programming remains a demanding task for physicists. The recent growth of AI coding agents drastically reduces this burden: performance tuning is particularly well suited to them, because the correctness of every code modification can be verified automatically against reference results and the target is clearly defined, namely the measured wall time.

In the present work, we develop a highly tuned SVM code employing AI-coding and discuss its performance on GPU machines. This paper is organized as follows: the present Hamiltonian and the framework of the SVM are described in Sect. II, Sect. III is devoted to the algorithm and code improvements, and the energy convergence and the code performance are discussed in Sect. IV. Sect. V summarizes this work.