Skip to main content

Sparse-grid tools for Green's function methods in physics

Project description

GitHub license GitHub license

grids codecov

Sparse grid utilities for IR and Chebyshev representations

Essential contents for a temperature-independent sparse grid

  • stats: Bose or Fermi statistics.
  • xgrid: Real space grid points in $x \in (-1, 1)$.
  • ngrid: Frequency space grid points in Matsubara indices $n$, such that $\omega_n = (2n+\zeta)\pi/\beta$.
  • wgrid: Frequency space grid points assuming $\beta=1$.
  • uxl: Transformation matrix from the basis representation l to real space grid points x.
  • ulx: Inverse of uxl.
  • u1l_pos: Basis representation for $x=+1$.
  • u1l_neg: Basis representation for $x=-1$.
  • uwl: Transformation matrix from the basis representation l to frequency space grid points w.
  • ulw: Inverse of uwl.
  • metadata: Group for representation-depend information, for example:
    • For Chebyshev: ncoeff for maximum number of coefficients.
    • For IR: lambda for dimensionless cutoff $\Lambda$, ncoeff for maximum number of coefficients.

Directory structure

  • python/sparse_grid/: python code for generating and parsing sparse grid data.
    • python/sparse_grid/ir/: IR-specific code.
    • python/sparse_grid/chebyshev/: Chebyshev-specific code.
    • python/sparse_grid/repn.py: Common module interface for representations.
    • python/generate.py: Script for generating HDF5 archives.
  • c++/: C++ interface for loading and representing sparse grid data.
    • green/grids/: Public headers.
  • data/: Pre-generated data files.
  • examples: Usage examples.

Dependencies

  • Python:
  • C++:
    • Green/h5pp: for compatibility with h5py
    • Green/ndarrays: for compatibility with numpy.ndarray
    • Green/params: for command-line parameters
    • CMake: Version 3.27 or later

Installation

C++ installation uses CMake in a straightforward manner:

mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=.
make -j 4
make install
make test  # Test the code

The Python package for green-grids can be installed using PyPI:

pip install green-grids

or simply by building from source as:

git clone https://github.com/Green-Phys/green-grids
cd green-grids
pip install .

Acknowledgements

This work is supported by National Science Foundation under the award CSSI-2310582

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

green_grids-0.3.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

green_grids-0.3.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file green_grids-0.3.0.tar.gz.

File metadata

  • Download URL: green_grids-0.3.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for green_grids-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3fca4c1de5964f9c135f2d6179a137fbf08af79e733868df8d380e4cbaeb860d
MD5 adfa92bd99701f34ede092a876ea0efb
BLAKE2b-256 782ce77f8c07ee6ba7b8a40a1385dd6e4746517c1389791f93f15829d9ad754e

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_grids-0.3.0.tar.gz:

Publisher: build_wheels.yaml on Green-Phys/green-grids

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file green_grids-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: green_grids-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for green_grids-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65d6b83ee893dfc842b3705002b02f21f003dfc100cf6c9c44017e91f099bbf0
MD5 8af6265dbaed001624f2dbe29c385d79
BLAKE2b-256 3771f4c9421ca1e9a3a7fe48bee96a9367c288558202473741287996df2ab2cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_grids-0.3.0-py3-none-any.whl:

Publisher: build_wheels.yaml on Green-Phys/green-grids

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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