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.0.7.tar.gz (103.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.0.7-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: commutation-0.0.7.tar.gz
  • Upload date:
  • Size: 103.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.0.7.tar.gz
Algorithm Hash digest
SHA256 94ba76a63f6aaba2761c838749071980bc26c71f8c259b0d8f6aa3fe715b7906
MD5 e0e380180d46da224359bceef146f34a
BLAKE2b-256 8edfe98fd3fdd99270afec967c83232cf19ff21d1bf5763fcc26894f1a496b20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: commutation-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 20.5 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.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 de071b796533181ce08a8ce5872660d42fe00a21600cadf957e1fe467a452046
MD5 ab1c130a094af4c209bd507207875fa7
BLAKE2b-256 5f8d5e6a79dfd00b9efcc42ad2a92c3212c6dfa20b3a4cf4a24881f577f30370

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