Skip to content

max entropy method in python, covariance matrix is diagonalized and the Green function and kernel matrix are rotated into the eigen-space.

Notifications You must be signed in to change notification settings

PrimerLi/maxEntLambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

maxEntLambda

max entropy method in python, covariance matrix is diagonalized and the Green function and kernel matrix are rotated into the eigen-space.

Guidelines about how to run the program.

  1. What does the program accomplish?

    The program takes as input the Matsubara imaginary frequency Green's function and the covariance matrix, and prints out the spectral function of the corresponding Green's function.

  2. How to run the program?

    First, make sure that the required input files are present. The program needs three input files. File 1 should contain the real part of the Matsubara Green's function, file 2 should contain the imaginary part of the Matsubara Green's function, and file 3 should contain the real part of the covariance matrix. The imaginary part of the covariance matrix is not needed, as explained the algorithm.pdf.

    Second, run the command "python readmc.py" in your terminal. This step reads in the three input files, and generates the files that will be used in step 3.

    Third, run the command "python main.py (optional parameters)" in your terminal. You can specifiy how to anneal the result through the optional parameters, or you can use the default values set in the program. The final spectral function is contained in the file A_initial.txt. You can delete all the other intermediate txt files that are generated as the program runs.

See the link below for a detailed program documentation (in Chinese):

https://zhuanlan.zhihu.com/p/366209195

See this link for a detailed program documentation in English:

https://github.com/PrimerLi/maxEntLambda/blob/master/algorithm.pdf

A formal presentation of this algorithm can be found here:

https://arxiv.org/abs/1810.06147

About

max entropy method in python, covariance matrix is diagonalized and the Green function and kernel matrix are rotated into the eigen-space.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages