[Paper Review] ana_cont: Python package for analytic continuation
This paper presents ana_cont, a Python package for analytic continuation of fermionic and bosonic Green's functions using Padé approximants and the maximum entropy method. It enables robust, flexible, and user-friendly continuation from imaginary time or Matsubara frequencies to real frequencies, with both GUI and programmatic access, supporting reproducible workflows and hyperparameter optimization for accurate spectral function reconstruction.
We present the Python package ana_cont for the analytic continuation of fermionic and bosonic many-body Green's functions by means of either the Pade approximants or the maximum entropy method. The determination of hyperparameters and the implementation are described in detail. The code is publicly available on GitHub, where also documentation and learning resources are provided.
Motivation & Objective
- To provide a reliable, open-source tool for analytic continuation of quantum many-body correlation functions from imaginary time or Matsubara frequencies to real frequencies.
- To implement both Padé approximation and maximum entropy methods with robust hyperparameter optimization and numerical stability.
- To support both non-experts (via GUI) and advanced users (via library interface) in performing analytic continuation for fermionic and bosonic systems.
- To enable reproducible and extensible workflows through documented tutorials, test cases, and integration with scientific Python stacks.
- To facilitate accurate spectral function reconstruction by addressing noise sensitivity and parameter dependence in analytic continuation.
Proposed method
- The package implements Padé interpolation using Cython-compiled core functions for efficient rational approximation of Green's functions in the complex plane.
- For maximum entropy, it applies Bayesian inference with a default model and hyperparameters α and b to optimize the posterior probability of the spectral function.
- The method uses the principle of maximum entropy to select the most probable spectral function consistent with the noisy Matsubara data.
- It incorporates a pre-blurring procedure to improve stability in the maximum entropy method, particularly for noisy or ill-conditioned data.
- The code supports both fermionic and bosonic Green's functions, with dedicated handling of Matsubara frequencies and imaginary-time correlation functions.
- Users can access the package via a graphical user interface for quick analysis or programmatically through a Python library for custom workflows.
Experimental results
Research questions
- RQ1How can analytic continuation of quantum many-body Green's functions be made both accurate and accessible to non-experts?
- RQ2What are the optimal hyperparameters (α, b) for the maximum entropy method in the presence of noise and finite data resolution?
- RQ3How does the Padé approximation compare to maximum entropy in reconstructing spectral functions from noisy Matsubara data?
- RQ4To what extent does pre-blurring improve the stability and accuracy of maximum entropy analytic continuation?
- RQ5Can a unified, extensible Python package be developed that supports both fermionic and bosonic systems with consistent, documented workflows?
Key findings
- The ana_cont package successfully implements both Padé and maximum entropy methods for analytic continuation with high numerical stability and reproducibility.
- Optimal hyperparameters α and b for the maximum entropy method were determined through systematic χ² minimization, with results visualized in the paper’s figures.
- Pre-blurring significantly improves the convergence and robustness of the maximum entropy method, especially for noisy data, as demonstrated in the SrVO₃ case study.
- The GUI interface enables non-experts to perform analytic continuation with minimal code, while the library interface allows advanced users to customize workflows.
- The package supports both fermionic and bosonic Green’s functions, with full compatibility with standard quantum many-body data formats and numerical methods.
- Test cases and tutorials, including a detailed example for SrVO₃, demonstrate the package’s ability to recover known spectral features from noisy Matsubara data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.