[Paper Review] Brute-forcing spin-glass problems with CUDA
This paper presents a CUDA Fortran-based, open-source brute-force solver for exact ground-state and low-energy spectrum computation in Ising spin-glass models on arbitrary graphs up to N=50. By leveraging massive GPU parallelism, it achieves unprecedented speed—processing 10^9 configurations in ~5 seconds on a Titan V GPU—enabling exact benchmarking for heuristic and quantum annealing algorithms.
We demonstrate how to compute the low energy spectrum for small ($N\le 50$), but otherwise arbitrary, spin-glass instances using modern Graphics Processing Units or similar heterogeneous architecture. Our algorithm performs an exhaustive (i.e., brute-force) search of all possible configurations to select $S\ll 2^N$ lowest ones together with their corresponding energies. We mainly focus on the Ising model defined on an arbitrary graph. An open-source implementation based on CUDA Fortran and a suitable Python wrapper are provided. As opposed to heuristic approaches, ours is exact and thus can serve as a references point to benchmark other algorithms and hardware, including quantum and digital annealers. Our implementation offers unprecedented speed and efficiency already visible on commodity hardware. At the same time, it can be easily launched on professional, high-end graphics cards virtually at no extra effort. As a practical application, we employ it to demonstrate that the recent Matrix Product State based algorithm-despite its one-dimensional nature-can still accurately approximate the low energy spectrum of fully connected graphs of size $N$ approaching $50$.
Motivation & Objective
- To develop a high-performance, exact solver for low-energy spectra of Ising spin-glasses on arbitrary graphs.
- To enable efficient, portable, and reproducible benchmarking of heuristic and quantum annealing algorithms.
- To validate the effectiveness of one-dimensional Matrix Product State (MPS) ansatz for fully connected graphs up to N=50.
- To provide a freely available, GPU-accelerated implementation with a user-friendly Python wrapper.
Proposed method
- Uses CUDA Fortran to perform exhaustive search over all 2^N spin configurations on GPU.
- Implements parallel reduction and memory coalescing to maximize GPU occupancy and throughput.
- Selects S ≪ 2^N lowest-energy configurations via sorting and partial reduction on GPU.
- Employs a Python wrapper for easy integration and access to both CPU and GPU back-ends.
- Applies the algorithm to compare exact spectra with those obtained via Matrix Product State (MPS) and Entropic Population Annealing (EPA) methods.
- Uses bond dimension D=128 in MPS to approximate low-energy states, enabling compression of 2^N-dimensional Hilbert space.
Experimental results
Research questions
- RQ1Can a brute-force GPU-based solver achieve sub-second performance for Ising spin-glass problems of size N≤50?
- RQ2To what extent can a one-dimensional MPS ansatz accurately capture the low-energy spectrum of fully connected spin-glass graphs?
- RQ3How does the performance of the CUDA-based solver compare to single-core CPU execution for the same problem instance?
- RQ4Can the exact solution serve as a reliable benchmark for evaluating heuristic and quantum annealing algorithms?
- RQ5What level of bond dimension D is required for MPS to faithfully reproduce the ground state and low-lying spectrum of fully connected graphs?
Key findings
- The GPU-accelerated solver computes the low-energy spectrum (S=10^3 states) for N=50 in approximately 5 seconds on a Titan V GPU.
- A single CPU core requires about 25 minutes to complete the same task, demonstrating a 300x speedup.
- The MPS ansatz with bond dimension D=128 successfully captures all ground states across 100 random instances of size N=50.
- The method achieves significant compression, as the exact MPS decomposition would require D=2^25 ≈ 33.5 million, while D=128 suffices for accurate approximation.
- The algorithm's performance scales efficiently, with minimal porting effort required to run on high-end GPUs.
- The open-source implementation with Python wrapper enables broad community access and reproducibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.