feynlag.pheno.trace.dirac_trace

feynlag.pheno.trace.dirac_trace(expr)[source]

Evaluate the trace of a Dirac matrix expression.

Applies Tr[…]. - Tr[odd number of gammas] = 0 - Tr[gamma_mu gamma_nu] = 4 g_{mu nu} - Tr[gamma_mu gamma_nu gamma_alpha gamma_beta] = 4(g_{mu nu}g_{alpha beta} - …) - Tr[PL] = Tr[PR] = 2

Note: For 2-body unpolarized decays, the gamma_5 trace vanishes because the Levi-Civita tensor contracts with symmetric momentum tensors.