I'm undergraduate student in physics and have question about first quantization.
We already know that in quantum mechanics, hamiltonian and momentum don't commute with each other in general sense.
However, if we regard them as generator of wave function like,
$H \to i\hbar\frac{\partial}{\partial t}$
$P \to -i\hbar\frac{\partial}{\partial x }$
then
$HP = \hbar^2\frac{\partial^2}{\partial t\partial x}$
$PH = \hbar^2\frac{\partial^2}{\partial x\partial t}$
so that these are same operator (two derivatives commute) and it seems $[H, P] = 0$
this must not be true, but I don't know where it goes wrong. Could you point the contradiction in this argument?