Does light charge the quons? › Files cited on the page › check_m8_fable/
a2_slips_charge.py
#!/usr/bin/env python3
"""A2 (blind): slipped bands as charges. Statics on an N^3 periodic lattice, d = kappa = s0 = 1.
Static balance: S^T s = 0 => s is the vertex-gradient of a potential V on the primal vertices: s = G V.
With s = S phi + slip and div S = 0 (vertex divergence of an edge field), taking div gives Lap V = div slip.
So the charge at a vertex is e x (net notches leaving it). We check: (i) path independence of s for two
different slip lines joining the same two vertices (the line is a Dirac string); (ii) the pair energy
follows Coulomb's law at long range with the map's e^2/(4 pi eps0 R) = kappa s0^2 d/(4 pi R); (iii) the
self-energy of one charge is finite (Watson's integral); (iv) the energy to hop a charge one edge."""
import subprocess
import numpy as np
print("git HEAD:", subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip())
N = 64
def grad(V): # edge field from vertex scalar: s_a(r) = V(r + e_a) - V(r)
return np.stack([np.roll(V, -1, axis=a) - V for a in range(3)])
def div(s): # vertex scalar from edge field: sum of outgoing minus incoming
return sum(s[a] - np.roll(s[a], 1, axis=a) for a in range(3))
def solve_poisson(q): # Lap V = q, periodic, zero-mean q
k = 2 * np.pi * np.fft.fftfreq(N)
KX, KY, KZ = np.meshgrid(k, k, k, indexing="ij")
lam = -4 * (np.sin(KX / 2)**2 + np.sin(KY / 2)**2 + np.sin(KZ / 2)**2)
Q = np.fft.fftn(q); Q[0, 0, 0] = 0
with np.errstate(divide="ignore", invalid="ignore"):
Vh = np.where(lam != 0, Q / lam, 0)
return np.real(np.fft.ifftn(Vh))
def static_s(slip):
q = div(slip) # vertex charge in notches
V = solve_poisson(q)
return grad(V), q
# (i) two different slip lines from A to B (R edges apart along x; second path goes round via y)
R = 10
A = np.array([5, 5, 5]); B = A + [R, 0, 0]
slip1 = np.zeros((3, N, N, N)); slip2 = np.zeros((3, N, N, N))
for i in range(R): slip1[0, A[0] + i, A[1], A[2]] = 1 # straight line of slipped x-edges
slip2[1, A[0], A[1], A[2]] = 1 # one step up in y
for i in range(R): slip2[0, A[0] + i, A[1] + 1, A[2]] = 1
slip2[1, B[0], B[1], B[2]] = -1 # back down
s1, q1 = static_s(slip1); s2, q2 = static_s(slip2)
print(f"\n(i) charges at vertices: nonzero entries {np.transpose(np.nonzero(q1)).tolist()} values {q1[q1 != 0].tolist()} (A gets -1, B gets +1: one e each)")
print(f" static s identical for the two slip lines: max|s1-s2| = {np.abs(s1 - s2).max():.2e} (the line of slips is not in the field)")
print(f" the two slip fields differ by a curl: slip2-slip1 = S(one notch on {int(np.abs(slip2-slip1).sum())//4} face wheels) ")
print(f" wheel angles that give S phi = slip - s: exist iff S^T(slip - s) = 0: check div(slip-s) = {np.abs(div(slip1 - s1)).max():.2e} (necessary) ")
# (ii) pair energy vs separation: Coulomb check. U = (kappa/2) sum s^2 ; Coulomb interaction = -kappa s0^2 d/(4 pi R)
def pair_energy(R):
slip = np.zeros((3, N, N, N))
for i in range(R): slip[0, 5 + i, 5, 5] = 1
s, _ = static_s(slip)
return 0.5 * np.sum(s**2)
Us = {R: pair_energy(R) for R in (1, 2, 3, 4, 6, 8, 12, 16)}
print("\n(ii) pair energy U(R) (periodic box 64^3; finite-box error ~ R/N^3 is small for R<=16):")
print(" R U(R) U(R)-U(16) Coulomb diff 1/(4pi)(1/16-1/R) ratio")
for R in Us:
coul = (1 / (4 * np.pi)) * (1 / 16 - 1 / R)
diff = Us[R] - Us[16]
print(f" {R:2d} {Us[R]:.5f} {diff:+.5f} {coul:+.5f} {diff / coul if coul else float('nan'):.4f}")
# Force at long range from the differences
F_8_12 = -(Us[12] - Us[8]) / 4; print(f" mean force between R=8 and 12: {F_8_12:.5f} vs Coulomb kappa s0^2 d/(4 pi R^2) at R=9.8: {1 / (4 * np.pi * 9.8**2):.5f}")
# (iii) self-energy of an isolated charge: U_pair(R->inf) -> 2 U_self; Watson integral G(0) = 0.252731 for the simple cubic lattice
W0 = 0.2527310098
print(f"\n(iii) U(16) + 1/(4 pi 16) = {Us[16] + 1 / (4 * np.pi * 16):.5f}; prediction 2 x (kappa s0^2/2) G_L(0) = {W0:.5f} ... i.e. one charge's self-energy = kappa s0^2 G_L(0)/2 = {W0 / 2:.5f} (finite; = e^2/(4 pi eps0 d) x 4 pi G_L(0)/2 = {4 * np.pi * W0 / 2:.3f} e^2/(4 pi eps0 d))")
# (iv) hop energy: moving the charge at B one edge further along +x adds one notch to that edge
slip = slip1.copy(); s, _ = static_s(slip)
e_new = (0, B[0], B[1], B[2])
dU_instant = 1.0 * s[e_new] + 0.5 # kappa s0 s_edge + kappa s0^2/2 before the wheels respond
print(f"\n(iv) hop of the +e charge one edge outward: stretch there before the hop s_edge = {s[e_new]:+.5f} (the pair's own field, pulling it back)")
print(f" instant energy change kappa s0 s_edge + kappa s0^2/2 = {dU_instant:+.5f}; after the wheels relax, U(R+1)-U(R) = {pair_energy(R + 1) - Us[R] if R in Us else pair_energy(R+1) - pair_energy(R):+.5f}")
print(" the first term is e E_edge d (the work against the field); the rest is excess that must be radiated or stored as motion.")
print(" L = sum (I/2) phi'^2 - (kappa/2)(S phi + slip(x))^2 has no term in the velocity of x: the force on the charge from the action is")
print(" F = kappa s0 s_edge / d = e E only. A uniform spin (uniform H) is a zero mode, decoupled by linearity: no e v x B from the model.")