From a color perspective, the QCD Lagrangian is built out of
and
where we follow the convention of reading of the fully antisymmetric structure constant indices in counterclockwise order. The four gluon vertices can be rewritten in terms of (one gluon) contracted triple-gluon vertices, and thus need no special treatment.
Due to confinement, we never observe individual colors and it therefore suffices to calculate color summed/averaged quantities for making predictions in quantum chromodynamics. We may thus constrain ourselves to treat QCD amplitudes carrying a set of external indices with values that need never be specified, as they are always summed over in the end.
In principle, the SU(N
c
) generators, along with a delta function for indicating a quark and an anti-quark color singlet, δ
q1
q2, constitute a minimal set of objects for treating the color structure in QCD.Footnote 1 For convenience, and for performance reasons, it is, however, useful to define a larger set of objects. The complete set of basic building blocks for carrying color structure used by the ColorMath package is given in Table 1.
Table 1 Along with the number of colors, Nc, and the trace of an SU(N
c
) generator squared, TR, the basic building blocks are as below. Note that o
{g1,g2,…,gk} represents a trace over gluons with indices g1…gk, \(\operatorname {tr} [t^{g1}t^{g2}\cdots t^{gk}]\), and that t
{g1,g2,…,gk}q1
q2 represent the q1,q2-component in a trace over generators that has been cut open, (t
g1
t
g2⋯t
gk)q1
q2. For convenience, also the totally symmetric “structure constants” d
{g1,g2,g3} are defined. Note the Mathematica FullForm. ColorMath is built on pattern matching, and it is therefore essential that the expressions have the correct FullForm. In particular, Power may not be used instead of Superscript. To get the right FullForm it is recommended to use the function form, which is just a function returning the corresponding ColorMath object
Apart from a delta function in quarks indices, δ
q1
q2, a delta function in gluon indices, denoted by Δ
{g1,g2}, is also defined. Note the Mathematica List brackets in {g1,g2}. The gluon delta function can alternatively be expressed using
where T
R
(TR) comes from the normalization of the SU(N
c
) generators, and is typically taken to be 1/2 (the Gell-Mann normalization) or 1. A rescaling of the normalization of the SU(N
c
) generators can always be absorbed into a normalization of the strong coupling constant. To allow for arbitrary normalization T
R
is kept as a free parameter, denoted by TR, and may be defined by the user. Also the number of colors, denoted Nc in ColorMath, may be set by the user; by default both Nc and TR are kept as free parameters. Note the ColorMath notation for a trace over two gluons o
{g1,g2} in Eq. (6). Similarly, a general trace over k gluons g1,g2,…,gk is denoted o
{g1,g2,…,gk}, and may be thought of as a closed quark-line with k gluons attached.
The totally antisymmetric structure constants, which—along with an extra i—define the triple gluon vertices, are denoted f
{g1,g2,g3}. Similarly, the totally symmetric “structure constants” are defined as d
{g1,g2,g3}. Recall that, starting from the commutation (anticommutation) relations
the structure constants can be rewritten in terms of traces over SU(N
c
) generators,
In ColorMath notation t is used to denote an open quark-line, and the above expression is written similarly,
Pictorially this represents
where i is included in the triple gluon vertex. The rationale for putting the gluon index in the SU(N
c
) generators t
{g2}q1
q2 inside a Mathematica List in Eq. (9) is to allow for the natural extension of having many gluons attached to an open quark-line, thus
The left hand side has several advantages compared to the right hand side. An open quark-line with an arbitrary number of gluon indices can be written in a compact form with no dummy indices. This is not only more human readable, but also superior from a computational point of view, as it avoids the contraction of unnecessary dummy indices. A third advantage with the above notation is its direct correspondence to the trace type bases [4–12]. A basis (or spanning set) for the color space for a fixed set of external quarks, anti-quarks and gluons can always be taken to be a sum of products of open and closed quark-lines.
In this context we also remark that the color tensors defined in Table 1 are color scalars, i.e., they are invariant under SU(N
c
) transformations. This imposes no restriction for our purposes as, for any QCD amplitude, the overall color structure, including both incoming and outgoing particles, always is a color singlet. As the basic building blocks are invariant, each tensor built out of these objects, i.e., each tensor needed for color summed calculations in perturbative QCD is a actually a color scalar.
The scalar product on this vector space is given by summing over all external color indices, i.e.
$$ \left\langle \mathbf{c} _1 | \mathbf{c} _2 \right\rangle =\sum_{a_1,\,a_2,\,\ldots} \mathbf{c} _1^{* a_1\, a_2\ldots} \, \mathbf{c} _2^{a_1\,a_2\ldots} $$
(12)
with a
i
=1,…,N
c
if parton i is a quark or anti-quark and \(a_{i}=1,\ldots, N_{c} ^{2}-1\) if parton i is a gluon. As long as the color structures in Table 1 are multiplied by real coefficients the scalar product is actually real, which is easy to prove using the computational rules in the next section.