feynlag.pheno.colour.four_fermion_colour_tensor¶
- feynlag.pheno.colour.four_fermion_colour_tensor(lines, dims, generators=None)[source]¶
K_dof a two-line diagram, as{(c₀, c₁, c₂, c₃): value}.- Parameters:
lines –
((bar_a, field_a), (bar_b, field_b))— external positions0..3of the two fermion lines.dims – the colour dimension of each of the four externals (
1for a colour singlet).generators –
Nonefor a colour-singlet mediator; for the colour group’s gauge boson, a pair(T_a, T_b)of generator lists (one matrix per adjoint index) in the reps of line a and line b.
- Raises:
ValueError – a colour-singlet mediator on a line whose two ends have different colour dimensions (a quark–lepton line), or generators whose size does not match the line’s ends.