feynlag.pheno.line.check_ward_identities

feynlag.pheno.line.check_ward_identities(summed, vectors, sums, total, kin, who)[source]

Verify k_μ M^μ = 0 for every massless external vector.

The leg’s polarization sum is replaced by k_μk_{μ'} while the other legs keep theirs, so with physical sums on the gluons this is the non-abelian identity.

Parameters:
  • summed – callable {index: [(coeff, tensors)]} -> Σ|M|² with the given per-leg sums.

  • vectors – the external VectorLegs.

  • sums – their polarization sums, as passed to summed.

  • total – summed(sums) (the scale a float residue is compared to).

  • kin – the kinematics (s, t for the numeric fallback).

  • who – the caller’s name, for the message.

Raises:

NotImplementedError – an identity fails.