NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Updated Core Libraries of the ALPS Project

Markus Wallerberger, Sergei Iskakov, Alexander Gaenko, Joseph Kleinhenz, Igor Krivenko, Ryan M. Levy, Jia Li, Hiroshi Shinaoka, Synge Todo, Tianran Chen, Xi Chen, J. P. F. LeBlanc, Joseph E. Paki, Hanna Terletska, Matthias Troyer, Emanuel Gull · DOI

Abstract

The open source ALPS (Algorithms and Libraries for Physics Simulations) project provides a collection of physics libraries and applications, with a focus on simulations of lattice models and strongly correlated electron systems. The libraries provide a convenient set of well-documented and reusable components for developing condensed matter physics simulation codes, and the applications strive to make commonly used and proven computational algorithms available to a non-expert community. In this paper we present an update of the core ALPS libraries. We present in particular new Monte Carlo libraries and new Green's function libraries.

Introduction

Simulating strongly correlated electron systems and lattice models is a cornerstone of modern condensed matter physics, but it is computationally grueling. Researchers often face a "build vs. buy" dilemma: write custom, highly optimized code from scratch (risking bugs and poor documentation) or use existing libraries that might have significant performance overhead or rigid interfaces. The ALPS project aims to solve this by providing a "standard library" for physics simulations. This update specifically addresses the need for more efficient statistical analysis in Monte Carlo simulations and a more versatile way to handle Green’s functions—mathematical tools used to describe the behavior of particles in a many-body system.

The ALEA Statistics Library

The authors introduced a major overhaul to the ALPS core with the ALEA library. This next-generation statistics module replaces the older accumulators framework with several key technical improvements:

  • Linear Scaling: It implements binning algorithms that scale as $O(N)$ rather than $O(N \log N)$, which is critical for long-running simulations with massive datasets.
  • High-Performance Linear Algebra: It leverages the Eigen C++ library for vector-valued measurements.
  • Memory Optimization: A new finalize() semantic allows the library to repurpose internal accumulation buffers into result objects in-place, avoiding costly data duplication.

The Green’s Function Library

The Green’s function library was rewritten to be faster and more type-safe. It uses a central gf_base class that can be parameterized by storage type and various "meshes" (grids representing time, frequency, or momentum). This allows researchers to define multi-dimensional Green’s functions of any dimension with a consistent interface.

The architecture of the new Green's function library based on gf_base.

Key Results and Performance Benchmarks

The primary result of this update is the shift to linear $O(N)$ scaling for full and logarithmic binning. In benchmarks comparing the CPU time required to accumulate $N$ data points of a random vector, the CPU time per measurement for ALEA remains flat as the number of samples ($N$) increases. In contrast, the legacy library shows a clear upward trend consistent with $O(N \log N)$ complexity.

Performance scaling comparison between the new ALEA implementation and the legacy ALPS framework.

Beyond raw speed, ALEA introduces native support for complex random variables and built-in support for statistical hypothesis testing (Hotelling’s $T^2$ test). Instead of researchers comparing two simulation results by visual inspection, the library provides a formal $p$-value to determine if two stochastic results are in agreement.

Limitations and Future Work

While the current release offers significant improvements, some constraints remain. Index slicing in the Green’s function library is currently only supported over the leading indices. Furthermore, while the library supports Jackknife for non-linear uncertainty propagation, other common strategies like sampling_prop and bootstrap_prop are planned for future additions. The library now requires C++11 or later, reflecting modern software standards for high-performance computing.

Summary updated

BibTeX
@article{wallerberger2017updated,
  author = {Markus Wallerberger and Sergei Iskakov and Alexander Gaenko and Joseph Kleinhenz and Igor Krivenko and Ryan M. Levy and Jia Li and Hiroshi Shinaoka and Synge Todo and Tianran Chen and Xi Chen and J. P. F. LeBlanc and Joseph E. Paki and Hanna Terletska and Matthias Troyer and Emanuel Gull},
  title = {{Updated Core Libraries of the ALPS Project}},
  journal = {Comput. Phys. Commun.},
  year = {2017},
  doi = {10.1016/j.cpc.2016.12.009},
}
Figure