The high-energy physics toolkit

Particle physics.
Tools that work together.

HEPkit brings together a collection of packages for state-of-the-art particle physics. Generate Feynman diagrams, manipulate tensors, compute loop amplitudes, and reduce integrals in one coherent workflow, powered by Symbolica.

From a model to diagramsPython / HEPkit
from symbolica.community import hepkit

# Choose a model and a process.
model = hepkit.Model.qcd()
process = model.process(["g"], ["g"])

# Generate one-loop diagrams.
result = process.generate_diagrams(loops=1)

Shared symbolic expressions. Connected physics tools.

Feynman diagramsTensor & spinor algebraLoop amplitudesIntegration by parts

HEPkit live in your browser

Edit the code and run real particle-physics calculations right here in your browser. No installation needed.

Packages and contributors

The projects behind HEPkit

HEPkit brings together packages for Feynman diagrams, tensor algebra, and loop integrals.

The computer algebra foundation

Symbolica

The shared engine for symbolic algebra and numerical computation. It connects the packages below and makes them accessible from Python.

Package authorsBen Ruijl
Models, diagrams & amplitudes

Gammaloop

Particle models and UFO import, Feynman-diagram generation, amplitudes, kinematics, Cross-Free Families, and covariant tensor reduction.

Package authorsValentin Hirschi, Lucien Huber, Mathijs Fraaije, Zeno Capatti
Tensor algebra

Spenso

Abstract-index tensors, dense and sparse tensor data, automatic index matching, and tensor-network contractions.

Package authorsLucien Huber
Tensor identities

Idenso

Symbolic identities and simplification for Dirac matrices, color structures, metrics, and Levi-Civita tensors. Available through the shared tensor interface.

Package authorsLucien Huber, Ben Ruijl
Graph structure & drawing

Linnet

Half-edge graphs, subgraph operations, topology algorithms, layout, and diagram drawing for physics calculations.

Package authorsLucien Huber
Graph generation

Graphica

Generation, manipulation, and canonization of graphs with multiple edges and mixed directed and undirected connections.

Package authorsBen Ruijl
Integration-by-parts reduction

RustRed

Native parametric and Laporta IBP reduction, connected to HEPkit through a shared integral-family representation.

Package authorsValentin Hirschi
Symbolic one-loop reduction

one-loop-reduce

Reduces one-loop integral families and scalar-product numerators to scalar master integrals, keeping the spacetime dimension symbolic.

Package authorsElijah Cavan
Numerical one-loop integrals

OneLoopMaster

Symbolica expressions and native numerical evaluation for scalar tadpole, bubble, triangle, and box integrals. Based on OneLOop by Andreas van Hameren.

Package authorsValentin Hirschi
Vacuum integrals

Vakint

Canonical matching, tensor reduction, and analytic or numerical evaluation of single-scale vacuum integrals.

Package authorsValentin Hirschi, Ben Ruijl
Auxiliary mass flowExperimental

RustFlow

Numerical evaluation of Feynman integrals using auxiliary mass flow and differential-equation transport in physical kinematics. Built on Symbolica and RustRed, with methods from AMFlow and DiffExp.

Package authorsValentin Hirschi, Ben Ruijl
Hyperlogarithmic integrationExperimental

Hyperbolica

Exact integration with hyperlogarithms, multiple polylogarithms, and linear-reducibility analysis. A Symbolica-based Rust port of HyperFLINT.

Package authorsBen Ruijl
Sector decompositionExperimental

FastSecDec

Sector decomposition and numerical integration of Feynman integrals, including tensor numerators. Uses quasi-Monte Carlo and Havana integration with HEPkit’s graphs and symbolic expressions.

Package authorsValentin Hirschi

Python API reference

HEPkit documentation

Explore HEPkit’s Python API, from particle models and amplitudes to tensor algebra and integral reduction.

Run this notebook at home

Loading notebook…

The full catalog of software and method references for this project. Cite the entries relevant to your calculation.