feynlag.pheno.topology

s/t/u topology enumeration for 2→2 four-fermion processes (Tier 3).

The 2→2 analogue of channels()’s “vertex contains the parent” search. Given four external fermions and the extracted three-leg vertices (DecayVertex), enumerate_diagrams() builds every tree diagram with two fermion lines joined by one boson propagator, as Diagram objects ready for squared().

Slots. Each external fermion occupies the ψ (field) or ψ̄ (bar) slot of its line, by the standard external-line table (see Leg): an incoming particle or an outgoing antiparticle is a field slot (u/v), an outgoing particle or an incoming antiparticle a bar slot (ū/v̄). A line joining bar slot X to field slot Y needs a vertex ψ̄_X Γ ψ_Y — a DecayVertex whose bar leg is X’s antiparticle symbol and whose field leg is Y’s particle symbol (the DiracParticle particle_map convention).

Pairings. With two bar and two field slots there are exactly two ways to pair them into lines; both are enumerated. For e⁺e⁻→μ⁺μ⁻ only one pairing has vertices (the s channel); for e⁺e⁻→e⁺e⁻ both do (Bhabha’s s and t); for e⁻e⁻→e⁻e⁻ both do (Møller’s t and u).

Propagator. A mediator joins a vertex carrying the boson field B on one line to a vertex carrying B† on the other (⟨B B†⟩ is the only non-zero contraction), so the caller passes the antiparticle map for charged bosons, e.g. {Wp: Wm, Wm: Wp} — the same explicit-map convention as check_hermiticity_pairing(), since W± come from a rotation rather than from conjugate_pair. A boson absent from the map is taken as self-conjugate.

Fermion sign. Each diagram’s relative sign is the parity of the permutation (bar_A, field_A, bar_B, field_B) of the external labels 0..3 (Wick’s theorem: each bilinear ψ̄ψ is bosonic, so the order of the two lines does not matter, and this parity is invariant under swapping them). It is stored in coefficient. For Bhabha it gives the textbook relative −1 between the s and t channels, which tests/test_interference.py pins against the closed form and against an explicit-spinor oracle that shares no code with this module.

Functions

boson_amplitude(externals, infos, kin[, ...])

The BosonAmplitude of enumerated diagrams; references as for line_amplitude().

enumerate_boson_diagrams(externals, ...[, ...])

The tree amplitude of four identical self-conjugate vectors of an unbroken non-abelian group (gg→gg), one entry per colour structure.

enumerate_diagrams(externals, vertices, kin, ...)

Every two-line, one-propagator tree diagram of a 2→2 fermion process.

enumerate_line_diagrams(externals, vertices, ...)

Every tree diagram of a two-fermion + two-boson 2→2 process.

line_amplitude(externals, infos, kin[, ...])

The LineAmplitude of enumerated diagrams.

Classes

BosonDiagramInfo(channel, mediator, pairing, ...)

One colour structure of a four-vector process and how it was built.

DiagramInfo(channel, mediator, sign, ...[, ...])

One enumerated diagram and how it was built.

ExternalBoson(symbol, spin, mass, incoming)

One external boson of a 2→2 process.

ExternalFermion(particle, anti, incoming)

One external fermion of a 2→2 process.

LineDiagramInfo(channel, mediator, kind, ...)

One enumerated fermion-line diagram and how it was built.