Spin glasses are disordered magnetic systems where spins can interact with random ferromagnetic or antiferromagnetic couplings. The goal is to minimize the system's energy — finding the global minimum of a highly non-convex energy landscape (often modeled as an Ising model with random couplings).

To compare algorithms for solving spin glass problems, it's important to understand how each method tackles the problem of finding ground states in highly rugged and frustrated energy landscapes. Here's a breakdown of the comparison between:

Implementation Snippets

Let's walk through a minimal version of each algorithm, assuming a 2D Ising model where each spin $s_i \in \{-1,+1\}$.

https://gist.github.com/viadean/504198820de5c1c366685c39097b5c9f

Notes:

https://gist.github.com/viadean/ea54338a3c4961da2cabb47ade0dae7c

image.png

Here’s the Energy vs. Iteration plot comparing the three algorithms on a smaller spin glass problem:

Observations:

This clearly shows PT’s advantage in escaping local minima by using multiple temperature layers.