- Home
- Library
- Computational Quantum Field Theory
- From a Lagrangian to Executable Amplitudes
- Dirac and Color Algebra
Dirac and Color Algebra
A scattering amplitude can contain two quite different kinds of matrix multiplication: gamma matrices act on spin, while gauge generators act on color. A computer may move a color matrix past a gamma matrix because they act on different tensor factors. It may not arbitrarily reorder either chain. The practical question is how to reduce these expressions while preserving the information needed for spin averages, interference, and dimensional regularization.
We will calculate a massive fermion scattering numerator in three ways, then reduce the color factor for the corresponding exchange between distinct quark flavors. The calculation uses the mostly-minus metric and spinor normalization of the conventions. Familiarity with tensor and index algebra and fermion signs is useful; no particular computer-algebra package is required.
An ordered algebra, not a bag of symbols
In four spacetime dimensions,
The slash is . The anticommutator allows an adjacent exchange only with its compensating metric term:
For example, . Sorting its symbols as though they commuted would instead give . A useful internal representation therefore stores a gamma chain as an ordered tuple, alongside commuting scalar coefficients and separately typed Lorentz and color indices. Dummy-index renaming may change labels; it must preserve their contraction pattern and the order of the matrices.
Complex conjugation also has structure. Define the Dirac adjoint of a matrix by . Then
The reversed order follows from the ordinary Hermitian adjoint. It is essential in interference terms involving several vertices. Cyclicity permits rotation of a closed trace, not arbitrary permutation of an open fermion line.
Traces as a terminating recursion
Without a insertion, an odd trace vanishes in four dimensions. For an even chain, repeatedly move its first gamma matrix to the right using (2), and use cyclicity on the last term. The resulting recursion for slashed vectors is
The hat means omission. Each term has two fewer matrices, so the recursion terminates. Its first nontrivial outputs are
The Lorentz product here is bilinear, including for complex vectors. Complex conjugation belongs to the conjugated amplitude; replacing every dot product by a Hermitian inner product changes the algebra.
A compact implementation mirrors the derivation:
def trace_slashes(v):
if len(v) % 2:
return 0
if not v:
return 4
return sum((-1)**(j+1) * dot(v[0], v[j])
* trace_slashes(v[1:j] + v[j+1:])
for j in range(1, len(v)))
This direct recursion is transparent for short chains. Its number of terms grows rapidly; caching repeated subchains and reducing contracted indices before full expansion can matter in larger calculations. The implementation in the companion is deliberately small, so its output can be compared with direct matrix multiplication. SymPy offers separate gamma-trace and contracted-chain routines, but its predefined GammaMatrix and kahane_simplify are explicitly four-dimensional. A package name does not remove that assumption. SymPy 1.14 documentation, “Gamma matrices,” gamma_trace and kahane_simplify.
Four-dimensional chirality and regulated contractions
For the four-dimensional algebra used above,
The relations and imply , , , and . Thus a chiral projector moves through a gamma matrix by changing chirality, not by commuting unchanged. With , our orientation gives
This sign can be checked directly at before simplifying an axial amplitude.
A loop calculation in uses a different algebraic setting. For chains without , one may formally continue the Clifford relation with and declare . The same anticommutation manipulations then give
For the first identity, anticommute the leftmost gamma once and use . For the second, anticommute through the first internal gamma and use the first identity on the remaining three-matrix contraction. No finite matrix representation at noninteger dimension has been assumed.
The term proportional to is evanescent, but multiplying it by a ultraviolet pole leaves a finite contribution. Setting before the pole is combined with its numerator can therefore change the renormalized answer. A four-dimensional matrix calculation is a useful external-state or finite-algebra check, not a substitute for the regulated numerator.
There is a further choice when axial currents occur. The four-dimensional definition of , its anticommutation rules, and cyclic traces cannot simply be carried over without a prescription. Larin's discussion explicitly distinguishes the four-dimensional epsilon tensor from regulated gamma indices and explains the loss of naive anticommutation in the prescription he uses. We do not implement a dimensional algorithm here. Larin, §1, Eqs. (2)–(3), preprint p. 2 (PDF). See also dimensional regularization for the role of the regulator in a complete amplitude.
A spin average with an independent spin-state calculation
Consider distinguishable fermions , with masses and charges . All four physical momenta are future directed. Define
With , a fermion vertex is . Combining two such vertices with the Feynman-gauge photon propagator gives
There is no identical-particle exchange graph for different species. The unpolarized result sums both outgoing spins and averages the four incoming spin states. The completeness relations are
They follow by summing an orthonormal two-component spin basis in the plane-wave solutions; the normalization is . Tong, Quantum Field Theory, §4.7.3.
Using (3) and (11), define the spin numerator by
The odd traces vanish. The first trace becomes
with the analogous expression for the other line. Contracting the two tensors yields
For , the required substitutions include , , and . Hence
The massless limit is . The numerator has mass dimension four, as needed to cancel the denominator. These are useful structural checks, but neither alone verifies the spin average.
For an independent calculation, choose the Dirac representation and construct the two positive-energy spinors explicitly:
Evaluating (10) for all sixteen incoming/outgoing spin assignments and averaging its absolute square gives the same as (12) and (15). At , , center-of-mass momentum , and scattering cosine , the retained value is in the chosen mass units. The companion repeats the comparison at two massive angles and a massless point, both in the center-of-mass frame and after a boost with velocity . The largest scaled discrepancy between explicit spin sums and matrix traces is below . These finite tests check the implementation; the algebraic derivation establishes (15) for general on-shell kinematics.
Color completeness and a scattering factor
Let be the Hermitian generators of the defining representation of :
Spin and color indices live in different vector spaces. A vertex contains ; an ordered sequence of generators remains ordered even after its spin trace has been simplified.
The identity matrix together with the generators is a complete basis of complex matrices. For any ,
Equating its matrix elements for arbitrary gives the fundamental Fierz identity,
The subtraction removes the color-singlet identity matrix from the full matrix basis. This completeness derivation and normalization are given in Haber, §2, Eqs. (3)–(12), pp. 2–3 (PDF). In particular,
One can obtain by contracting (19), or by taking the trace of the Casimir relation. It is not interchangeable with the adjoint Casimir or the trace normalization .
For one-gluon exchange between distinct quark flavors, let label incoming colors and outgoing colors. The color tensor is
Averaging over the incoming colors and summing the final colors gives
Thus the color- and spin-averaged distinct-flavor exchange result is (15) multiplied by and the factor (22). For , that factor is ; including the factor two in (15) gives the familiar massless coefficient . Different color flows must be contracted before discarding their interference, as developed in color decomposition.
Explicit generalized Gell-Mann matrices provide a separate finite- check. The companion constructs off-diagonal symmetric and antisymmetric matrices with entries , and normalized traceless diagonal matrices. It verifies every component of (19) for and sums (21) directly:
| Exact color average | Omitting the singlet subtraction | |
|---|---|---|
| 2 | 0.187500 | 0.250000 |
| 3 | 0.222222 | 0.250000 |
| 4 | 0.234375 | 0.250000 |
The final column is a deliberate wrong calculation, retaining only in (21). It overestimates the average by . Agreement only at leading large would not establish the exact color factor.
Reproducible reduction and its limits
The companion directory examples/computational-qft/symbolic-computation/ contains dirac_color.py and dirac_color_checks.py; running the latter with --write regenerates dirac-color-results.json. It retains the spin-state comparisons, ordered slash traces, chiral projector and epsilon-sign checks, color sums, and deliberate wrong-order and missing-singlet controls. The explicit matrix kernel is four-dimensional. Its symbolic evanescent example does not extend that kernel to dimensional or prove a complete renormalization prescription.
A useful calculation keeps assumptions attached to each stage: spacetime dimension when reducing gamma chains, the external-state normalization when taking spin sums, the representation when reducing color, and the regulator prescription when combining numerator algebra with divergent integrals. Only the final scalar coefficients can safely enter an ordinary commutative simplifier without this matrix structure.
Summary
Clifford reduction preserves order, while completeness turns spin sums into traces. The resulting invariant numerator can be checked against explicit spin states in several frames. Color reduction is a separate completeness problem whose singlet subtraction controls finite- effects. Four-dimensional matrix tests and regulated gamma identities answer different questions; an evanescent term can matter when it multiplies a pole.
Exercises
1. An evanescent numerator with a finite remainder
Assume a formal Clifford algebra with , without . Evaluate
Then compute , with repeated indices regulated, through its finite limit. Explain the error from imposing a four-dimensional contraction at the beginning.
Solution
Equation (8) gives
The repeated adjacent pair then leaves
Imposing the four-dimensional identity on the bracket first would set it to zero. That discards its order- part before multiplication by the pole. This example illustrates a numerator mechanism; an actual loop amplitude must still specify its regularization, counterterms, and external-state scheme.
2. Interference of two color flows
For in (21), define the exchanged tensor . Find the normalized interference contraction
Use the result to compute the color sum of for arbitrary complex scalar coefficients . Does a negative mean the total probability can be negative?
Solution
Put and . Fierz reduction gives and . The unnormalized contractions are and . Therefore
Combining it with (22),
The bracket is nonnegative: its two eigenvalues as a quadratic form are . Interference can therefore lower the probability while preserving its nonnegativity. Relative fermion signs, if relevant to a specific process, belong in and must be included in addition to this color contraction.
References
- H. E. Haber, “Useful relations among the generators in the defining and adjoint representations of SU(N),” SciPost Physics Lecture Notes 21 (2021), doi:10.21468/SciPostPhysLectNotes.21, arXiv:1912.13302v2 (PDF). The normalization and completeness proof used here are in §2, Eqs. (3)–(12).
- S. A. Larin, “The renormalization of the axial anomaly in dimensional regularization,” Physics Letters B 303 (1993), 113–118, doi:10.1016/0370-2693(93)90053-K, arXiv:hep-ph/9302240 (PDF), §1, Eqs. (2)–(3).
- SymPy documentation, version 1.14, “High Energy Physics: Gamma matrices”, particularly the dimension and ordering assumptions of
GammaMatrix,gamma_trace, andkahane_simplify. - D. Tong, Quantum Field Theory, University of Cambridge lecture notes (2006), §§4.4.2 and 4.7.3: four-dimensional chirality and spinor completeness.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.