← All 16 Stations Station 4 · Thermo Lab · Exp 4 Live sampler running in your browser

Four states walk onto a lattice. One takes over.

A four-state categorical Potts model on a 24 × 24 lattice. Every site holds one of four categories. Neighbours that match lower the energy — so as the inverse temperature β rises past the theoretical transition, matching categorical domains nucleate and lock. Drag β across βc below and watch it happen, live.

state 0 state 1 state 2 state 3 q = 4 · 576 sites · periodic boundaries

The lattice — 24 × 24, live

Metropolis updates, one sweep = 576 flip attempts. Tap any cell to paint it with the brush state.

DISORDERED · β < βc
sweep 0 acceptance — energy / site — ⟨matches⟩ —
Brush

Inverse temperature β

Synthetic 24×24 Potts · q=4

One knob drives the whole phase diagram. Cross the gold marker and the lattice changes its mind.

0.70 β · T = 1.43
below βc by 0.399βc = ln(3) ≈ 1.0986
βc = ln(3)
0.20 · hot, noisy1.80 · cold, locked
Disordered — domains flicker & dissolveOrdered — domains lock
4 sweeps/frame

Domains, measured live

Connected clusters of equal state, counted by flood fill on the current frame.

Largest domain
— sites
— of 576
Domain count
—
separate clusters on the lattice
Mean domain size
— sites
576 ÷ domain count
Order parameter m
—
0 = fully mixed · 1 = single state
Sokal τint
1.00
Window cutoff W ≥ 5·τint
Live ESS
—
Effective trace samples

State populations

Share of the 576 sites in each category, right now. In the disordered phase all four hover near 25%.

No leader yet — the lattice is mixed.

Largest domain over time

Watch the trace jump as β crosses βc — that step is the transition.

largest domain (sites) β × 200 (scaled)

Published metric — the transition

βc = ln(3) ≈ 1.0986

The exact theoretical critical point for the q = 4 Potts model. The benchmark reports the theoretical transition confirmed at this value — and the gold marker on the slider sits exactly here, so you can park the live lattice on it.

simulated benchmark result, results may vary (not customer results)

Published benchmark time

2.956 s

Full Exp 4 benchmark run time for the 24 × 24, q = 4 lattice, as recorded in the thermo-lab ledger. The in-browser sampler above is a live illustration of the same model, not that benchmark.

simulated benchmark result, results may vary (not customer results)

The model

H = − Σ⟨ij⟩ δ(si, sj) · s ∈ {0,1,2,3}
  • Matching pays. Each neighbouring pair in the same state contributes −1 to the energy; mismatches contribute 0.
  • β weighs energy against entropy. A flip that raises energy by ΔE is accepted with probability e−βΔE.
  • q = 4 is special. In 2D the transition sits exactly at βc = ln(1 + √q) = ln(3).

Run the real benchmark

The browser demo is the same physics at toy scale. The ledger entry — Exp 4, 24 × 24, q = 4, transition confirmed in 2.956 s — reproduces with one command:

$uv run thrml-bench run --exp 4

All published figures on this page (βc ≈ 1.0986, 2.956 s): simulated benchmark result, results may vary (not customer results). Live readouts are computed in your browser from the simulation above.