feynlag.pheno.colour

Colour factors of 2→2 diagrams (Tier 5, stage 5a).

Colour is factorised, not enumerated. A diagram with coloured external legs is a colour tensor K_d over the external colour indices times the Lorentz amplitude L_d the rest of feynlag.pheno computes with a colour-stripped coupling, so the colour-summed

Σ_colours |Σ_d K_d L_d|² = Σ_{d,d'} C_{dd'} L_d L̄_{d'}, C_{dd'} = Σ_colours K_d K̄_{d'}

needs only the colour matrix C. The tensors are built from the gauge group’s own generators (generators()), so no Casimir is typed in: C_F, the −2/3 of the s×t interference and the vanishing of a colour-singlet × colour-octet s channel all come out of the index sums, for any SU(N) and any irrep.

A four-fermion diagram has two fermion lines, each a (bar, field) pair of external positions. A line’s colour structure is T^a[x, y] (x the bar-slot leg’s index, y the field-slot leg’s) when it emits the gauge boson of the colour group, δ[x, y] when it emits a colour singlet.

Functions

colour_matrix(tensors)

C[d][d'] = Σ_colours K_d · conj(K_{d'}) for a list of tensors.

four_boson_colour_tensor(pairing, dim, structure)

K_d of a four-gluon colour structure, as {(a₀, a₁, a₂, a₃): Σ_e f^{a_i a_j e} f^{e a_k a_l}}.

four_fermion_colour_tensor(lines, dims[, ...])

K_d of a two-line diagram, as {(c₀, c₁, c₂, c₃): value}.

line_colour_tensor(kind, dims[, order, ...])

K_d of a one-line diagram with two external bosons, as {(x, y, a₁, a₂): value} — bar-slot colour, field-slot colour and the colour index of each external boson (in the order of dims[2:]).