| Crates.io | lie |
| lib.rs | lie |
| version | 0.1.2 |
| created_at | 2021-05-25 15:29:20.216965+00 |
| updated_at | 2022-02-08 21:25:30.716044+00 |
| description | A numerical library for working with Lie Groups and Algebras |
| homepage | https://github.com/RustyBamboo/lie |
| repository | |
| max_upload_size | |
| id | 401890 |
| size | 35,501 |
A numerical library for working with (representations) of Lie Groups and Algebras.
su(2) and ladder matrices sl(2, C)su(n) (Hermitian)su(n) (non-Hermitian)su(n) matrices by "Spherical Harmonics Tensors su(2) addition" via Clebsh-Gordan coefficientssu(n) through structure constantsimport liepy as lp
su_algebra = lp.gen_gellmann(3)
Additional examples, and notebooks, can found here.
use lie::gellmann::*;
use lie::lie_algebra::*;
let su_algebra = get_gellmann(3);
let f = find_structure_constants(su_algebra);
println!("{:?}", f);
Pre-built binary wheels are available.
pip install liepy
Lie depends on:
openblas-devel, e.g. (for Ubuntu/Debian sudo apt install libopenblas-devel) or equivalentgit clone https://github.com/RustyBamboo/lie
cd lie/liepy
maturin build --release --manylinux=off
pip3 install target/wheels/liepy-....whl --force-reinstall
For manylinux compiled wheel, a Docker container is used.
cd lie
docker build -t maturin liepy/
docker run --rm -v $(pwd):/io maturin build --release -m liepy/Cargo.toml
To ensure the library is working as intended, a test can be run:
cargo test
Lie is free and opensource, released under MIT license.