A collection of from-scratch, zero-dependency C implementations of core quantum field theory topics. Each module translates textbook-level QFT formalism — from canonical quantization and path integrals to gauge theory and renormalization — into runnable, self-contained C code.
| Sub-Module | Topics | Key Courses |
|---|---|---|
| mini-canonical-quantization | Klein-Gordon field, creation/annihilation operators, Fock space, Wick's theorem, Feynman propagators | MIT 8.323, Peskin & Schroeder |
| mini-conformal-bootstrap | Conformal blocks, 4-point functions, crossing symmetry, numerical bootstrap solver | MIT 8.821, Simmons-Duffin |
| mini-effective-field | EFT power counting, chiral perturbation theory, Wilson RG, operator expansion, threshold matching | MIT 8.325, Georgi |
| mini-feynman-diagrams | Feynman rules (φ⁴, QED, Yukawa, non-abelian), loop integrals, scattering amplitudes, phase space | MIT 8.323, MIT 8.324 |
| mini-gauge-theory | Gauge groups, covariant derivatives, field strength, Yang-Mills, ghosts, BRST, Higgs mechanism, lattice gauge, Wilson loops | MIT 8.324, Weinberg Vol. II |
| mini-path-integral-qft | Path integral formulation, functional integrals, numerical Monte Carlo, perturbation theory, instantons | MIT 8.323, Zee |
| mini-renormalization | Regularization, counterterms, Wilsonian RG, effective action, running couplings (φ⁴, QED, QCD) | MIT 8.324, Collins |
| mini-spontaneous-symmetry | SSB mechanism, Goldstone theorem, effective potentials, topological defects, sigma models | MIT 8.324, Weinberg Vol. II |
- Zero external dependencies — pure C (C99/C11), only
libcandlibm - Self-contained modules — each directory has its own
Makefile,include/,src/,examples/,demos/,tests/ - Theory-to-code mapping — every module mirrors standard QFT textbook chapters, with
docs/containing detailed course-alignment notes - Numerical demos — scattering cross sections, beta-function evolution, Monte Carlo path integrals, lattice gauge simulations, conformal bootstrap numerics
Each module is standalone. Navigate to a module directory and run:
cd mini-canonical-quantization
make all # build everything
make test # run testsRequires GCC and GNU Make.
mini-quantum-field-theory/
├── mini-canonical-quantization/ # Canonical quantization of scalar fields
├── mini-conformal-bootstrap/ # Conformal bootstrap & crossing symmetry
├── mini-effective-field/ # Effective field theory & operator expansion
├── mini-feynman-diagrams/ # Feynman rules, loop integrals, amplitudes
├── mini-gauge-theory/ # Gauge theories, Yang-Mills, lattice QCD
├── mini-path-integral-qft/ # Path integral formulation & numerics
├── mini-renormalization/ # Renormalization group & running couplings
└── mini-spontaneous-symmetry/ # Spontaneous symmetry breaking & Goldstone
MIT