⚛️ Interactive Quantum Ising Model

2D Ising model on a 4×4 torus (periodic boundaries) • Compare classical Metropolis vs quantum mean-field evolution

🧲 Classical Model

Closed (+1)
Open (−1)

⚛️ Quantum Model

Superposition
Probability
Countries influence each other's policies
Bias toward closed (h>0) or open (h<0) trade
Quantum policy flexibility (higher = more tunneling)
Thermal fluctuations (higher = more random)

System Energy

Classical: 0
Quantum: 0
Coherence: Low

⚛️ Quantum Effects

System in superposition state

📚 How to Use:

1. Each cell = one country node; 4 neighbors (up/down/left/right wrap around — no boundary effects)
2. High J → ferromagnetic ordering; near J/kT ≈ 0.44 watch the phase transition
3. Measure collapses quantum superpositions to definite states
4. Δ drives tunneling — competes with J ordering
5. h biases all spins toward closed (h>0) or open (h<0) trade