One-loop matrix elements

pyAmpliCol computes two kinds of one-loop matrix elements: the virtual correction \(2\,\mathrm{Re}\,\langle \mathcal{M}^{(0)} \vert \mathcal{M}^{(1)} \rangle\) of a process with a tree-level amplitude, and the square \(\lvert \mathcal{M}^{(1)} \rvert^2\) of a loop-induced process, which has none. This page says how to request them, what a result contains and which conventions it follows, and how to check a request. A first one-loop process is on Quick start: one loop. How accurate a value is, and how to control that, is on Numerical stability: without stability checks a value carries no statement about its accuracy.

Request a one-loop matrix element

Write the correction in brackets after the process, as in MadGraph, or set process.loop_coupling_orders in the run card: g g > t t~ [QCD] gives the virtual correction with its Born, u u~ > e+ e- [QCD QED] the joint QCD and electroweak correction, and g g > h h [noborn=QCD] the \(\lvert \mathcal{M}^{(1)} \rvert^2\) of a loop-induced process (MadLoop process syntax).

The restriction no_widths below sets every width to zero, which the default mass scheme needs for a top quark in the Born (Widths and the mass scheme):

action = "generate"

[model]
source = "loop_sm"
restriction = "no_widths"

[process]
entries = [{ expression = "g g > t t~", name = "gg_ttx" }]
loop_coupling_orders = ["QCD"]

[generation]
output = "artifacts/gg_ttx_card"

Saved as gg_ttx.toml, pyamplicol gg_ttx.toml runs it.

process.loop_induced decides what happens to a process without a tree-level amplitude within the coupling-order limits. "auto", the default, serves a request none of whose processes has one as loop-induced (so g g > h [QCD] is loop-induced too) and skips such members of a multiparticle request that also has members with a Born. "skip" serves none, "only" serves only them, and "include" serves both kinds, each process its own contribution, never summed.

The loop orders follow the Born: one loop amplitude order per Born amplitude order and correction, so several Born orders (u u~ > d d~ with gluon and photon exchange) and several corrections are generated together.

Only the virtual part of an NLO calculation is computed: [real=QCD] is refused, and the real emission is an ordinary tree-level request. One-loop decays (t > b w+ [virt=QCD]) are served, averaged over the helicities and colors of the decaying particle, whose own width must be zero.

MadLoop process syntax

A MadLoop process line works as written: on the command line, in a card or in Python. pyAmpliCol translates its annotations into the run-card settings below and prints the translation (process g g > t t~ [QCD] -> g g > t t~ (loop_coupling_orders QCD)).

MadLoop pyAmpliCol
import model loop_sm-no_b_mass [model] source = "loop_sm", restriction = "no_b_mass"
[QCD], [virt=QCD], [QCD QED], [virt=QED] process.loop_coupling_orders = ["QCD"], ["QCD", "QED"], ["QED"]
[noborn=QCD], [sqrvirt=QCD] the same, and process.loop_induced = "only"; the default "auto" serves a request without a Born as loop-induced anyway
QED=2, QED<=2 (amplitude order) process.max_coupling_orders = { QED = 2 }, and coupling_order_policy = "explicit"
QCD^2==4, QED^2<=4 (squared order) process.squared_coupling_orders = ["QCD^2==4"]; without it every squared order is a separate result
/ z / Z in the expression, or generation.particle_veto = ["Z"], in the model’s spelling (Particle vetoes)
!a! (a tagged photon) [loop] external_photons (External photons)
p p > t t~ the same: one artifact entry per subprocess
set complex_mass_scheme True [loop.model.scheme] mass_scheme = "complex-mass" (Complex-mass scheme)
[real=QCD], [LOonly=QCD], decay chains, $, $$, @N refused (madloop-syntax)

MadLoop’s default selection drops, for a process with Born amplitudes of several orders, the squared order of highest power in \(\alpha\) unless the squared orders are given; pyAmpliCol returns every squared order within the request’s limits, so compare sector by sector. Processes gives the full syntax and the coupling-order rules.

What the model must provide

A one-loop request needs a UFO model with one-loop counterterms: ultraviolet (UV) and rational (\(R_2\)) counterterms for the requested corrections. It also needs a scheme declaration, which says what the counterterms assume (regularization scheme, \(\gamma_5\), renormalization, mass scheme). pyAmpliCol ships three such models with their declarations: loop_sm for QCD, loop_qcd_qed_sm and loop_qcd_qed_sm_Gmu for QCD and electroweak corrections. A copy of one of them from MadGraph, and every restriction of it, is recognized and takes the same declaration.

