Libraries#

All libraries compute the same IR basis, DLR and sampling points, follow the notation and conventions, and share the backend in sparse-ir-rs. Pick the one for your language.

Python: sparse-ir#

pip install sparse-ir

Julia: SparseIR.jl#

] add SparseIR

Rust: sparse-ir-rs#

[dependencies]
sparse-ir = "0.13"

C and C++#

The C API is the sparse-ir-capi crate of sparse-ir-rs; it builds a shared library (libsparseir) and a C header.

Fortran#

The Fortran bindings call the C API and are part of sparse-ir-rs.

Older libraries#

irbasis, irlib, libsparseir, pysparseir, LibSparseIR.jl, sparse-ir-fortran and the tutorial for sparse-ir v1 are superseded by the libraries above. The SpM-lab home page lists what replaces each of them.