Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irrepx-0.0.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

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

Hashes for irrepx-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f58f542fd9286f2abc6f9c310aa228c748bbe0fe9574f2dc29f227f7a9f80a2
MD5 f23f5f2653f83f5dbb2be667e11bb99e
BLAKE2b-256 7472fe84d46ef4d6251c849f3578b07c9605ad0031c33dfd003ac27b00a87af6

See more details on using hashes here.

Provenance

The following attestation bundles were made for irrepx-0.0.0-py3-none-any.whl:

Publisher: publish.yaml on kYangLi/irrepx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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