Toolbox for Quantum Many-Body Field Theory
Author kunyuan
9 Stars
Updated Last
1 Year Ago
Started In
June 2020

Package QuantumStatistics

Toolbox for numerical experiment on quantum many-body field theory.

Status Coverage Document
Build Status codecov Document


  • DEVELdocumentation of the in-development version.


The package is in development stage. Many components are missing. For now, we have implemented the following utilities:

  • Compact Lehmann representations for imaginary-time/Matsubara frequency Green's function.
  • A general purpose Monte Carlo integrator to calculate Feynman diagrams.
  • Grids to properly handle the discretized imaginary-time and momentum.


Currently, this package is not yet registered. So, Pkg.add("QuantumStatistics") will not work (yet).

There two ways to install this package:

  1. The package can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run:
pkg> add https://github.com/kunyuan/QuantumStatistics.jl
  1. Alternatively, you can run the following command from the Julia REPL:
julia> using Pkg; Pkg.add(PackageSpec(url="https://github.com/kunyuan/QuantumStatistics.jl"))


  1. To develop or modify this package, you need to install this package first, then type ] to enter the Pkg REPL mode and run:
pkg> dev QuantumStatistics

This command will automatically create a copy of the package git repository in at ~/.julia/dev/QuantumStatistics.

  1. To check if the dev package is correctly activated, you may enter the Pkg REPL mode and run,
pkg> st

you should be able to see the QuantumStatistics entry points to the above folder.

  1. You may make modifications to the dev package. When you load the package from somewhere,
using QuantumStatistics

you should be able to see the modifications.

Questions and Contributions

Contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems.