Internal functions and functionality

Types

QEDFeynmanDiagrams.VirtualParticleType
VirtualParticle{
    PROC<:AbstractProcessDefinition,
    IT<:NTuple,
    OT<:NTuple,
}

Representation of a virtual particle and the return type of the virtual_particles function. The type parameters are:

  • PROC: The process this particle is a part of.
  • IT: NTuple of Bools with the incoming momentum contributions.
  • OT: NTuple of Bools with the outgoing momentum contributions.

A virtual particle contains the information about the process it's a part of, its particle species, the in- and outgoing particles of the process that contribute to its momentum, and its open fermion cycles. The open cycles are in the context of fermion permutations. For n fermion lines in a process, there can be between 1 (like 1-2, 2-3, 3-1) and n (like 1-1, 2-2, 3-3) cycles, where the left number represents the canonical fermion index and the right number the canonical antifermion index.

source

Functions

QEDFeynmanDiagrams.are_totalFunction
are_total(a::VirtualParticle, b::VirtualParticle, c::VirtualParticle)

Return true if a, b and c combined contain all external particles exactly once and no open cycles remain.

source
QEDFeynmanDiagrams.containsFunction
contains(a::VirtualParticle, b::VirtualParticle)

Returns true if the set of particles contributing to a contains the set of particles contributing to b.

source
QEDFeynmanDiagrams.make_upFunction
make_up(a::VirtualParticle, b::VirtualParticle, c::VirtualParticle)

For virtual particles a, b, and c, return true if a and b's joint momentum contributions add up to c's momentum contributions.

source