Second-order perturbation (Fortran)#

Author: Hitoshi Mori

How to use sparse-ir-fortran#

Please refer to README of sparse-ir-fortran for how to link the library to your program and a list of functions.

Building the tutorial code#

First, please download the source code 2nd_order_pert_theory.f90.

We can build the program as follows:

Running the code#

Running the program, we obtain the following output:

We can plot the result using gnuplot as follows: