Skip to main content

Collection of commonly used Green's functions and utilities

Project description

master

Build status master

Coverage master

Documentation Status master

develop

Build status develop

Coverage develop

Documentation Status

PyPI release conda-forge release DOI Code quality

Collection of commonly used Green’s functions and utilities. The main purpose of this module is to have a tested and thus reliable basis to do numerics. It happened to me too often, that I just made a mistake copying the Green’s function and was then wondering what was wrong with my algorithm. For example, a selection of lattice Green’s functions or rather the corresponding DOSs:

Selection of DOSs

Also have a look at the tutorial to get an idea.

The main use case of GfTool was DMFT and its real space generalization, in particular using CT-QMC algorithms.

Installation

The package is available on PyPI:

$ pip install gftool

For conda users, GfTool is also available on conda-forge

$ conda install -c conda-forge gftool

Alternatively, it can be installed via GitHub. You can install it using

$ pip install https://github.com/DerWeh/gftools/archive/VERSION.zip

where VERSION can be a release (e.g. 0.5.1) or a branch (e.g. develop). (As always, it is not advised to install it into your system Python, consider using pipenv, venv, conda, pyenv, or similar tools.) Of course, you can also clone or fork the project.

If you clone the project, you can locally build the documentation:

$ pip install -r requirements-doc.txt
$ python setup.py build_sphinx

Documentation

The documentation and API is on ReadTheDocs. The documentation of specific branches can also be accessed: master doc, develop doc. There is also a GitHub page: documentation.

Currently, the package’s main content is

gftool
  • collection of non-interacting Green’s functions and spectral functions, see also the lattice submodule.

  • utility functions like Matsubara frequencies and Fermi functions.

  • reliable calculation of particle numbers via Matsubara sums

cpa/beb
  • Single site approximation to disorder

  • diagonal disorder only (CPA) and diagonal and off-diagonal (BEB)

  • average local Green’s function and component Green’s functions

fourier
  • Fourier transforms from Matsubara frequencies to imaginary time and back, including the handling of high-frequencies moments (especially important for transforms from Matsubara to imaginary time)

  • Laplace transform from real times to complex frequencies

matrix
  • helper for Green’s functions in matrix form

pade
  • analytic continuation via the Padé algorithm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gftool-0.11.0.tar.gz (127.1 kB view details)

Uploaded Source

Built Distribution

gftool-0.11.0-py3-none-any.whl (149.5 kB view details)

Uploaded Python 3

File details

Details for the file gftool-0.11.0.tar.gz.

File metadata

  • Download URL: gftool-0.11.0.tar.gz
  • Upload date:
  • Size: 127.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.60.0 importlib-metadata/3.10.1 keyring/23.0.1 rfc3986/1.4.0 colorama/0.4.4 CPython/3.7.3

File hashes

Hashes for gftool-0.11.0.tar.gz
Algorithm Hash digest
SHA256 4f408704f2ea5936cd21cc81651002cc2c1f9b15a89f83a58e89eeaffda3f379
MD5 b2de3cdaf1d18e496b751dcf7afdedb5
BLAKE2b-256 1e33b449783b544ebcbb76260de9f445c2786d52664758fbce286a9197b9dea3

See more details on using hashes here.

File details

Details for the file gftool-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: gftool-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 149.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for gftool-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e310aefa0f5d84f801bfa8b14faefc05a025eb46fd98ead58a13caa5492f9c1b
MD5 daac9b01647e45d9238c3906b03b37ff
BLAKE2b-256 27a5d2912d55b9929f6a926e71adb29ff4903920201f05b876a375371c4279fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page