In quantum mechanics, spacetime transformations act on quantum states. The parity transformation, \hat{\mathcal P}, is a unitary operator, in general acting on a state \psi as follows: \hat{\mathcal P}\, \psi{\left(r\right)} = e^{{i\phi}/{2}}\psi{\left(-r\right)}.
