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$
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$
  • $\begingroup$ Can you maybe give a short example on how to use the package? $\endgroup$ – J. M. is away Nov 9 '17 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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