Skip to content

Spinor Algebra

A calculation can satisfy the Clifford algebra and still use an incorrect charge-conjugation matrix or negative-frequency momentum label. This executable notebook tests those additional contracts in the Dirac, chiral, and a genuinely complex unitary basis. It exports individual residuals, includes deliberately wrong constructions, and supplies selected exact rational-complex fixtures alongside floating-point checks. The general algebra is developed at Gamma Matrices; this page concerns its numerical verification.

Required background. Gamma Matrices supplies the identities; Gamma-Matrix Conventions fixes their signs; Free Dirac Spinors supplies the on-shell normalization and labels. Helpful background. Bilinear Covariants explains the polarization checks, and Symmetry Conventions explains the discrete maps.

Run the investigation. The program and retained results below support the stated experiment. Follow Running an Experiment for environment and output-directory guidance. The recorded evidence applies to its stated parameters and environment.

Clifford matrices and on-shell test columns

Section titled “Clifford matrices and on-shell test columns”

Use ℏ=c=1\hbar=c=1, η=diag⁡(1,−1,−1,−1)\eta=\operatorname{diag}(1,-1,-1,-1), and ϵ0123=+1\epsilon^{0123}=+1. The program constructs

{γμ,γν}=2ημνI,γ5=iγ0γ1γ2γ3,p ⁣ ⁣ ⁣/=γ0E−γ⋅p,σμν=i2[γμ,γν].\begin{aligned} \{\gamma^\mu,\gamma^\nu\}&=2\eta^{\mu\nu}I,\\ \gamma^5&=i\gamma^0\gamma^1\gamma^2\gamma^3,\\ p\!\!\!/&=\gamma^0E-\boldsymbol\gamma\cdot\mathbf p,\\ \sigma^{\mu\nu}&=\frac{i}{2}[\gamma^\mu,\gamma^\nu]. \end{aligned}

The adjoint is uˉ=u†γ0\bar u=u^\dagger\gamma^0 in each transformed basis. Massive columns have uˉsur=2mδsr\bar u_su_r=2m\delta_{sr}, vˉsvr=−2mδsr\bar v_sv_r=-2m\delta_{sr}, and Hilbert norms us†us=vs†vs=2Eu_s^\dagger u_s=v_s^\dagger v_s=2E. The independent checks include

(p ⁣ ⁣ ⁣/−m)us(p)=0,(p ⁣ ⁣ ⁣/+m)vs(p)=0,∑sus(p)uˉs(p)=p ⁣ ⁣ ⁣/+m,∑svs(p)vˉs(p)=p ⁣ ⁣ ⁣/−m.\begin{aligned} (p\!\!\!/-m)u_s(p)&=0,\\ (p\!\!\!/+m)v_s(p)&=0,\\ \sum_s u_s(p)\bar u_s(p)&=p\!\!\!/+m,\\ \sum_s v_s(p)\bar v_s(p)&=p\!\!\!/-m. \end{aligned}

Both labels p=(E,p)p=(E,\mathbf p) are future directed, but the waves are u(p)e−ip⋅xu(p)e^{-ip\cdot x} and v(p)e+ip⋅xv(p)e^{+ip\cdot x}. Consequently the latter has canonical momentum −p-\mathbf p. At a fixed momentum of the Hamiltonian, the orthogonality test is u(p)†v(E,−p)=0u(p)^\dagger v(E,-\mathbf p)=0. Replacing the second label by pp tests a different statement, which generally fails.

The program also checks energy and chirality projectors, traces, all sixteen bilinear components, polarized outer products, the on-shell Ward identity, and the massive Gordon identity. Selected massless nonzero-momentum fixtures test identities that remain defined; they skip the rest-spin polarization and Gordon formulas containing 1/m1/m. The zero-energy massless apex is rejected.

Similarity and congruence are different tests

Section titled “Similarity and congruence are different tests”

For a constant unitary component change ψ′=Vψ\psi'=V\psi, linear matrices transform by similarity:

γ′μ=VγμV†.\gamma'^\mu=V\gamma^\mu V^\dagger.

An antilinear map BKBK contains component conjugation KK. Applying it to V†ψ′V^\dagger\psi' instead gives

B′=VBVT,UT′=VUTVT.B'=VBV^T,\qquad U_T'=VU_TV^T.

The initial Dirac-basis choices are B=iγ2B=i\gamma^2 and UT=−γ1γ3U_T=-\gamma^1\gamma^3. Their squares as antilinear maps involve BB∗BB^* and UTUT∗U_TU_T^*, rather than B2B^2 and UT2U_T^2. These phases agree with the linked symmetry ledger. Coordinate reflections must still accompany the component maps.

A real change between Dirac and chiral bases does not adequately expose the distinction between VTV^T and V†V^\dagger. The additional complex basis makes the wrong rule fail. In the retained default run, both VBV†VBV^\dagger and a blind reconstruction iγ′2i\gamma'^2 differ from the correctly transformed B′B' by a maximum-entry gap of approximately 0.8673230.867323. The Clifford tests alone would not detect either error.

Gamma5 matrices with off-diagonal unit blocks in the Dirac basis and diagonal entries minus one, minus one, plus one, plus one in the chiral basis.

