Quantum phase space in curved spacetime