English

TempLat: a versatile C++ engine for lattice field theories

High Energy Physics - Lattice 2026-07-27 v1 Cosmology and Nongalactic Astrophysics Statistical Mechanics High Energy Physics - Phenomenology

Abstract

We present TempLat, a C++ framework for lattice field theory simulations in arbitrary dimensions. Its symbolic language, built on expression templates, translates mathematical expressions almost verbatim into C++ while compiling to highly optimized kernels, in contexts ranging from classical-statistical to Monte Carlo simulations. TempLat is performance-portable: building on Kokkos, it supports large CPU clusters, as well as NVIDIA and AMD GPUs. Its abstraction of hardware into a device concept makes TempLat extensible to future architectures. We demonstrate excellent strong and weak scaling on both CPUs and GPUs. We also present ParaFaFT, a standalone parallel discrete Fourier transform library supporting arbitrary dimensions on all of the above hardware, and benchmark its scaling. Both are open source and available on GitHub, and power a new release of CosmoLattice, a widely used early-universe simulation library now available on GPUs.

Cite

@article{arxiv.2607.24908,
  title  = {TempLat: a versatile C++ engine for lattice field theories},
  author = {Adrien Florio and Franz R. Sattler},
  journal= {arXiv preprint arXiv:2607.24908},
  year   = {2026}
}

Comments

Open source, 12 pages, 7 figures