The two familiar representations of γ5\gamma^5, read from the retained matrix CSV. Displayed entries are rounded to integers; their numerical deviations are below 10−1210^{-12}. The complex third basis is included in the download and verification, but is not represented by this real-entry diagram.

These are constant unitary component changes. Lorentz boosts of Dirac components are a different, generally nonunitary representation. Likewise, the checked classical product CPT=−γ5CPT=-\gamma^5 with spacetime inversion is a linear map of commuting solution columns in the chosen phase convention. It neither proves the quantum-field CPT theorem nor computes its antiunitary operator square. Commuting arrays also do not supply the fermionic reordering signs of field bilinears.

Download the standalone Python program. The retained run used Python 3.12.14 and NumPy 2.3.5; no plotting package is required. From a directory containing the program, run:

Terminal window
python -m pip install numpy==2.3.5
python spinor-algebra.py --output-dir spinor-results

Choose a new output directory: existing outputs are protected from replacement. The default massive fixture has m=1m=1, twelve seeded samples in addition to fixed cases, seed 20261002, and a largest designated momentum-to-mass ratio of 1000. The complete report records the actual parameters, environment, tolerances, and hashes. To probe cancellation more strongly:

Terminal window
python spinor-algebra.py --max-ratio 1000000 --output-dir spinor-large-ratio

The default run passes 7,050 checks, including 32 selected exact assertions implemented with rational complex arithmetic. This is finite evidence for the implementation, not a proof for all momenta or representations.

DownloadWhat to inspect
Matrices CSVReal and imaginary entries, with basis, matrix, row, and column labels
Spinors CSVOn-shell columns and their kinematic labels
Bilinears CSVCovariants for the declared spin and basis fixtures
Checks CSVEvery absolute error, comparison scale, scaled error, tolerance, and verdict
JSON reportParameters, per-identity maxima, negative controls, limitations, and file hashes

The public JSON replaces local output locations with download paths; numerical results and CSV bytes retain the executed run’s values. For the figure, put the matrices CSV beside the TikZ source, then use a TeX installation with PGFPlots 1.18:

Terminal window
latex notebook-spinor-bases.tex
dvisvgm --no-fonts notebook-spinor-bases.dvi

The source selects the default Dirac and chiral γ5\gamma^5 records. If modifying the CSV layout, update that selection before reproducing the diagram.

Each floating check exports an error and an explicitly chosen scale. A small scaled error means small error relative to that scale. It does not necessarily mean small relative error in the final invariant. For example, u†γ0u=2mu^\dagger\gamma^0u=2m can subtract terms of size EE when E≫mE\gg m. The normalization check uses a scale 2E2E, which makes the loss of digits in 2m2m something the reader must inspect separately.

In the default ledger, the largest absolute Gordon-identity error is approximately 4.32×10−104.32\times10^{-10}, with a comparison scale 4.00×1064.00\times10^6 and scaled error 1.08×10−161.08\times10^{-16}. These three numbers describe the same row. Reporting just the first as an unexplained failure, or just the last as sixteen-digit accuracy in every small quantity, would both be misleading.

The exact fixtures avoid floating cancellation for selected rational inputs and use a separate arithmetic implementation. The floating suite then explores directions, spin states, bases, and larger momentum ratios. Neither substitutes for an algebraic derivation, and increasing the sample count cannot repair a wrong convention.

A Clifford-preserving mistake. Keep the correct γ′μ\gamma'^\mu but transform BB by similarity. Explain which checks can still pass and why the complex-basis control is useful.

Solution

Similarity of the gamma matrices preserves their anticommutator identically, independently of the separately supplied BB. An antilinear map, however, must conjugate the inverse component transformation. This produces VTV^T on the right of BB. For real VV it equals V†V^\dagger, masking the mistake; a generic complex unitary VV separates the two constructions.

Negative-frequency labels. Explain why the program’s nonzero control u(p)†v(p)u(p)^\dagger v(p) does not contradict orthogonality of a Hermitian free Hamiltonian’s positive- and negative-energy eigenspaces.

Solution

The columns as labeled belong to Hamiltonians with opposite canonical momenta: u(E,p)u(E,\mathbf p) belongs to H(p)H(\mathbf p), whereas v(E,p)v(E,\mathbf p) belongs to H(−p)H(-\mathbf p) with eigenvalue −E-E. The eigenspace orthogonality statement at fixed p\mathbf p compares u(E,p)u(E,\mathbf p) with v(E,−p)v(E,-\mathbf p).

Cancellation audit. For the u covariant normalization rows, compute both the exported scaled residual and the absolute error divided by 2m2m. Explain their ratio and why a massless run would need a different question.

Solution

The two denominators are 2E2E and 2m2m, so the latter relative error is E/mE/m times the exported scaled error. At m=0m=0 the expected covariant norm vanishes: relative error with denominator 2m2m is undefined. Absolute residuals and a nonzero scale such as 2E2E remain meaningful away from the excluded apex.

  • Bjorken, James D., and Sidney D. Drell. Relativistic Quantum Mechanics. McGraw–Hill, 1964.
  • Dreiner, Herbi K., Howard E. Haber, and Stephen P. Martin. “Two-component spinor techniques and Feynman rules for quantum field theory and supersymmetry.” Physics Reports 494, 1–196 (2010). doi:10.1016/j.physrep.2010.05.002. See also the corrected arXiv version, especially the four-component convention comparisons.