Quantum mechanics is formulated on a quantum mechanical phase space. The algebra of observables and states is represented by an algebra of functions on a phase space that fulfils a certain coherence condition, expressing the quantum mechanical superposition principle. The trace operation is an integration over phase space. In the case where the canonical variables independently run from - infinity to + infinity formalism reduces to the representation of quantum mechanics by Wigner distributions. However, the notion of coherent algebra allows one to apply the formalism to spaces for which the Wigner mapping is not known. The quantum mechanics of a particle in a plane in polar coordinates is discussed as an example.
We present \texttt{SymQuPS}, a SymPy-based algebra system in Python mainly aimed toward the phase space representation of quantum mechanics within the Cahill-Glauber formalism (including the Glauber-Sudarshan
P, Wigner, and Husimi
Q representations). By extension, the package serves as an algebraic venue for canonical quantization. A key feature is the phase space representation of an arbitrary Lindblad master equation, which gives the phase space equation of motion of the quantum system. We describe the core functionalities of the package, consisting of
s-ordered operators, the star products, and the phase space representation. Some examples of use are given to illustrate the application of the package, and the package's performance in typical use cases is discussed.