Another model needs a [loop.model] table with its declaration (pyamplicol config template lists its fields); without one it is refused with the key loop-model-declaration. The counterterms are taken as the model declares them, not checked against the loops: run check on a new model.

[loop.preparation] adjusts how the model is prepared for one-loop requests:

[loop.preparation]
fixed_parameters = { WT = "0", MB = "0" }

fixed_parameters fixes parameters to exact values at generation, as decimal strings: a fixed parameter is a constant of the artifact and cannot be changed at run time. An explicit [loop.preparation] table, even an empty one, replaces the model’s own record as a whole. The prepared model is cached between generations (Models).

What a result contains

A one-loop runtime returns a VirtualEvaluation, indexed by phase-space point and then by squared coupling order (a sector). Each value is the Laurent expansion in the dimensional regulator \(\epsilon\), with \(d = 4 - 2\epsilon\):

\[2\,\mathrm{Re}\,\langle \mathcal{M}^{(0)} \vert \mathcal{M}^{(1)} \rangle = C_\epsilon \left( \frac{c_{-2}}{\epsilon^2} + \frac{c_{-1}}{\epsilon} + c_0 + \mathcal{O}(\epsilon) \right) , \qquad C_\epsilon = \frac{(4\pi)^\epsilon}{\Gamma(1-\epsilon)} ,\]

returned as LaurentCoefficients(finite, single_pole, double_pole), that is \(c_0\), \(c_{-1}\) and \(c_{-2}\). The conventions are those of MadLoop:

  • the virtual is renormalized, with the model’s UV and \(R_2\) counterterms;
  • the factor \(C_\epsilon\) stands outside the coefficients, as above, and the coefficients include every coupling of the model;
  • the scheme is the model’s declaration: for the shipped models ‘t Hooft-Veltman, four-dimensional external states and real on-shell masses;
  • averages over initial-state spins and colors and the symmetry factors of identical final-state particles are included, as in the Born.

Runtime.inspect() states the conventions of a loaded process (epsilon_convention, scheme).

from math import sqrt
from pyamplicol import ModelSource, Runtime, generate

loop_sm = ModelSource.from_path("loop_sm", restriction="no_widths")
generate("g g > t t~ [QCD]", "artifacts/gg_ttx", model=loop_sm, mode="replace")

p = sqrt(500.0**2 - 173.0**2)
point = [[500, 0, 0, 500], [500, 0, 0, -500],
         [500, 0.6 * p, 0, 0.8 * p], [500, -0.6 * p, 0, -0.8 * p]]
virtual = Runtime.load("artifacts/gg_ttx")
result = virtual.evaluate([point], mu_r2=1000**2)
print(result.sectors[0].order, result.born_values[0][0])
# (('QCD', 6),) 2.1999075333190716
print(result.values[0][0].finite, result.values[0][0].double_pole)
# 0.7171999700928999 -0.24788932005716266
print(virtual.inspect()["epsilon_convention"])
# Cepsilon=(4*pi)^epsilon/Gamma(1-epsilon)

values[i][k] holds the coefficients of point i and sector k, born_values[i][k] the Born of Born order k; sectors gives each sector’s order with its pairs of Born and loop orders. Python lists the other attributes. A loop-induced result has the same type: contribution is "loop-induced", the Born fields are empty, and its sectors pair two loop orders. Its poles vanish; the computed ones are rounding.

On the command line, with points.json holding this point:

pyamplicol evaluate artifacts/gg_ttx --momenta points.json --mu-r2 1000000

It prints the same as tables; --json adds the coefficients’ powers of \(\epsilon\) and the normalization. Neither sums the sectors or divides by the Born. --arithmetic, --threads and every other option are on Command-line options.

The renormalization scale

Every evaluation needs the squared renormalization scale \(\mu_R^2\): mu_r2= in Python (one value, or one per point), --mu-r2 or --mu-r2-file on the command line, evaluation.mu_r2 or evaluation.mu_r2_file in a run card. Values are exact decimal text or numbers. When evaluate draws its own phase-space points, \(\mu_R^2 = s\) at each point.

The model’s scale parameter (the external parameter at code 1 of the block LOOP) is set only this way; naming it as a model parameter is refused. For the usual NLO models only the counterterms depend on the scale, and a batch of points at different scales is evaluated at once. A model whose Born couplings or masses run with the scale is evaluated per scale; its correlated and resolved evaluations take one scale per call.

