Goal
Implement basic U(1) diagnostics so we can demonstrate deconfinement (perimeter law) and the 2-polarization photon dispersion. This corresponds to the Stage 1→2 items in ROADMAP.md.
What to build
Acceptance criteria
Dev notes
- Keep it Ising/±1-friendly at first; treat
exp(iθ_e) with θ_e ∈ {0, π} as the minimal probe.
- For dispersion: build a small fluctuating transverse field in Fourier space and inverse-FFT; measure ω(k) via time series (like
sim_spin2.py).
- Use
matplotlib with Agg backend (CI-friendly). Reuse the style from existing plots.
Docs & CI
Suggested labels: enhancement, research
Milestone: v0.2.0
Goal
Implement basic U(1) diagnostics so we can demonstrate deconfinement (perimeter law) and the 2-polarization photon dispersion. This corresponds to the Stage 1→2 items in ROADMAP.md.
What to build
wilson_loop_expectation(config, rect, plane) -> float-log ⟨W(C)⟩vs perimeter and vs area of C; target = perimeter law in the deconfined phase.src/wilson_loops.pypython3 src/wilson_loops.py --L 12 --nsamples 2000 --plotpython3 src/wilson_loops.py --scan plane=xy --rects 1x1,1x2,2x2,3x2figs/:wilson_perimeter_vs_logW.png,wilson_area_vs_logW.png,photon_dispersion.png.Acceptance criteria
--nsamplesin the README guidance.Dev notes
exp(iθ_e)with θ_e ∈ {0, π} as the minimal probe.sim_spin2.py).matplotlibwithAggbackend (CI-friendly). Reuse the style from existing plots.Docs & CI
.github/workflows/ci.yml:python src/wilson_loops.py --L 8 --nsamples 500 --plot(lightweight settings)Suggested labels:
enhancement,researchMilestone:
v0.2.0