Skip to main content

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 matrices sl(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/Debian sudo 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

liepy-0.1.4.tar.gz (56.4 kB view details)

Uploaded Source

Built Distribution

liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.35+ x86-64

File details

Details for the file liepy-0.1.4.tar.gz.

File metadata

  • Download URL: liepy-0.1.4.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for liepy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 70928a613ea936188ab9c94c423b83a3d40d411c58449b38cca528f5929c00f3
MD5 366c8b7ad1c4df3d05d77326d6ed4a8c
BLAKE2b-256 26e25de41f39ca7f062084f6c2291d8a8043c503448e7d7c08d2832b6e980ae5

See more details on using hashes here.

File details

Details for the file liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for liepy-0.1.4-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 7cd581585943ca64b5750e3f509be292eecff7e995d582affb726eecb6cf6635
MD5 0eaab7156f5830515af07074deff11bc
BLAKE2b-256 eea7fc529d5ed00f00af4fd3016eca017f09373f9b7758665118da29599e40ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page