Skip to main content

GitHub license GitHub license

grids codecov

 █▀▀█ █▀▀█ █▀▀ █▀▀ █▀▀▄
 █ ▄▄ █▄▄▀ █▀▀ █▀▀ █  █
 █▄▄█ ▀ ▀▀ ▀▀▀ ▀▀▀ ▀  ▀

 █▀▀█ █▀▀█ █▀▀▄ ▀▀█▀▀  ▀  █▀▀▄ █  █ █▀▀█ ▀▀█▀▀  ▀  █▀▀█ █▀▀▄
 █    █  █ █  █   █   ▀█▀ █  █ █  █ █▄▄█   █   ▀█▀ █  █ █  █
 █▄▄█ ▀▀▀▀ ▀  ▀   ▀   ▀▀▀ ▀  ▀  ▀▀▀ ▀  ▀   ▀   ▀▀▀ ▀▀▀▀ ▀  ▀

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 results
  • grid_file -- name of the grid file that was used to obtain results
  • input_file -- name of the file that contains imaginary time data
  • output_file -- name of the file to store results of the continuation
  • group -- name of the group that contains data and mesh datasets with imaginary time data and grid
  • e_min -- lowest frequency on the real axis
  • e_max -- largest frequency on the real axis
  • n_omega -- number of frequency points on the real axis
  • eta -- broadening parameter
  • kind -- type of continuation to be used (current version only supports Nevanlinna)

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

Download files

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

Source Distribution

green_ac-0.2.8.tar.gz (135.8 kB view details)

Uploaded Source

Built Distributions

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

green_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (437.9 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl (358.9 kB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

green_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (437.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl (358.7 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

green_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (437.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl (358.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

green_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (437.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl (356.9 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

green_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (436.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl (355.8 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

green_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (436.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl (355.9 kB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

green_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (436.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

green_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl (355.7 kB view details)

Uploaded CPython 3.8macOS 14.0+ ARM64

File details

Details for the file green_ac-0.2.8.tar.gz.

File metadata

  • Download URL: green_ac-0.2.8.tar.gz
  • Upload date:
  • Size: 135.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for green_ac-0.2.8.tar.gz
Algorithm Hash digest
SHA256 ffb940d52d1d0524084adb2ad6c1d6af595837088cebeb739eb9fd859a7f95c7
MD5 5b17aa93e72e2baef2ce313f23d3342b
BLAKE2b-256 9c4252a4c1283786cf82905d9420e3076b760eb3e36dc27a83ae7b3d9151c4ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8.tar.gz:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed7a9fcbf1eae4f8f77116540290fe41b9b4ae4217a90d28b965652ce4003336
MD5 568d02170da4bd6855ddc31bff6a24ed
BLAKE2b-256 37621718139cc106f047708ccea2d842ea6129b4f265eef935df7f84e20a06f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c81122d30473c95b0e79a9baec9201a04f7f81c7a712b62ac927cff19d89bbf6
MD5 0a4312e4f6f820661b80039ca9fb9b75
BLAKE2b-256 ee6f80324cc469d2627896fd19b21eb8c26e53ac6d9b8f1b4808338be08f0b26

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp314-cp314-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c95541569031a7d9321070749822971a06efd5cf7c42a68798bf2f36e69e26ac
MD5 fb7665a2f225d473384193f84050cc66
BLAKE2b-256 3000d676b38b01b0a75c63f983cccba7a936b21d84c07e4399bde30563462782

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 36e1c2aea22c9af01e6548e2d49ad88536634c6499427f21954fc51ab3f090d4
MD5 42a600ac97418414d92a08d1f6161c79
BLAKE2b-256 86ae607e4c323edb7887c9be37e8fd497788d28de117368f1d05122d98e68896

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp313-cp313-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f795bb94165f86f833658ec721482d2f8cd20466849108e6fe8fc54f51a049c1
MD5 fb9a157e18a8363e75fea14d154f0770
BLAKE2b-256 91628ff5f1f9bb83d45a47293f3e29b387edd48f4bf7ff9fe27a50e4f6778663

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ae9f7d5725cdda3cef55962e3e47d9f8da23974d7f36bb4709a248beb8bdb053
MD5 34b928610d5c59f7a99315cf84654170
BLAKE2b-256 1d35d025a1113a9283e52579ac5e124735d04d9ad0ab21d1f3826b1e357e092a

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c163bba432031ab42148145f93e5e87751305c324b0272b4d38ac74a2bdd6a05
MD5 10bd368dbccc831d9bf0ac08c3e8fbd3
BLAKE2b-256 359a631766dfc29a2482af514e3cad5fea662f85f6e383464138f32a5d2b8973

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9c22980f5d43456e2498e55eec6ef3baf1a7dfcf1c3dfaf6bee04792fc854643
MD5 aa896a2370939804098b09d407104efb
BLAKE2b-256 6d39ee0bed5c678898424ff628c86a98adaec9d2891613c19374c06b19e0f2d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp311-cp311-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 548c1bbcb3d994460160e53720c3b0c9af28ef4516263fe05c8c2e5574dc72ab
MD5 b17002ca9b3c75ee7bd76f8ae2f96c66
BLAKE2b-256 3d70c3d5135d88aa5bd6d48e9ff97e73ed183a20b11e5d8e0c3f4bcae5c509a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f6893b67ece27ead991a9f48fc91322af3b16eece439d73ed751ebe5316a4c8c
MD5 6fdc3116c3c92354b89b97a0fbab3e63
BLAKE2b-256 6a675acfe311d53f5a5d2839b87c8c7994ec429a9ff4a54327616c0593229413

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp310-cp310-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bdc25945c825a0c3aa28b68786be1acae2d9e10fab70fdb0fca3783c0f6e719a
MD5 90932b73a901c0237967b73e027b0b9d
BLAKE2b-256 96c66290fc35e75508867b5c151e94183675489d92cdb556af24bf54bc2af267

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 be0e09b1fec36dcd0abb1e5a2ed6756e66b11fb494431b8b08617e1cd61c76d1
MD5 126bb648b54eca96e1d6f90f51b0af79
BLAKE2b-256 e7ffd8b2910248c46bdd79c1903c9ebd0ff7483b7b8b01e1c7c734fe60b56e50

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp39-cp39-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 77aa3ef465b5e6f28e8a8812354fecdea0b8aed484e9438e81395608747dacff
MD5 85409452d6159f8704a0295ca10d12ac
BLAKE2b-256 56b69f0523cef5462d6fec24ecde464b123e6e23f7017d56b941b15d4fb6ee75

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for green_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4f9c6f53a5634b00a843eeea022e0a5ffb4f97a942033d6d485339cdb78ae878
MD5 d9530f13302e9d7bdeb07065f24aead1
BLAKE2b-256 622dbe7dea85fabd7e6892b0d506879a9f785d833098cd81786e263169b6fd89

See more details on using hashes here.

Provenance

The following attestation bundles were made for green_ac-0.2.8-cp38-cp38-macosx_14_0_arm64.whl:

Publisher: build_wheels.yml on Green-Phys/green-ac

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

Release history Release notifications | RSS feed

This release

0.2.8 This release

15 files

0.2.7

13 files

0.2.6

11 files

0.2.5

16 files

0.2.4

16 files

Supported by

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