1
$\begingroup$

Starting from this very interesting post Defining quantum-mechanical Bra and Ket operations, i would like to implement raising, lowering and number operators, taking into account that they might be non-commutative, i.e. $$ a_i^\dagger a_i |n_1,\dots ,n_i, \dots \rangle \neq a_i a_i^\dagger |n_1,\dots ,n_i, \dots \rangle $$ I know that there is a package for Quantum Mechanics but I would prefer a stand-alone script.

$\endgroup$

1 Answer 1

2
$\begingroup$

The SNEG library is a (now fairly old) package for second-quantised operators, especially in the context of condensed matter physics. It's sometimes a bit clunky, but I still occasionally find it useful.

$\endgroup$
1
  • $\begingroup$ Can you maybe give a short example on how to use the package? $\endgroup$ Nov 9, 2017 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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