Ultraviolet and infrared poles

poles= (--poles, evaluation.poles) selects which poles a call returns. The finite part is the same under every selection.

Selection Poles returned
"all" (default) the poles of the renormalized virtual
"none" none (None); saves the pole work
"uv" the UV poles of the bare one-loop amplitude interfered with the Born; the double pole is zero
"ir" the infrared poles of the renormalized virtual, the ones Catani’s operator predicts

With "uv" or "ir" the single pole of each component of the virtual is also split by origin, ultraviolet and infrared. Read a piece with pole_part(origin, component): origin is "uv" or "ir", and component is virtual (the renormalized total), bare (the loops), r2, uv_local (the model’s coupling and mass counterterms), uv_external_fields (the on-shell field factors) or uv (the sum of the last two). Under "uv", values holds the UV pole of the bare loops, so that you can see it cancel against the counterterms:

# continues "What a result contains"
uv = virtual.evaluate([point], mu_r2=1000**2, poles="uv")
bare = uv.values[0][0].single_pole
counterterms = uv.pole_part("uv", "uv")[0][0].single_pole
print(f"bare loops {bare:+.6f}, counterterms {counterterms:+.6f}")
# bare loops +0.263933, counterterms -0.263933

The two cancel. On the shipped QCD model this holds by construction; on the electroweak models, whose counterterms carry their own UV and IR regulators, it is a check of the model. An incomplete UV renormalization shows in the "ir" and "all" poles, which then miss Catani’s prediction. A loop-induced process takes "all" and "none" only.

Catani’s QCD prediction needs the strong coupling of the model: the parameter named by [loop] alpha_s_parameter, else the unique adjustable parameter at SMINPUTS 3. Without one the virtual is unchanged, but no QCD pole prediction is made.

Check a one-loop request

pyamplicol check tests the physics of a request at a few phase-space points. The target is a run card, such as gg_ttx.toml, or an artifact, however generated:

pyamplicol check gg_ttx.toml --points 4
pyamplicol check artifacts/gg_ttx_card

check generates the request again in memory, writes nothing, and runs:

Check What it compares
poles the poles of a virtual correction against Catani’s operator, per sector; the vanishing poles of a loop-induced process
ward the value with the polarization of every external gluon and photon replaced by its momentum, which must vanish
goldstone the amplitudes of a massive vector boson and of its Goldstone boson, in ‘t Hooft-Feynman gauge (loop-induced processes)

Each row passes when its residue is below the tolerance (default \(10^{-5}\), --tolerance) relative to the physical size of the compared quantities. Precision rises from binary64 to double-double and arbitrary precision for a row that does not pass. The exit code is 0 when every process passed, 1 on a failure, 4 when a result is inconclusive, and 3 when nothing could be checked. A check costs about one generation of the request.

from pyamplicol.api import check

report = check("gg_ttx.toml", points=2)
print(report.processes[0].status, report.exit_code)
# passed 0

In the real on-shell scheme, an external particle that can decay at its own mass (a top quark with electroweak corrections) violates the Ward identity in the finite part by about \(\Gamma/m\), where \(\Gamma\) is its physical width, although the values are right. check fails that row with a hint: check again on a stable spectrum, for example with MW and MZ above the top mass in fixed_parameters.

Squared coupling orders

Every squared coupling order is a separate result, never summed. A [QCD QED] correction of u u~ > d d~ returns the sectors QCD^4, QED^2, QCD^2, QED^4 and QED^6, each with its own Laurent coefficients.

  • Select sectors at generation with process.squared_coupling_orders, or in the expression as in MadGraph: u u~ > d d~ QCD^2<=4 QED^2<=6 [QCD QED]. At one loop the power is that of the Born-loop interference (loop-loop for a loop-induced process). Only the selected sectors are returned.
  • evaluate_orders returns the same evaluation as a view by order, with for_order, born_for_order and the explicit sums sum_orders() and sum_born_orders(). On the command line, --orders prints the sums in a table of their own.
# continues "What a result contains"
view = virtual.evaluate_orders([point], mu_r2=1000**2)
print(view.orders, view.sum_orders()[0].finite)
# ((('QCD', 6),),) 0.7171999700928999

Processes explains the coupling-order syntax.

What a [QCD] request contains

