Skip to main content
QUICK REVIEW

[Paper Review] CppTransport: a platform to automate calculation of inflationary correlation functions

David Seery|arXiv (Cornell University)|Aug 31, 2016
Cosmology and Gravitation TheoriesPhysics and Astronomy53 references17 citations
TL;DR

CppTransport is a C++-based computational platform that automates the calculation of inflationary n-point correlation functions—specifically 2- and 3-point functions in field space and for the curvature perturbation ζ—across arbitrary inflationary models with canonical kinetic terms. It uses symbolic computation to derive Feynman rules from a Lagrangian input, compiles efficient C++ code, and integrates the resulting evolution equations numerically, enabling high-precision, tree-level perturbative predictions with minimal user intervention and full observability extraction via automated visualization and data analysis tools.

ABSTRACT

CppTransport is a numerical platform that can automatically generate and solve the evolution equations for the 2- and 3-point correlation functions (in field space and for the curvature perturbation) for any inflationary model with canonical kinetic terms. It makes no approximations beyond the applicability of tree-level perturbation theory. Given an input Lagrangian, CppTransport performs symbolic calculations to determine the 'Feynman rules' of the model and generates efficient C++ to integrate the correlation functions of interest. It includes a visualization suite that automates extraction of observable quantities from the raw n-point functions and generates high quality plots with minimal manual intervention. It is intended to be used as a collaborative platform, promoting the rapid investigation of models and systematizing their comparison with observation. This guide describes how to install and use the system, and illustrates its use through some simple examples.

Motivation & Objective

  • To automate the derivation and numerical integration of inflationary 2- and 3-point correlation functions across arbitrary inflationary models with canonical kinetic terms.
  • To eliminate manual derivation bottlenecks in computing correlation functions by generating symbolic Feynman rules from a user-provided Lagrangian.
  • To streamline the comparison of inflationary models with observational data by automating extraction of observable quantities like fNL and spectral indices.
  • To provide a collaborative, extensible platform that supports high-performance, scalable computation of n-point functions using MPI and checkpointing.
  • To integrate visualization and data analysis pipelines directly into the workflow, reducing post-processing overhead.

Proposed method

  • Symbolic computation of Feynman rules from a user-defined Lagrangian using the GiNaC and CSE (common subexpression elimination) libraries.
  • Automatic code generation of optimized C++ for solving the evolution equations of 2- and 3-point functions in field space and for ζ.
  • Integration of correlation functions using adaptive time-stepping solvers via a modular runtime system built on Boost and MPI.
  • Use of SQLite-based data containers to store and query correlation function outputs with strict consistency checking.
  • Post-integration processing via SQL-based queries and derived product generation (plots, tables, Gantt charts, HTML reports) for performance and observability analysis.
  • Support for multiple mesh configurations (e.g., (k1,k2,k3), Ferguson–Shellard (kt,α,β)) and storage policies to optimize memory and performance.

Experimental results

Research questions

  • RQ1How can the calculation of inflationary 2- and 3-point correlation functions be automated across arbitrary canonical inflationary models?
  • RQ2What is the performance overhead of symbolic derivation and code generation in producing numerically stable, high-precision correlation functions?
  • RQ3How can observables like fNL, spectral indices, and bispectrum shapes be extracted directly from raw n-point functions with minimal manual intervention?
  • RQ4What is the computational cost distribution across different phases of integration, and how can it be visualized and optimized?
  • RQ5How can large-scale, distributed computations be made robust to failure through checkpointing and recovery mechanisms?

Key findings

  • CppTransport successfully automates the derivation and numerical integration of 2- and 3-point correlation functions for any inflationary model with canonical kinetic terms, achieving full consistency with tree-level perturbation theory.
  • The platform reduces the time and error risk associated with manual derivation of evolution equations, enabling rapid model testing and comparison.
  • The use of symbolic computation and C++ code generation results in highly optimized, production-ready integrators that scale efficiently across multiple processors via MPI.
  • Performance analysis via HTML reports and Gantt charts reveals that the majority of integration time is spent on numerical evolution, with minimal overhead from symbolic processing or I/O.
  • The system enables direct extraction of observables such as the reduced bispectrum on equilateral and isosceles configurations, and the fNL amplitude, with quantitative results matching known analytical benchmarks.
  • Checkpointing and recovery mechanisms significantly reduce data loss risk in long-running simulations, ensuring robustness in high-performance computing environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.