feynlag.pheno.topology.enumerate_line_diagrams¶
- feynlag.pheno.topology.enumerate_line_diagrams(externals, vertices, kin, species, conjugates=None, fermion_mass=None, mass_of=None, width_of=None)[source]¶
Every tree diagram of a two-fermion + two-boson 2→2 process.
Fermion exchange — both bosons attach to the fermion line. The line runs from the field slot
Yto the bar slotX:ψ̄_X Γ₁ S_F(q) Γ₂ ψ_Ywith vertex 2(F̄, Y, B)next to the field slot and vertex 1(X̄, F, B')next to the bar slot, for both assignments of the two bosons and every declared intermediate speciesF.External bosons follow the Wick rule the four-fermion enumerator uses for mediators: an incoming particle
Bis annihilated by the fieldB, an outgoing one is created byB† = conjugates[B]— so that is the boson symbol its vertex must carry. The propagator momentum is taken along the fermion arrow:q = p_in(Y) + p_in(B)withp_in = +kfor an incoming and−kfor an outgoing leg.Boson exchange — the line has one vertex
(X̄, Y, M); the bosonMpropagates to a bosonic three-point vertex carryingM†and the two external bosons’ fields (VVVfromgauge_vertices(),VVS,VSS,SSS). Each leg enters that vertex with its own incoming momentum —p_infor an external boson,p_in(X) + p_in(Y)for the mediator — which is all that fixes the triple-gauge sign (boson_vertices).- Parameters:
externals – four
ExternalFermion/ExternalBoson, in the order of the kinematics’ momentak1..k4.vertices –
DecayVertexlist.kin – a
TwoToTwoKinematics.species – the declared
DiracParticles (candidates for the exchanged fermion).conjugates –
{boson: antiboson}for charged bosons.fermion_mass – optional callable
DiracParticle -> mass(default: itsmass).mass_of – callables
boson -> mass/-> widthfor a boson mediator (mass_ofis required once a boson-exchange diagram exists;width_ofdefaults to0).width_of – callables
boson -> mass/-> widthfor a boson mediator (mass_ofis required once a boson-exchange diagram exists;width_ofdefaults to0).
- Returns:
list of
LineDiagramInfo.- Raises:
ValueError – the externals are not two fermions (one bar, one field slot) and two bosons, or a vertex that would complete a diagram has an intermediate fermion leg no declared species claims — dropping it silently would lose a diagram.
NotImplementedError – a charged external vector with no
VVVvertex amongvertices(its triple-gauge diagrams would be missing).