ETH Zürich
Department of Physics · Institute for Theoretical Physics
Charalampos Anastasiou  ›  Software  ›  AKV

Open-source software · v1.0

AKV

Exact tensor reduction for loop amplitudes

A self-contained C++/FLINT library that turns loop-amplitude integrands into scalar integrals of integral families, exactly in symbolic dimension: the Anastasiou–Karlen–Vicini tensor reduction (arXiv:2308.14701) at any rank, D-dimensional Dirac algebra, and the family bookkeeping for Kira and FAIR. Written with Claude Code.

kaμ₁⋯kaμᵣ → Σpairings yaj⋯ pjμ · g⊥μν⋯ · W(D−3) Π (k·k)⊥

01

Pipeline

You describe a process once. akvred reduces every integrand term through three layers that share one Frame (external vectors, dot products over your ring, the AKV span, the transverse projector), and aggregates the integrals of the whole amplitude for one IBP run per family.

Input
process.spec + integrand
ring, Gram matrix, polarisation rules, spinor lines, families (Kira yaml); FORM-style terms.
→
Layer 1
tensor
AKV (transverse) or isotropic averaging · any rank · closed-form duals.
→
Layer 2
spinalg
open lines · traces · γ5 (NDR) · massive spinors · normal-ordered basis.
→
Layer 3
families
registry · matcher (before or after layer 1) · toIndex · Kira/FAIR targets.
→
Output
Σ structure × integral × rat
FORM/Maple syntax · per-family target lists · jobs.yaml · .topo.
02

What's in the box

Exact algebra end to end, validated against a FORM implementation.

Any rank, symbolic D

Duals of transverse-metric products from a zonal/Weingarten closed form: only p(n) distinct coefficients instead of (2n−1)!!, rank 30 in seconds. Isotropic (E = 0) and transverse (E = 3) modes, mixed loops.

Off-shell kinematics

Gram matrix and polarisation rules come from the process file. The Gram inverse can be kept as adj(G)·iG so every coefficient stays polynomial.

D-dimensional spinors

Travelling-pair contraction of full-D and transverse index pairs, normal ordering with massless or massive end spinors, D-dim traces, NDR γ5 with chiral projectors.

Families once per process

Kira integralfamilies.yaml import, crossings, a port of the mapfam matcher; families can enter before or after the tensor reduction with identical results.

One IBP run per family

akvred targets collects every integral of the amplitude and writes deduplicated target lists, Kira jobs.yaml and FAIR .topo files.

No CAS dependency

All arithmetic is FLINT. build.sh bundles libflint/gmp/mpfr into ./lib and rpaths them; threads over integrand groups.

03

Quick start

From a fresh build to a two-loop q q̄ → W⁺W⁻ counterterm chunk, checked against FORM.

1 · build & self-check

# C++17 + FLINT 3 (GMP, MPFR)
./build.sh
./test/run_tests.sh   # → ALL TESTS PASSED

# reduce one integrand chunk
bin/akvred chunk --spec examples/qqWW/qqWW.spec \
   --in tests/data/ww/in_E12c1.h --out E12c1.h --threads 8
bin/wwcompare form_E12c1.h E12c1.h   # → EQUAL

2 · the process file

ring      s t mq2 D M iG I gs Cf Ca
gram      0 s/2 (1-t)/2 0 (s+t-mq2)/2 1
ginv      iG
pol       ep2.q1 p1.ep2+p2.ep2
openline  Vbar2 Uspin1 | left p2 0 | right p1 0
traceline Vbar2H Uspin1H | p1 p2 | 1/(2*s)
kirafamily integralfamilies.yaml PL1 p3=q1
crossing  x12 | p1->p2 p2->p1
family    PL1x12 TAG(1,1) | INT2(1,1,P1..P9) | PL1 x12 : P1 .. P9

3 · one Kira run per family over the whole amplitude

bin/akvred targets --spec examples/qqWW/qqWW.spec --out-dir kira out/*.h
# PL1x12: 4108 integrals, top sectors [191,251,...], r=7 s=5  →  kira/PL1x12/{targets,jobs.yaml}
04

Download & cite

v1.0 · release candidate, October 2026

AKV — source release

Download akv-1.0.tar.gz ↓
  • RequiresC++17 · FLINT 3 (GMP, MPFR)
  • PlatformsLinux & macOS
  • LicenseGPL-3.0-or-later
  • DocsTutorial

If AKV is useful in your work, please cite it as

C. Anastasiou, AKV, an implementation of the AKV tensor reduction (arXiv:2308.14701) with an improved treatment of the Weingarten part, people.phys.ethz.ch/~babis/akv.
05

Validation

Every layer is checked against something that shares neither code nor conventions with it.

CheckAgainstResult
q q̄ → W⁺W⁻, two loops73 integrand chunks: diagrams, IR and UV counterterms, PL / NPL / BoxWW×tadpole / vacuum a FORM implementation73/73 equal · CPU 5.1·10³ s vs 4.5·10⁵ s
q q̄ → γγ, two loops466 diagrams (lc, slc, UV) previous releasebyte-identical
family matcher98 propagator sets mapfam.pybyte-identical
families before / after8 chunks in random loop frames each otheridentical
spin layeropen lines, traces, massive spinors, γ5 (NDR) explicit Clifford matrices over Fp, D = 4…7all pass

AI-generated. AKV and this web page were generated entirely with artificial intelligence. There may be unintentional mistakes.