A [QCD] request computes only the loops of the model’s QCD loop particles, as MadLoop’s [virt=QCD]. Where the Born of a sector joins its quark lines in more than one way (u d > u d h at QCD=0, with a Z or a W between the lines; u s > d c g, with the gluon on either line), loops with electroweak particles contribute to the same squared order, so [QCD] is not the complete order-\(\alpha_s\) correction of that sector. The dry run, generation, check and inspect print a notice for such a request.

The complete correction: for the Standard Model, the joint ["QCD", "QED"] correction of loop_qcd_qed_sm at full color, with the squared order selected. For the QCD^2 QED^6 sector of u d > u d h:

action = "generate"

[model]
source = "loop_qcd_qed_sm"

[process]
entries = [{ expression = "u d > u d h", name = "vbf" }]
loop_coupling_orders = ["QCD", "QED"]
coupling_order_policy = "explicit"
max_coupling_orders = { QCD = 0, QED = 3 }
squared_coupling_orders = ["QCD^2==2", "QED^2==6"]

[loop.preparation]
fixed_parameters = { WT = "0", WZ = "0", WW = "0", WH = "0" }

[color]
accuracy = "full"

[generation]
output = "artifacts/vbf"

Color at one loop

One-loop requests are full color by default, the accuracy of MadLoop. Leading and next-to-leading color (color.accuracy = "lc" or "nlc") project the virtual on the leading powers of \(N_c\) and need a declaration of the \(N_c\) dependence of every counterterm; pyAmpliCol ships one for loop_sm. A request that reaches a counterterm no declaration covers is refused (colour-declaration-coverage).

The color accuracy is set as at tree level (--color-accuracy lc, color.accuracy in a run card, a ColorConfig), and a stated one is kept: drop the accuracy = "lc" of a card from pyamplicol config template or a tree-level card for full color (Helicities and color flows at one loop).

  • QED and joint QCD+QED corrections, and every request on the electroweak models, are full color only (lc-electroweak-corrections).
  • Loop-induced processes are full color only.
  • strict-lc, strict-nlc and graded output are tree-level only.
  • color.contraction chooses how NLC and full-color virtuals contract their color (Run card); all give the same value up to rounding.

Color explains the accuracies; Correlation and color conventions defines them at one loop.

Helicities and color flows at one loop

A virtual correction selects its Born helicities at every color accuracy, by the runtime’s identifiers ("h5") or by their values ("h:-1,+1,-1,+1", in leg order). The selected value is the sum of the selected helicities; all of them together give the unselected value. Color flows exist at leading color only, with the identifiers listed in runtime.physics.born_anchored_color_components; at next-to-leading and full color the color is contracted, and a color-flow selection is refused with a CompatibilityError.

# continues "What a result contains"
from pyamplicol import ColorConfig, RunConfig

lc = RunConfig(action="generate", color=ColorConfig(accuracy="lc"))
generate("g g > t t~ [QCD]", "artifacts/gg_ttx_lc", model=loop_sm, config=lc,
         mode="replace")
leading = Runtime.load("artifacts/gg_ttx_lc")
for flow in leading.physics.born_anchored_color_components:
    value = leading.evaluate([point], mu_r2=1000**2, color_flows=[flow.id])
    print(flow.id, value.values[0][0].finite)
# flow:3,1,2,4 1.0615958608390228
# flow:3,2,1,4 0.03981789744070025

A selection is evaluated from the stored artifact without regeneration, and costs at most one inclusive evaluation; the runtime keeps the most recent selections ready (Caches and environment variables).

At generation, process.selected_source_helicities and process.selected_color_sector_ids (leading color only) generate only the selection, which is cheaper still. At one loop a Born color flow can still interfere with other flows through the loop, so a generation-time selection must contain a leading flow (else subleading-colour-flows) and every flow that interferes with one it contains (else interfering-colour-flows). Select those flows together, or select at evaluation.

A loop-induced process selects helicities only, and its resolved evaluation can split each helicity into the elements of the amplitude’s color basis (evaluate_resolved(..., color_resolution="amplitude-basis")). Correlated evaluations take no selection; artifacts with declared correlations refuse generation-time selections (selected-correlators). Evaluating matrix elements explains selectors in general.

Widths and the mass scheme

