QMCkl

Quantum Monte Carlo Kernel Library

v1.1.0 BSD 3-Clause C & Fortran 90 no JavaScript

The domain of quantum chemistry needs a library in which the main kernels of Quantum Monte Carlo (QMC) methods are implemented. QMCkl exposes the main algorithms in a simple language and provides a standard API and tests to enable the development of high-performance QMC implementations taking advantage of modern hardware.

Getting started

QMCkl is built with GNU Autotools. The C compiler is selected with CC, the Fortran compiler with FC; compiler options go in CFLAGS and FCFLAGS. Reading wave function data through TREXIO is enabled by default (--without-trexio to disable).

Shell
# released tarball
tar -xzf qmckl-1.1.0.tgz && cd qmckl-1.1.0
./configure --prefix=/usr/local
make && make check && make install

Developers working from the git repository also need Emacs ≥ 26 and Autotools, because the source files are generated from org-mode files:

Shell
git clone https://github.com/TREX-CoE/qmckl.git
cd qmckl
./autogen.sh
./configure && make && make check && make install

Documentation

The reference documentation follows the public API of the library. Equations are rendered as native MathML and code is highlighted at build time; the pages contain no JavaScript.

  • Introduction

    Installing QMCkl, using it from C and Fortran, and the org-mode development workflow.

  • Context

    The calculation context: precision, particle counts and orbital data.

  • Error handling

    Exit codes and error-reporting conventions.

  • BLAS functions

    Matrix operations exposed by QMCkl (dot products, matrix products, inverses).

  • Memory management

    Allocation and deallocation of the library data structures.

  • Numerical precision

    Single- and double-precision support.

  • Point

    Coordinate points and their manipulation.

  • Nucleus

    Nuclei: charges, positions, and the nuclear–nuclear interaction.

  • Electrons

    Electrons and spins; electron–electron and electron–nucleus interactions.

  • Inter-particle distances

    Pair distances and the smooth correlation functions built from them.

  • Atomic Orbitals

    Gaussian and Slater atomic orbitals: values, gradients and Laplacians.

  • Molecular Orbitals

    Molecular orbital expansions and the cusp-corrected orbitals.

  • CHAMP Jastrow Factor

    The CHAMP Jastrow functional form and all its derivatives.

  • CHAMP Jastrow Factor Single

    The single-precision (fast) Jastrow variant.

  • Forces

    Spatial derivatives (forces) of the wave function factors.

  • TREXIO I/O library

    Reading wave function data from TREXIO files.

  • Data for Tests

    Reference data used by the test suite.

  • Verificarlo CI

    Probabilistic floating-point error detection in continuous integration.

  • Code examples

    Complete usage examples in C and Fortran.