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)⊥
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.
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.
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}
Download & cite
If AKV is useful in your work, please cite it as
Validation
Every layer is checked against something that shares neither code nor conventions with it.
| Check | Against | Result |
|---|---|---|
| q q̄ → W⁺W⁻, two loops73 integrand chunks: diagrams, IR and UV counterterms, PL / NPL / BoxWW×tadpole / vacuum | a FORM implementation | 73/73 equal · CPU 5.1·10³ s vs 4.5·10⁵ s |
| q q̄ → γγ, two loops466 diagrams (lc, slc, UV) | previous release | byte-identical |
| family matcher98 propagator sets | mapfam.py | byte-identical |
| families before / after8 chunks in random loop frames | each other | identical |
| spin layeropen lines, traces, massive spinors, γ5 (NDR) | explicit Clifford matrices over Fp, D = 4…7 | all pass |