By default masses are real and on-shell: loop propagators carry no width, and the counterterms renormalize the real mass. A colored particle with a width in a tree current (the top in g g > t t~) is then refused with coloured-width, and an electroweak request refuses any width in its trees (electroweak-width). The remedies:

  • fix the width at generation: [loop.preparation] fixed_parameters = { WT = "0" };
  • take a restriction whose widths are zero (no_widths on loop_sm);
  • [loop] external_widths = "zero" fixes the width of every external particle of the request to zero, which makes external states stable and keeps the widths of particles that only propagate;
  • the complex-mass scheme, below.

Fixed parameters also fix the kinematics: the masses of external particles are those of the artifact, at the fixed values. Every point pyAmpliCol draws for a loop artifact, in evaluate, profile and check, is on these mass shells.

Complex-mass scheme

A resonant particle needs the complex-mass scheme, MadGraph’s set complex_mass_scheme True:

[loop.model.scheme]
mass_scheme = "complex-mass"

Every particle with a nonzero width then propagates with its complex mass \(\sqrt{m^2 - i m \Gamma}\), which the couplings and counterterms read too. Masses and widths stay real inputs; a width that is zero on the card stays zero. The scheme refuses an external particle with a width (cms-external-width: use external_widths = "zero"), a width-carrying particle whose mass is not an external parameter (cms-internal-mass, for example the W of loop_sm: fix WW = "0"), and a few model constructions listed on Refusals and errors.

The zero-width limit of the complex-mass scheme is not the real on-shell scheme: it keeps the absorptive parts of the renormalization constants. A width may be set to zero at run time; in double-double precision a width must be zero or at least \(10^{-150}\) of its mass.

External photons: alpha(0) per leg

With electroweak corrections, an on-shell external photon either couples with \(\alpha(0)\) (a tagged photon, MadGraph’s !a!: an isolated photon) or keeps the coupling of the loops, \(\alpha_{G_\mu}\) on a \(G_\mu\) model (an untagged photon: from a PDF or in a jet). [loop] external_photons chooses per leg:

Value Tagged photons
"final" (default) the final-state photons; initial-state photons are PDF photons
"all" every photon, for example the photon flux of a charged beam
"none" none; MadLoop standalone’s raw values
[1, 3] exactly these legs

For \(n\) tagged photons the Born and the virtual are multiplied by \((\alpha(0)/\alpha_{G_\mu})^n\), and the virtual gains the conversion term of MadGraph’s convention, \(-2 n\, \delta_{G_\mu,\alpha(0)}\) times the Born. A tagged photon needs a \(G_\mu\) model with an adjustable \(1/\alpha(0)\): loop_qcd_qed_sm_Gmu with restriction = "a0". Otherwise the request is refused (external-photon-scheme); external_photons = "none" runs on every model. Only requests with the electromagnetic correction convert photons; another model names its two parameters in [loop] (Run card).

Particle vetoes at one loop

generation.particle_veto (--particle-veto, MadGraph’s / x) removes a particle and its antiparticle from the Born, the loops and the counterterms, including every counterterm whose declared loop content holds it; a vector boson takes its ghosts with it. On loop_sm, particle_veto = ["t"] gives massless five-flavor QCD. A veto that breaks a cancellation within a complete quark doublet is refused unless generation.allow_anomalous_veto = true.

Run-time parameters of a loop artifact

Model parameters of a loop artifact change at load (model_parameters=) or with set_model_parameters, as for trees (Evaluating matrix elements), with these rules:

  • values are finite real numbers or exact decimal text; complex values are refused;
  • unknown names, the renormalization-scale parameter and a parameter fixed at generation (by fixed_parameters or by the restriction) are refused;
  • an update with one refused entry changes nothing.

Parameters that select a counterterm’s form

A UFO counterterm can have one expression where a parameter is zero and another where it is not (cond(MB, 0, ...), reglog(MB**2/MU_R**2)). An artifact holds the nonzero form. Where that form is not valid, the request is refused with counterterm-parameter-branch, which names the parameters: at generation when the card makes it vanish, when a run-time value makes it vanish, and at a single point when the scale or the precision does (that point then fails and the others are served). The remedy is to fix the parameter at generation, with the line the message gives:

[loop.preparation]
fixed_parameters = { MB = "0", MC = "0" }

To serve both a zero and a nonzero mass, generate two artifacts.

Limits

  • Only the virtual part is computed; the real emission is a tree-level request.
  • No loop diagram is listed: the loops are a recursion.
  • A numerical process-group analysis of a one-loop request is refused (process-group-analysis); permutations and exact flavor members are served (Process grouping).

Every refusal key with its remedy is on Refusals and errors.

See also


Table of contents