Lie
A numerical library for working with (representations) of Lie Groups and Algebras.
Features
- Spin matrices
su(2)and ladder matricessl(2, C) - Generalized Gell-Mann Matrices
su(n)(Hermitian) - Sylverster "Clock" and "Shift" Matrices
su(n)(non-Hermitian) -
su(n)matrices by "Spherical Harmonics Tensors su(2) addition" via Clebsh-Gordan coefficients - Computation of Structure constants
- Computation of dot/cross product in
su(n)through structure constants
Examples
Python bindings
import liepy as lp
su_algebra = lp.gen_gellmann(3)
Additional examples, and notebooks, can found here.
Rust
use lie::gellmann::*;
use lie::lie_algebra::*;
let su_algebra = get_gellmann(3);
let f = find_structure_constants(su_algebra);
println!("{:?}", f);
Installation
Pre-built binary wheels are available.
pip install liepy
Compiling from source
Lie depends on:
openblas-devel, e.g. (for Ubuntu/Debiansudo apt install libopenblas-devel) or equivalent- Rust >= 1.58
- Maturin
git clone https://github.com/RustyBamboo/lie
cd lie/liepy
maturin build --release --manylinux=off
pip3 install target/wheels/liepy-....whl --force-reinstall
Building for manylinux
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
Tests
To ensure the library is working as intended, a test can be run:
cargo test
License
Lie is free and opensource, released under MIT license.
Release files for liepy 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| liepy-0.1.4.tar.gz | 56.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.35+ x86-64 | Details |
Total release size: 13.1 MB
Release files / liepy-0.1.4.tar.gz
| Download URL | liepy-0.1.4.tar.gz |
|---|---|
| Size | 56.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70928a613ea936188ab9c94c423b83a3d40d411c58449b38cca528f5929c00f3
|
|
BLAKE2b-256 checksum How to use checksums |
26e25de41f39ca7f062084f6c2291d8a8043c503448e7d7c08d2832b6e980ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl
| Download URL | liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 13.0 MB |
| Tags | CPython 3.11 Linux glibc 2.35+ x86-64 |
|
SHA-256 checksum How to use checksums |
7cd581585943ca64b5750e3f509be292eecff7e995d582affb726eecb6cf6635
|
|
BLAKE2b-256 checksum How to use checksums |
eea7fc529d5ed00f00af4fd3016eca017f09373f9b7758665118da29599e40ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|