Skip to content

h4lat 0.2.0

Choose a tag to compare

@Tag-E Tag-E released this 23 Oct 14:18
· 13 commits to main since this release

First public release of h4lat, a Python library for the hypercubic group H(4), the symmetry group of a four-dimensional hypercubic lattice. It provides Clebsch-Gordan coefficients of H(4) and H(4)-irreducible lattice operators ψ̄ Γ D⋯D ψ for moments of parton distribution functions, with their kinematic factors, C-parity, trace condition and index symmetry.

Installation

pip install h4lat            # core: numpy, sympy, tqdm
pip install "h4lat[full]"    # all optional features (HDF5, PDF catalogue, numba, …)

h4lat needs Python ≥ 3.11. The README and the example notebooks show how to use it.

Highlights

  • A bundled database of 1360 operators: every Dirac structure (S, P, V, A, T) with zero to three derivatives, loaded in about a second with get_OperatorList() / get_OperatorDict() and selectable by Dirac structure and number of derivatives.
  • Every bundled operator has a definite C-parity, and kinematic factors are computed in exact arithmetic.
  • get_paper_operators: the operators used in published lattice works (Göckeler et al. 2005, Bürger et al. 2022, Rodekamp et al. 2024, Taggi et al. 2026, Alexandrou et al. 2026), selected by INSPIRE texkey or DOI.
  • cg_calc computes the CG coefficients of new tensor products with Sakata's projection formula, numerically and optionally in parallel: (6,1) ⊗ (4,1)³ takes about a minute.
  • The h4lat-catalogue command writes a PDF catalogue of the operators with their kinematic factors.
  • The PDF catalogue attached to this release lists all 1360 operators with their kinematic factors, for those without a LaTeX installation.
  • HDF5 input and output of operators, and a selectable polarisation matrix for the kinematic factors.

If you used h4lat from GitHub before this release

Some changes alter results or code:

  • Operator IDs are now ordered by number of derivatives, then S, P, V, A, T. The README has the table that maps old IDs to new ones.
  • When an irrep appears more than once in a tensor product, its copies are chosen with definite C-parity, so operators in such irreps can refer to different copies than before.
  • The H(4) generators were corrected (all 20 irreps are now representations), and the bundled data were regenerated.
  • make_operator_database and CGmat_from_block have new signatures.

The full list is in CHANGELOG.md.

How to cite

If you use h4lat in your research, please cite this version: use the "Cite this repository" button on the repository page or the Zenodo DOI of this release.