Thermalbits/ Station 03/ Experiment 3

Max-Cut on Erdős–Rényi graphs

The NP-hard Max-Cut problem on a G(50, 0.20) random graph, mapped to an antiferromagnetic Ising Hamiltonian and annealed to a bipartition. Every edge wants its two endpoints on opposite sides — the annealer’s job is to satisfy as many edges as possible at once. Below, a smaller live graph runs the same physics in your browser: flip spins yourself, or let the annealer hunt.

The live bipartition

Nodes live on their side of the cut. Click one and it crosses over — solid edges are cut, dashed edges are still uncut.

Side A · 0 nodesSide B · 0 nodes

Live readouts

Recomputed on every flip, from the graph above.

Cut fraction
–%
of edges cross the partition
Cut edges
– / –
Ising energy H
–
lower is better
Best seen
–%
this graph, this session
Temperature
—
annealer idle

Annealer controls

Simulated annealing with Metropolis single-spin flips — the same recipe as the benchmark, on a demo-size graph.

Ready. The graph starts from a random bipartition — expect a cut near 50%.

Cut fraction over the current anneal. The dashed line marks the published 70.8% — simulated benchmark result, results may vary (not customer results).

Why flipping works

Max-Cut, rewritten as physics. Each node carries a spin si = ±1 — its side of the partition.

H = Σ(i,j) ∈ E si sj
antiferromagnetic Ising Hamiltonian
  • cutOpposite spins — the edge contributes −1. The antiferromagnetic coupling is satisfied.
  • uncutSame spin — the edge contributes +1. Energy goes up, so the annealer tries to flip it away.
  • Minimising H is exactly maximising the cut: H = |E| − 2 × cut. One number, both views.
H = — · cut = — · |E| = —
  1. Flip by hand: click a node with many dashed edges — every same-side neighbour it leaves behind adds a cut.
  2. Beat the machine: get the live cut as high as you can, then press Anneal and see if it beats your best.
  3. Heat it up: raise the start temperature and the annealer wanders longer before it settles.

Published benchmark · Exp 3

Full-size run: G(50, 0.20) — 50 nodes, edges drawn with probability 0.20.

70.8% cut edges
Edges cut172 of 243
Random bipartition49.9%
Lift over random+20.9 pts
Run time7.344 s

All figures on this card: simulated benchmark result, results may vary (not customer results). The live demo above runs a smaller graph in your browser, so its numbers will differ.

Run it yourself

The full G(50, 0.20) benchmark, exactly as it appears in the thermo-lab ledger.

$uv run thrml-bench run --exp 3

Experiment 3 · Max-Cut on Erdős–Rényi graphs · published result 70.8% cut edges (172 of 243) in 7.344 s — simulated benchmark result, results may vary (not customer results).