About the Background Simulation
The background is a real-time visualization of the Sherrington-Kirkpatrick (SK) model, a foundational model of a spin glass in statistical physics.
Instead of simulating just one system, we simulate 6 identical "replicas" simultaneously. They all share the exact same random interaction network (the lines you see) and the same physical rules, but they start from different random initial states.
What is Replica Symmetry Breaking?
In a simple magnet, when things get cold, all the magnetic spins align into a single, obvious lowest-energy state. The replicas would all find the exact same state. This is called replica symmetry.
However, a spin glass is "frustrated". Frustration occurs when competing interactions make it physically impossible to satisfy all connections simultaneously. Imagine a triangle of three people: Alice wants to agree with Bob, Bob wants to agree with Charlie, but Charlie strictly wants to disagree with Alice. They can never all be happy at once!
Because of this mathematical frustration, the energy landscape becomes incredibly rugged, like a chaotic mountain range with countless different deep valleys (local minima).
When the system freezes, our 6 identical replicas can easily get trapped in completely different valleys. The fact that identical replicas in identical environments can end up in physically distinct states is known as Replica Symmetry Breaking (RSB), a concept famously solved by Nobel laureate Giorgio Parisi.
How to see it
- The Nodes (Spins): Each node is actually a cluster of 6 tiny dots, representing the spin state (Cyan = +1, Magenta = -1) of the 6 replicas. If the replicas are stuck in different valleys (RSB), they will disagree, and the node will be a mix of cyan and magenta dots.
- The Edges (Couplings): Mint green lines are satisfied bonds, pink lines are frustrated bonds. If you see a grey line, it means the replicas disagree on whether that bond is satisfied, proving they are in different states!
- The Parisi Overlap Matrix: The heatmap in the bottom corner is a 6×6 grid comparing the 6 replicas against each other. The row represents one replica, and the column represents another.
- The Diagonal: A replica compared to itself is identical, so the diagonal (top-left to bottom-right) is always a solid line of bright Cyan.
- Cyan Squares (Positive Overlap): If an off-diagonal square is Cyan, it means those two replicas fell into the exact same valley!
- Magenta Squares (Negative Overlap): If a square is Magenta, the replicas fell into "inverted" valleys (where every +1 spin is -1 and vice versa)—these are physically equivalent ground states!
- Dark Squares (Zero Overlap): If a square is dark or black, those two replicas fell into completely uncorrelated valleys. They share no macro-scale similarity.
The Three Phases & The Overlap Matrix
The HUD at the bottom of the screen displays a live Phase Diagram and a 6×6 Parisi Overlap Matrix. The matrix compares the 6 replicas against each other (Cyan = identical, Magenta = inverted, Dark = totally uncorrelated). The system transitions between three distinct phases based on your interaction:
- Spin Glass Phase (Default): The system is in a deep freeze (\(T \approx 0\)). Replicas fall into multiple different frustrated valleys. The matrix becomes a rigid checkerboard of cyan, magenta, and dark squares, proving Replica Symmetry Breaking.
- Paramagnetic Phase (Moving the Mouse): Your cursor acts as a heat wand. Moving it quickly injects intense thermal energy (capped at a maximum limit) into the system. This "melts" the spins, randomizing the replicas entirely. The off-diagonal matrix squares turn black (zero overlap, minus some finite-size statistical noise), and the dot on the phase diagram shoots straight up! When you stop moving, the system undergoes a rapid, exponential cooldown, freezing into a totally new Spin Glass configuration.
- Ferromagnetic Phase (Click and Hold): By clicking and holding your mouse (or touching the screen with two fingers on mobile), you apply a powerful positive mean-field bias (\(J_0 > 1\)) to all the interactions. The random disorder is overpowered by a desire to align, forcing all replicas into a globally uniform state. Because the pure model respects \(\mathbb{Z}_2\) symmetry, replicas spontaneously choose either the \(+1\) or \(-1\) pole, flushing the Overlap Matrix into a beautiful block of solid Cyan and Magenta (Pink)! When you release the click, the field is removed, and the system shatters back into a Spin Glass.
A Note on Stylistic Movement
In the standard SK model, spins sit stationary (or abstractly in infinite dimensions), and only their spin states (+1 or -1) flip. However, for visual intuition, we've applied a force-directed graph layout. Spins physically pull towards each other if their bonds are satisfied, and push away if frustrated. This physical movement is purely aesthetic!