Tools and experiments for belief propagation and tensor-network workflows. Core scripts live in this repo, with notebooks demonstrating experiments and diagnostics.
algo_bp.py,algo_cooling.py: main belief-propagation and cooling routines.gen_loop.py,gen_loop_tn.py: loop generation helpers for tensor networks.quf.py: utilities and experiment helpers (partitioning, contractions, plotting).register_.py: custom JAX/PyTorch registrations and linear algebra helpers.test_*.ipynb,energy_var*.ipynb: example notebooks and exploratory runs.cash/: local cache/artifacts (ignored).
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# For GPU JAX/PyTorch, install the appropriate wheels from the vendor instructions..gitattributesmarks notebooks as binary to avoid noisy diffs. Use comments/screenshots or tools likenbdifffor review..gitignoreexcludes caches, checkpoints, andcash/artifacts; keep transient data there or elsewhere.- If you add new notebook outputs or large data, prefer storing them outside the repo or use Git LFS if needed.