Minimal O(3) irreducible representations with optional JAX support. A lightweight, pure-Python replacement for the core of e3nn-jax.
Project description
irrepx
Minimal O(3) irreducible representations with optional JAX support.
A lightweight, pure-Python replacement for the core data structures and operations of e3nn-jax, designed to be maintained independently of the now-unmaintained upstream library.
Install
Light mode (pure Python, no JAX)
pip install irrepx
Provides Irrep, MulIrrep, Irreps — zero dependencies beyond the
Python standard library.
Full mode (with JAX computation)
pip install irrepx[jax]
Adds IrrepsArray, spherical_harmonics, tensor_product, and more
(functional API, JIT-compatible).
Full mode is not yet available as of v0.0.0.
Quick Start
from irrepx import Irrep, Irreps
# Create irreps by string
irreps = Irreps("32x0e + 16x1o + 8x2e")
print(irreps.dim) # 32*1 + 16*3 + 8*5 = 120
print(irreps.lmax) # 2
print(irreps.regroup()) # 32x0e+16x1o+8x2e
# Build spherical harmonic representation
sh = Irreps.spherical_harmonics(lmax=3)
print(sh) # 1x0e+1x1o+1x2e+1x3o
# Check equivalences
assert Irrep("2e") in Irrep("1o") * Irrep("1o")
License
GPL-3.0-or-later
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file irrepx-0.0.0-py3-none-any.whl.
File metadata
- Download URL: irrepx-0.0.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f58f542fd9286f2abc6f9c310aa228c748bbe0fe9574f2dc29f227f7a9f80a2
|
|
| MD5 |
f23f5f2653f83f5dbb2be667e11bb99e
|
|
| BLAKE2b-256 |
7472fe84d46ef4d6251c849f3578b07c9605ad0031c33dfd003ac27b00a87af6
|
Provenance
The following attestation bundles were made for irrepx-0.0.0-py3-none-any.whl:
Publisher:
publish.yaml on kYangLi/irrepx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
irrepx-0.0.0-py3-none-any.whl -
Subject digest:
3f58f542fd9286f2abc6f9c310aa228c748bbe0fe9574f2dc29f227f7a9f80a2 - Sigstore transparency entry: 1815450993
- Sigstore integration time:
-
Permalink:
kYangLi/irrepx@f4891c2512ce11876741e737bff7fd81d0a576e3 -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/kYangLi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@f4891c2512ce11876741e737bff7fd81d0a576e3 -
Trigger Event:
release
-
Statement type: