Does light charge the quons? › Files cited on the page › the trials
charge_wave_trial1.py
"""charge_wave_trial1.py - trial 1 of papers/Lock_charge_wave_2026-11-12.md (Doug's "charging quons" model, 12 November 2026).
The charge-carrying (longitudinal) branch of the record's quon lattice: its band and group velocity, from the record's
Ewald dynamical matrix dyn(k) in lattice_dynamics.py, used unchanged (continuum rigid; d = q = m0 = 1, w_p^2 = 4 pi).
"""
import contextlib, io, os, runpy
import numpy as np
HERE = os.path.dirname(os.path.abspath(__file__))
with contextlib.redirect_stdout(io.StringIO()): # the module prints its own tests when run; not needed here
L = runpy.run_path(os.path.join(HERE, "lattice_dynamics.py"))
dyn, wp2 = L["dyn"], L["wp2"]
assert L["ETA"] == 1.9 and L["NR"] == 5 and L["NG"] == 5
KEV_P = 361.331 # hbar w_p, keV (continuum held still), as in lattice_dynamics.py
WPD_C = 1.16717 # w_p d / c, quon_model.py W10 line 1
def show(tag, text, val=""):
print(f" {tag:4s} {text:<78s} {val}")
print("Lock_charge_wave_2026-11-12, trial 1: the longitudinal (charge-carrying) branch of the quon lattice")
paths = {"G-X [100]": np.array([np.pi, 0, 0]), "G-M [110]": np.array([np.pi, np.pi, 0]), "G-R [111]": np.array([np.pi, np.pi, np.pi])}
allmax_v, band = 0.0, [1e9, -1e9]
for name, kb in paths.items():
ts = np.linspace(0, 1, 41); ks = []; lam = []; purity = []
for t in ts:
k = t * kb if t > 0 else 1e-4 * kb / np.linalg.norm(kb)
w, v = np.linalg.eigh(dyn(k))
kh = k / np.linalg.norm(k)
proj = np.abs(v.T @ kh) # |e . k_hat| for each eigenvector
i = int(np.argmax(proj))
ks.append(np.linalg.norm(k)); lam.append(w[i] / wp2); purity.append(proj[i])
ks, lam = np.array(ks), np.array(lam)
om = np.sqrt(lam) # w_L / w_p
vg = WPD_C * np.gradient(om, ks) # v_g / c (k in units of 1/d)
band[0] = min(band[0], KEV_P * om.min()); band[1] = max(band[1], KEV_P * om.max())
allmax_v = max(allmax_v, np.abs(vg).max())
print(f"\n path {name}: k from 0 to {np.linalg.norm(kb)/np.pi:.4f} pi/d, 41 points")
for j in (0, 10, 20, 30, 40):
print(f" t = {ts[j]:.2f} w_L^2/w_p^2 = {lam[j]:.6f} hbar w_L = {KEV_P*om[j]:8.3f} keV v_g/c = {vg[j]:+.5f} |e.k_hat| = {purity[j]:.6f}")
show("1", f"{name}: band of hbar w_L (keV)", f"{KEV_P*om.min():.3f} to {KEV_P*om.max():.3f}")
show("2", f"{name}: largest |v_g|/c", f"{np.abs(vg).max():.5f}")
show("3", f"{name}: least |e.k_hat| on the branch (1 = purely longitudinal)", f"{min(purity):.6f}")
print()
show("4", "overall band of the charge-carrying branch (keV)", f"{band[0]:.3f} to {band[1]:.3f}")
show("5", "overall largest group velocity |v_g|/c", f"{allmax_v:.5f}")
show("6", "magnetic field of a longitudinal wave: curl E = 0, so dB/dt = 0", "none")
show("7", "P1 (travels at c at all energies)", "FAIL" if allmax_v < 0.999 else "pass")
show("8", "P2 (B perpendicular to the Poynting vector, |B| = |E|/c)", "FAIL (B = 0)")
show("9", "P3 (two transverse polarizations)", "FAIL (one longitudinal branch)")