pepsy is a Python package for boundary-MPS based PEPS norm contraction and related DMRG fitting workflows.
Current package version: 0.0.1 (from pepsy/VERSION).
pepsy/: installable library codeboundary_states.py: boundary state initialization (BdyMPS)boundary_sweeps.py: sweep/contraction runner (CompBdy)boundary_norm.py: input preparation + contraction (prepare_boundary_inputs,ContractBoundary)dmrg_fit.py,core.py,linalg_registrations.py
example/: example notebooksdocs/: Sphinx documentation sourcetests/: package tests
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .
# Optional backends:
# pip install -e .[torch]
# pip install -e .[jax]import pepsy
from pepsy import BdyMPS, CompBdy, ContractBoundary, prepare_boundary_inputs
print(pepsy.__version__)Build docs locally:
pip install -e .[docs]
sphinx-build -W -b html docs docs/_build/htmlMain docs sections:
getting_startedtutorials/howto/api/
Guided notebook example:
example/norm.ipynb
.gitattributesmarks notebooks as binary to avoid noisy diffs..gitignoreexcludes checkpoints, caches,cash/, andnohup.out.