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 Y to the bar slot X: ψ̄_X Γ₁ S_F(q) Γ₂ ψ_Y with 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 species F.

External bosons follow the Wick rule the four-fermion enumerator uses for mediators: an incoming particle B is annihilated by the field B, an outgoing one is created by B† = 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) with p_in = +k for an incoming and −k for an outgoing leg.

Boson exchange — the line has one vertex (X̄, Y, M); the boson M propagates to a bosonic three-point vertex carrying M† and the two external bosons’ fields (VVV from gauge_vertices(), VVS, VSS, SSS). Each leg enters that vertex with its own incoming momentum — p_in for 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’ momenta k1..k4.

  • vertices – DecayVertex list.

  • 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: its mass).

  • mass_of – callables boson -> mass / -> width for a boson mediator (mass_of is required once a boson-exchange diagram exists; width_of defaults to 0).

  • width_of – callables boson -> mass / -> width for a boson mediator (mass_of is required once a boson-exchange diagram exists; width_of defaults to 0).

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 VVV vertex among vertices (its triple-gauge diagrams would be missing).