A library for doing noncommutative operator algebra
Project description
Commutation Station for Operator Elimination
A proof assistant tool for the busy physicist, to be used in evaluating large commutator expressions. This package does symbolic algebra on noncommutative objects.
The relevant objects for most purposes are CommutatorAlgebra
, Expression
and Term
. An Expression
is a list of Term
s, together with standard vector space operations.
TODO
- Export functionality for easier copying into Mathematica or similar
- Input validation / standardisation of symbol types
- change fundamental type from strings to objects: restrict purpose of Term to single terms
- Implement use of anticommutator algebra
- Scalar subclass of Term (in general, import sympy to simplify scalar coefficients?
Future
Term
class functionality
Term.as_latex()
Term.as_mathematica()
Term.__str__()
Constant(Term)
does NOT have any built-in multiplier: this nastiness is handled by the new Expression
class
Expression.as_latex()
Expression.as_mathematica()
internal structure: `[([1],[t1, t2]),([3/4 ka k2], [t3, t4])] -> t1 t2 + t3 t4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for commutation-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de071b796533181ce08a8ce5872660d42fe00a21600cadf957e1fe467a452046 |
|
MD5 | ab1c130a094af4c209bd507207875fa7 |
|
BLAKE2b-256 | 5f8d5e6a79dfd00b9efcc42ad2a92c3212c6dfa20b3a4cf4a24881f577f30370 |