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.0.tar.gz (103.2 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.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: commutation-0.1.0.tar.gz
  • Upload date:
  • Size: 103.2 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.0.tar.gz
Algorithm Hash digest
SHA256 88f8510b63373da63af5f1e95a045308b59ce1ed5779b288ed1545277713e284
MD5 2c7a11cb4d2af6e6eeb4492153cc6dd2
BLAKE2b-256 edeb09ad2c8ae8895738cdd4f7620608cca75fbea6d7c250db83a510dc6f7bc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: commutation-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 810c6ab16cf5c56ca7ab2fce193f36475d1dccd9d4af926950a6941e764755a4
MD5 f571054bf51bbd1e05967dcd0bd65aeb
BLAKE2b-256 8448b7f503e322a81fdafc3c36cdbeba85d52b2dd6498fb2e8ec75f113f53995

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