feynlag.pheno.colour.line_colour_tensor

feynlag.pheno.colour.line_colour_tensor(kind, dims, order=None, generators=None, structure=None)[source]

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:]).

Parameters:
  • kind – 'fermion' (both bosons on the line), 'gluon' (the line emits the colour group’s gauge boson, which meets the two external bosons at the ggg vertex) or 'singlet' (a colour-singlet mediator).

  • dims – (d_bar, d_field, d_boson1, d_boson2); a colour singlet has dimension 1.

  • order – for 'fermion', (first, second) — which boson (0 or 1) sits at the vertex next to the bar slot and which next to the field slot; the tensor is (M_first · M_second)[x, y] with M = T^a for a coloured boson and 1 for a singlet.

  • generators – the line’s generator list T^a (needed whenever a coloured boson couples to it).

  • structure – for 'gluon', the structure constants as {(a, b, c): f^{abc}}. The tensor is Σ_c T^c[x, y] f^{c a₁ a₂} — mediator index first, then the external bosons in order, the leg order the Lorentz tensor of the three-boson vertex is built with.