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.0.tar.gz (183.0 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.0-py3-none-any.whl (213.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edlgt-0.2.0.tar.gz
  • Upload date:
  • Size: 183.0 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.0.tar.gz
Algorithm Hash digest
SHA256 0ea6da224621e57118d766f64a3bdd5e30141098c2068422170795d69e5f023b
MD5 40758226875de7b207a78db6015c6dbd
BLAKE2b-256 3e218bea409eda5d88eb985f6b50af82b29b6f9635efbeecde6f14391c6daf3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edlgt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 213.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1eeb1abaa5cf250097699786fadd3eb31a375f9e8d871dfff2b727e1c47dc5a
MD5 1f42b4ba0947997fd2c920b07b9394e2
BLAKE2b-256 98e6648cf2c94e703881f1b290e837d03205c74c82e1273ef7331b717145511b

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