A 2D XY model quenched to T = 0.1: vortex–antivortex pairs, where every color meets, annihilate until one domain remains (script).
A Python library for simulating Ising and XY spin systems with modern Monte Carlo methods.
The core simulation loop is written in Rust (via PyO3) for performance, with a thin Python wrapper for ease of use.
Currently focused on spin glass simulation, where the combination of parallel tempering, replica cluster moves, and overlap statistics is of particular interest.
Reproduces published results
3D ±J spin glass. The spin-glass correlation lengths ξ/L of L = 4 to 12
(3840 disorder samples each) cross at T = 1.204(17), 1.178(19) and 1.146(18) for
(L, 2L) = (4, 8), (5, 10), (6, 12). With the Janus correction exponent the crossings
extrapolate to T_c = 1.085(42), against Janus's 1.1019(29) (Baity-Jesi et al. 2013);
ξ/L at the crossings rises from 0.56 toward their 0.652 as L grows
(validation/spin_glass_3d/, about 5 hours on 96 CPU cores).
2D XY at the BKT point. At β = 1.1199 the helicity modulus, ξ/L and χ for
L = 16 and 32 agree with Hasenbusch (2005), Table 1, within 1.9 combined standard
errors (validation/xy_finite_size.py).
Ising ferromagnets. Binder cumulants of square and triangular lattices (exact
T_c) and simple-cubic, BCC and FCC lattices cross at the known T_c on every CI run
(tests/binder_crossings.py).
Scripts and references for each result are listed in validation/.
Features
Ising ferromagnets and spin glasses on periodic Bravais lattices (hypercubic, triangular, or any custom neighbor offsets)
XY vectors with signed couplings, site/bond dilution, embedded SW/Wolff and optional overrelaxation