mqcomplab / Fanpy

Fanpy is a free and open-source Python library for developing and testing multideterminant wavefunctions and related ab initio methods in electronic structure theory.
Other
8 stars 4 forks source link

Fanpy: A Python library for prototyping multideterminant methods in ab initio Electronic Structure Calculations

Web: Miranda Quintana Group

Fanpy is a free, open-source, and cross-platform Python 3 library designed for ab initio electronic structure calculations. The Fanpy implementation is based on the mathematical framework called Flexible Ansatz for N-electron Configuration Interaction (FANCI). The adoption of the FANCI framework gives a highly modular structure to Fanpy resulting in 5 modules - Hamiltonian, Wavefunction, Objective, Solver, and Tools. The modular structure offers two greatest virtues, The first is its 'sandbox-like' ability to handle any combinations of wavefunction ansatz and different methods, and the second is the ease of transition from the formal conception of a method to its working implementation.

1. Wavefunctions

The following wavefunctions are already implemented in Fanpy.

Configuration Interaction

Coupled-Cluster

Geminal wavefunctions

Coupled Cluster-Inspired Geminal Wavefunctions

2. Hamiltonians

The following Hamiltonians are implemented:
Electronic Hamiltonian - restricted, unrestricted, and generalized basis

3. Objective

The Objective module combines the wavefunction and Hamiltonian to represent the following forms of Schrodinger Equations.

4. Solver

The Solver module supports the following optimizers to optimize/solve the equations from the Objective module.

5. Tool

The Tool module provides different utility functions used throughout the Fanpy package—for example, tools for generating and manipulating Slater determinants.

Publications

For detailed information about the mathematical formulation, please take a look at the FANCI publication. The official notes of the Fanpy library can be found in this article.