Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think everyone who has attended a lecture introducing second quantization appreciates what a pain it can be to compute expressions involving commutators or anticommutators with lots of operators.

As an example, it's a classic exercise to compute the commutator of the Hamiltonian in second quantization of electrons with operators such as the density operator.

I wonder if there is a software, or maybe addons for Mathematica, that can do these simple but time-consuming operations?

share|cite|improve this question
up vote 1 down vote accepted

These tools do exist, though I think it's common for Mathematica inclined students to write their own ;) The most recent one I've come upon is:

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.