Symplectic rigidity and quantum mechanics