2026-01-10·
Path Integrals on the Lattice
Discretizing quantum field theory for numerical computation.
The Lattice Formulation
In lattice field theory, spacetime is discretized on a hypercubic lattice with spacing . The partition function becomes:
where the action is now a sum over lattice sites:
Discretized Derivatives
The lattice derivative is defined as:
Monte Carlo Integration
We sample field configurations using the Metropolis algorithm:
import numpy as np
def metropolis_step(phi, S, beta, delta=0.5):
"""Single Metropolis update sweep."""
N = phi.shape[0]
for i in range(N):
for j in range(N):
phi_old = phi[i, j]
phi_new = phi_old + np.random.uniform(-delta, delta)
dS = S(phi_new, i, j) - S(phi_old, i, j)
if dS < 0 or np.random.random() < np.exp(-beta * dS):
phi[i, j] = phi_new
return phi
Continuum Limit
Physical observables must be extrapolated to :