# Brute-forcing spin-glass problems with CUDA

**Authors:** Konrad Ja{\l}owiecki, Marek M. Rams, Bart{\l}omiej Gardas

arXiv: 1904.03621 · 2019-12-20

## TL;DR

This paper presents an exact, GPU-accelerated brute-force algorithm for computing low energy spectra of small spin-glass instances, serving as a benchmark for quantum and classical optimization methods.

## Contribution

It introduces a fast, open-source CUDA-based implementation for exact energy spectrum calculation of spin-glass models on arbitrary graphs, enabling benchmarking and comparison with other algorithms.

## Key findings

- Achieves unprecedented speed on commodity hardware.
- Can handle spin-glass instances up to N=50.
- Demonstrates the effectiveness of the approach as a benchmark tool.

## Abstract

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$.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.03621/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/1904.03621/full.md

## References

58 references — full list in the complete paper: https://tomesphere.com/paper/1904.03621/full.md

---
Source: https://tomesphere.com/paper/1904.03621