Skip to main content

Exact diagonalization tools for lattice gauge theories and quantum many-body Hamiltonians

Project description

edlgt

Exact diagonalization tools for lattice gauge theories and quantum many-body Hamiltonians.

Documentation: https://ed-su2.readthedocs.io/en/latest/

pip install edlgt and import edlgt

Supported Python: >=3.10

Installation

PyPI (recommended for users)

pip install edlgt

Optional Simsio workflows (installs simsio from GitHub):

pip install "edlgt[simsio]"

From source (development)

git clone --recursive https://github.com/gcataldi96/ed-lgt.git
cd ed-lgt
pip install -e .

Development tools:

pip install -e ".[dev]"

Development tools + Simsio:

pip install -e ".[dev,simsio]"

Quick Start

Check the installation:

python -c "import edlgt; print(edlgt.__version__)"

The best starting point is to run one of the example scripts and adapt it to your model:

python examples/example_QED_static.py
python examples/example_QED_dynamics.py
python examples/example_SU2_static.py
python examples/example_SU2_dynamics.py

Minimal import example:

import edlgt
from edlgt.models import QED_Model, SU2_Model
from edlgt.modeling import diagonalize_density_matrix

Optional Simsio Support

simsio is not currently available on PyPI, so the simsio extra installs it from GitHub.

If you prefer to install it manually, use one of:

pip install -r requirements-simsio.txt
pip install "git+https://github.com/rgbmrc/simsio.git"

If you work from this repository and use the submodule, also make sure it is present:

git submodule update --init --recursive

Performance Notes

  • For reproducible high-performance runs, prefer a dedicated Conda environment (for example with MKL).
  • The pip package stays backend-agnostic for portability.
  • After clearing caches, the first run can be slower because Numba recompiles kernels.
  • Benchmark Numba-heavy code on a warm run (run twice).

Project Layout

  • edlgt/: library source code
  • examples/: example scripts for QED, SU2, DFL, Zn, etc.
  • validation/: validation scripts/tests
  • docs/: documentation sources

Citation

If you use edlgt in research, please cite it using the metadata in:

  • CITATION.cff
  • CITATION.bib

When Zenodo DOIs are available, use:

  • the concept DOI for general software citation
  • the version DOI for exact reproducibility

Current Zenodo concept DOI (all versions): 10.5281/zenodo.11145317

Maintenance (for contributors)

Commit / Push Checklist

  • Run at least one relevant example/script when changing package code
  • Do a warm run before judging performance after Numba/kernel changes
  • Check import edlgt after public API/import-path changes
  • Keep pyproject.toml and requirements*.txt aligned when dependencies change
  • Add user-facing changes to CHANGELOG.md under Unreleased
  • Do not bump the version for normal commits/pushes (only for releases)
  • Avoid committing generated artifacts (dist/, __pycache__/, large logs/outputs)

Release Checklist

  • Update CHANGELOG.md and choose the next version
  • Bump version in pyproject.toml
  • Clean build artifacts: rm -rf dist build *.egg-info
  • Build package: python -m build
  • Check metadata: python -m twine check dist/*
  • Test install in a fresh environment
  • Upload to TestPyPI, test install, then upload to PyPI
  • Tag the release in git (for example v0.1.0)

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

edlgt-0.2.3.tar.gz (193.1 kB view details)

Uploaded Source

Built Distribution

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

edlgt-0.2.3-py3-none-any.whl (224.7 kB view details)

Uploaded Python 3

File details

Details for the file edlgt-0.2.3.tar.gz.

File metadata

  • Download URL: edlgt-0.2.3.tar.gz
  • Upload date:
  • Size: 193.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for edlgt-0.2.3.tar.gz
Algorithm Hash digest
SHA256 33bf2c272f4bcf948dced62a9ac19950537d727498238a11706e123587e94859
MD5 d18db262cc06c3b6e69d1951cedafdd0
BLAKE2b-256 fb8be964a06cc7fb206f21736e579fff7f6b4363ce9362a93cad0134a65515c4

See more details on using hashes here.

File details

Details for the file edlgt-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: edlgt-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 224.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for edlgt-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 691545cc7824b2a9d9397b1f23a10a7b503bdb06caea1158d391d6ee521421d3
MD5 e13f10a07c75fbd0d0cd41fb1b631bff
BLAKE2b-256 c0a8f0f03f0c328fa9a27876dc0dbfdbc6d0f2d7ab981e44e5e999346fdd8234

See more details on using hashes here.

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