No project description provided
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file liepy-0.1.3.tar.gz
.
File metadata
- Download URL: liepy-0.1.3.tar.gz
- Upload date:
- Size: 56.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28eac68776b5af07d9ff5f066abba4f9b58655ff78771c3190d514a9e8b1ce9 |
|
MD5 | 97c8d141a70ab8b0ab9cd6394ef5aa74 |
|
BLAKE2b-256 | 9ab07a0975be1821cd9105f59a5ef6005260261f50e664e467f33b98faf4459a |
File details
Details for the file liepy-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d11483577820908a85cdb7c2723dab31510c823bf512546a712ea8f8179d5899 |
|
MD5 | 15b4be4a57fb6912f6160fd544f7981b |
|
BLAKE2b-256 | 5f252d252e28b3fac5d995b7170261059ce3114e0e24d71611b66daa6c1a3101 |
File details
Details for the file liepy-0.1.3-cp311-cp311-manylinux_2_35_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp311-cp311-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 13.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b16002bcb9982fc76588ade646a3f7225d230a5089a0900f08ebd340750ccf |
|
MD5 | 1b1143076d49574b617973e252d349b4 |
|
BLAKE2b-256 | fdd9c9989cb530b8ca295aaa3cdd7b2fef391ec19e3bf821af45e9098536580b |
File details
Details for the file liepy-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efeeb9197b55b44b117652184e10c0e09e894aeaecc81aaffa1a93b8e37fc1f9 |
|
MD5 | 16976ce71aad8e3c5f88dda928cf4130 |
|
BLAKE2b-256 | 5e43cb33ce8c9bf707fe3c431d5dfd7c358accc28694e94eb06c3bca49351684 |
File details
Details for the file liepy-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8845b9ee76230aa71b426e0685cae71e300429dc1c1be6f8c46a0f223ba5f35c |
|
MD5 | 7a2db415fba9b07c50e7c64faf4070e8 |
|
BLAKE2b-256 | 581aa2dd14034afedf91cd0d46f268a11b076c7105f3839bb88e9132ff430bcf |
File details
Details for the file liepy-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 022e03ff99352a7c9bb519bcfd7addb66f91c1dd37b470cfc7ae0a7e90acd6e0 |
|
MD5 | 14743903fe54d500778702ed663f9282 |
|
BLAKE2b-256 | 48f7f9c5f3ac506109438667919e7b30fd493587d8fad508d09a3913ac8a91d2 |
File details
Details for the file liepy-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75714c78bf2c672b612ae51e78939686c7b89920cf52ce3a67c2e126418d8781 |
|
MD5 | f29321c15db6bda7a923c40175c8a353 |
|
BLAKE2b-256 | da1c34495f63a7c299e6482afbf6595f89ec9e646a0db16db85d31cb6e9bf7dc |
File details
Details for the file liepy-0.1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: liepy-0.1.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 10.6 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.7-beta.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd4a023f3766960284bd0d8d3649acea17ab48858e291a275b78ba816cc7424 |
|
MD5 | b49de185bb38580feca6259b8070a0da |
|
BLAKE2b-256 | fe18e9fd8dad01cba44a6e4599bf477a31e69dae6555256a8a913cd112580e01 |