-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hello sympt team!
While implementing second quantization in pymablock, @iarayad and I believe that we saw a bug in your implementation of group_by_operators, which influences the example https://qcode-uni-a.github.io/sympt/examples/I1_Transmon_resonator/ or any other Hamiltonian where group_by_operators will process this term as group_by_operators is used in all examples as a way to examine the results, it seems like a serious issue.
To be able to manipulate expressions with energy denominators, where normal ordering does not work, and also to be able to use sympy simplification routines with operator expressions, we developed a number ordering scheme. Please find its implementation over here: