█▀▀█ █▀▀█ █▀▀ █▀▀ █▀▀▄
█ ▄▄ █▄▄▀ █▀▀ █▀▀ █ █
█▄▄█ ▀ ▀▀ ▀▀▀ ▀▀▀ ▀ ▀
█▀▀█ █▀▀█ █▀▀▄ ▀▀█▀▀ ▀ █▀▀▄ █ █ █▀▀█ ▀▀█▀▀ ▀ █▀▀█ █▀▀▄
█ █ █ █ █ █ ▀█▀ █ █ █ █ █▄▄█ █ ▀█▀ █ █ █ █
█▄▄█ ▀▀▀▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀ ▀
Green/Continuation is an Analytical continuation toolkit for Green Software Package
Installation
Green/Continuation comes in two forms
- C++ application
- Python package
Dependencies
Green/Continuation has the following required external dependencies
- HDF5 library version >= 1.10.2
- Message Passing Interface >= 3.1 (for C++ application)
- Eigen3 library >= 3.4.0
- GNU Multiprecision library
- pybind11 (optional to build python wrapper)
To build Green/Continuation CMake version 3.18 or above is required
Build and Install C++ application
The following example will build, test and install Green/Continuation to /path/to/weakcoupling/install/dir directory.
$ git clone https://github.com/Green-Phys/green-ac
$ cd green-ac
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/path/to/install/dir ..
$ make
$ make test
$ make install
Installation of Python package
We provide pre-built binaries for major Linux distributions and recent MacOS version via pip.
For installation using pip simply type pip install green-ac.
If pre-built binaries can not be used, package will be built from sources.
Usage
C++ application
After the Green/Continuation is built and installed, spectral function could be obtained by calling
<install dir>/bin/ac.exe --BETA <Inverse temperature> --grid_file <grid file> \
--input_file <input file> --output_file <output file> --group <HDF5 group with data> \
--e_min -5.0 --e_max 5.0 --n_omega 4000 --eta 0.01 \
--kind Nevanlinna
BETA-- the inverse temperature that was used to obtain resultsgrid_file-- name of the grid file that was used to obtain resultsinput_file-- name of the file that contains imaginary time dataoutput_file-- name of the file to store results of the continuationgroup-- name of the group that containsdataandmeshdatasets with imaginary time data and gride_min-- lowest frequency on the real axise_max-- largest frequency on the real axisn_omega-- number of frequency points on the real axiseta-- broadening parameterkind-- type of continuation to be used (current version only supportsNevanlinna)
After the completetion, results will be stored in group HDF5 group in the output_file file.
Python
In addition to C++ application, Green/Continuation provides a convinient Python package that can work directly with
numpy arrays. It supports two types of parallelism, using ProcessPoolExecutor from concurrent.futures and
MPI parallelization using mpi4py library.
To use Green/Continuation simply import it in your script as
import green_ac
and call solve function with the following parameters:
- Type of the continuation (currently we only provide
Nevanlinna) - Matsubara frequency grid
- Real frequency grid
- Data in Matsubara frequency domain
- Precision
Here is an example how to obtain real frequency Green's function for a simple two-pole non-interacting Green's function with precision at least 512 bits:
imgrid = (2*np.linspace(-50,49,100) + 1) * 1.j *np.pi/ 2
grid = np.linspace(-2,2,1001) + 0.01j
data = 0.5*(1/(imgrid + 0.5) + 1/(imgrid - 0.5))
data_out = green_ac.solve("Nevanlinna", imgrid, grid, data, 512)
Here we have 100 positive and negative Matsubara frequencies, define real frequency grid to have 1000 points and to be from -2 to 2 with broadening parameter 0.01,
We define Green's function on Matsubara grid with poles at -0.5 and 0.5. Real frequency data will be stored in data_out array.
Acknowledgements
This work is supported by National Science Foundation under the award OCA-2310582
Metadata
Release files for green-ac 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| green_ac-0.2.8.tar.gz | 135.8 kB | Details |
Built distributions (wheels)
Total release size: 5.7 MB
Release files / green_ac-0.2.8.tar.gz
| Download URL | green_ac-0.2.8.tar.gz |
|---|---|
| Size | 135.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffb940d52d1d0524084adb2ad6c1d6af595837088cebeb739eb9fd859a7f95c7
|
|
BLAKE2b-256 checksum How to use checksums |
9c4252a4c1283786cf82905d9420e3076b760eb3e36dc27a83ae7b3d9151c4ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 437.9 kB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed7a9fcbf1eae4f8f77116540290fe41b9b4ae4217a90d28b965652ce4003336
|
|
BLAKE2b-256 checksum How to use checksums |
37621718139cc106f047708ccea2d842ea6129b4f265eef935df7f84e20a06f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl |
|---|---|
| Size | 358.9 kB |
| Tags | CPython 3.14 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c81122d30473c95b0e79a9baec9201a04f7f81c7a712b62ac927cff19d89bbf6
|
|
BLAKE2b-256 checksum How to use checksums |
ee6f80324cc469d2627896fd19b21eb8c26e53ac6d9b8f1b4808338be08f0b26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 437.8 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c95541569031a7d9321070749822971a06efd5cf7c42a68798bf2f36e69e26ac
|
|
BLAKE2b-256 checksum How to use checksums |
3000d676b38b01b0a75c63f983cccba7a936b21d84c07e4399bde30563462782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 358.7 kB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
36e1c2aea22c9af01e6548e2d49ad88536634c6499427f21954fc51ab3f090d4
|
|
BLAKE2b-256 checksum How to use checksums |
86ae607e4c323edb7887c9be37e8fd497788d28de117368f1d05122d98e68896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 437.8 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f795bb94165f86f833658ec721482d2f8cd20466849108e6fe8fc54f51a049c1
|
|
BLAKE2b-256 checksum How to use checksums |
91628ff5f1f9bb83d45a47293f3e29b387edd48f4bf7ff9fe27a50e4f6778663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 358.7 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ae9f7d5725cdda3cef55962e3e47d9f8da23974d7f36bb4709a248beb8bdb053
|
|
BLAKE2b-256 checksum How to use checksums |
1d35d025a1113a9283e52579ac5e124735d04d9ad0ab21d1f3826b1e357e092a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 437.7 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c163bba432031ab42148145f93e5e87751305c324b0272b4d38ac74a2bdd6a05
|
|
BLAKE2b-256 checksum How to use checksums |
359a631766dfc29a2482af514e3cad5fea662f85f6e383464138f32a5d2b8973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 356.9 kB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c22980f5d43456e2498e55eec6ef3baf1a7dfcf1c3dfaf6bee04792fc854643
|
|
BLAKE2b-256 checksum How to use checksums |
6d39ee0bed5c678898424ff628c86a98adaec9d2891613c19374c06b19e0f2d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 436.8 kB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
548c1bbcb3d994460160e53720c3b0c9af28ef4516263fe05c8c2e5574dc72ab
|
|
BLAKE2b-256 checksum How to use checksums |
3d70c3d5135d88aa5bd6d48e9ff97e73ed183a20b11e5d8e0c3f4bcae5c509a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 355.8 kB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f6893b67ece27ead991a9f48fc91322af3b16eece439d73ed751ebe5316a4c8c
|
|
BLAKE2b-256 checksum How to use checksums |
6a675acfe311d53f5a5d2839b87c8c7994ec429a9ff4a54327616c0593229413
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 436.9 kB |
| Tags | CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
bdc25945c825a0c3aa28b68786be1acae2d9e10fab70fdb0fca3783c0f6e719a
|
|
BLAKE2b-256 checksum How to use checksums |
96c66290fc35e75508867b5c151e94183675489d92cdb556af24bf54bc2af267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl |
|---|---|
| Size | 355.9 kB |
| Tags | CPython 3.9 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
be0e09b1fec36dcd0abb1e5a2ed6756e66b11fb494431b8b08617e1cd61c76d1
|
|
BLAKE2b-256 checksum How to use checksums |
e7ffd8b2910248c46bdd79c1903c9ebd0ff7483b7b8b01e1c7c734fe60b56e50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | green_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 436.7 kB |
| Tags | CPython 3.8 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
77aa3ef465b5e6f28e8a8812354fecdea0b8aed484e9438e81395608747dacff
|
|
BLAKE2b-256 checksum How to use checksums |
56b69f0523cef5462d6fec24ecde464b123e6e23f7017d56b941b15d4fb6ee75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency logRelease files / green_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl
| Download URL | green_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl |
|---|---|
| Size | 355.7 kB |
| Tags | CPython 3.8 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4f9c6f53a5634b00a843eeea022e0a5ffb4f97a942033d6d485339cdb78ae878
|
|
BLAKE2b-256 checksum How to use checksums |
622dbe7dea85fabd7e6892b0d506879a9f785d833098cd81786e263169b6fd89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.
Transparency log