Skip to main content

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 Terms, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commutation-0.1.2.tar.gz (104.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commutation-0.1.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file commutation-0.1.2.tar.gz.

File metadata

  • Download URL: commutation-0.1.2.tar.gz
  • Upload date:
  • Size: 104.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for commutation-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a270d365616e1ec2f39cdbd221e566275dd49ce50d4ea9479537ccc3687fe0bf
MD5 4d81b76fad7080de1e51db15e8778e0f
BLAKE2b-256 998de4c7ebec34cdab19bfb8d5c47eafa0b3b2824d27f4aacfa3b9a2fbdfdbd3

See more details on using hashes here.

File details

Details for the file commutation-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: commutation-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for commutation-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba7fe8693b31926fdfebb3d99f7b1489f1f3b247195b273ce0103d46ebc649e5
MD5 e370f08e9cbeb02f0ab4ca47417edfda
BLAKE2b-256 a846f6f37c2f91d6adadaf567d92976b63c74aea52644fc572fa5e27a36f7869

See more details on using hashes here.

Supported by

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