Sparse-grid tools for Green's function methods in physics
Project description
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 representationlto real space grid pointsx.ulx: Inverse ofuxl.u1l_pos: Basis representation for $x=+1$.u1l_neg: Basis representation for $x=-1$.uwl: Transformation matrix from the basis representationlto frequency space grid pointsw.ulw: Inverse ofuwl.metadata: Group for representation-depend information, for example:- For Chebyshev:
ncoefffor maximum number of coefficients. - For IR:
lambdafor dimensionless cutoff $\Lambda$,ncoefffor maximum number of coefficients.
- For Chebyshev:
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:
sparse-irnumpy,scipy,h5py, andmpmath.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fca4c1de5964f9c135f2d6179a137fbf08af79e733868df8d380e4cbaeb860d
|
|
| MD5 |
adfa92bd99701f34ede092a876ea0efb
|
|
| BLAKE2b-256 |
782ce77f8c07ee6ba7b8a40a1385dd6e4746517c1389791f93f15829d9ad754e
|
Provenance
The following attestation bundles were made for green_grids-0.3.0.tar.gz:
Publisher:
build_wheels.yaml on Green-Phys/green-grids
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
green_grids-0.3.0.tar.gz -
Subject digest:
3fca4c1de5964f9c135f2d6179a137fbf08af79e733868df8d380e4cbaeb860d - Sigstore transparency entry: 953262161
- Sigstore integration time:
-
Permalink:
Green-Phys/green-grids@a5846c44010a3b58528c81daa17a42e71b338c94 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Green-Phys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@a5846c44010a3b58528c81daa17a42e71b338c94 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65d6b83ee893dfc842b3705002b02f21f003dfc100cf6c9c44017e91f099bbf0
|
|
| MD5 |
8af6265dbaed001624f2dbe29c385d79
|
|
| BLAKE2b-256 |
3771f4c9421ca1e9a3a7fe48bee96a9367c288558202473741287996df2ab2cb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
green_grids-0.3.0-py3-none-any.whl -
Subject digest:
65d6b83ee893dfc842b3705002b02f21f003dfc100cf6c9c44017e91f099bbf0 - Sigstore transparency entry: 953262164
- Sigstore integration time:
-
Permalink:
Green-Phys/green-grids@a5846c44010a3b58528c81daa17a42e71b338c94 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Green-Phys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@a5846c44010a3b58528c81daa17a42e71b338c94 -
Trigger Event:
push
-
Statement type: