Why is the Energy Operator defined using $i$ and not $-i$ like the Momentum? The energy operator is:
$$\hat{E}= i\hbar \frac{\partial}{\partial t}$$
While momentum is:
$$\hat{P}=-i \hbar \frac{\partial}{\partial x}$$
Why is it not like the momentum with $-i$? I suspect this has to do with relativity because of the metric signature $(+,-,-,-)$ though I'm not sure. I think that as long as they're the opposite it works.
Moreover, I think it doesn't matter at all because usually, in nonrelativistic quantum mechanics, momentum is squared, so $-i$ or $i$ doesn't matter at all. Though relativistically, they should be the opposite. Is that true?
 A: While the commenter is correct in that $i \hbar \partial / \partial t$ should not be regarded as the energy operator, one can nevertheless ask: how is the sign in the Schrodinger equation related to the sign in the definition of the momentum operator?
The answer is that they have to be oppositely signed, if we want particles with positive energy and momentum to move in the $+x$ direction. As a simple example, consider a particle in a 1d box with periodic boundary conditions. The solutions to the Schrodinger equation are simultaneous eigenstates of $H$ and $p$, given by
$$
\psi_k(x) = \frac{1}{\sqrt{L}} e^{ikx-i\omega t}
$$
The eigenvalues of $p$ and $H$ are $\hbar k$ and $\hbar \omega = \hbar^2 k^2 / 2m$, respectively. Observe that this is a right-moving plane wave, if one were to change the sign of either $p$ or the Schrodinger equation, we would instead obtain a left-moving plane wave.
A couple further comments. First, note that the overall sign in $p$ and the Schrodinger equation together is arbitrary; it’s just a convention. Second, the relative sign between the two operators has nothing to do with relativity, and has no significance in this regard, other than the fact that the wave equation is relativistically invariant.
A: *

*The sign of the momentum operator in the position representation is fixed by demanding that it should fulfill the canonical commutation relation $[x,p] = \mathrm{i}\hbar$ when $x$ is just multiplication by the wavefunction argument, and the canonical commutation relations are in canonical quantization just a consequence of the classical $\{x,p\} = 1$


*The sign in the Schrödinger equation, in turn, is likewise fixed by canonical quantization by turning the classical evolution equation $\partial_t f = \{f,H\}$ into the Heisenberg equation of motion $\partial_t f = \frac{1}{\mathrm{i}\hbar}[f,H]$. From there the expression in the Schrödinger picture follows - note that $\mathrm{i}\hbar\partial_t = H$ isn't really a meaningful equation as such, see this question and its answers.
Hence, the sign have nothing to do with relativity, since they follow from the general procedure of canonical quantization and Hamiltonian mechanics without any assumptions about how the generalized positions and momenta we're quantizing behave under Galilean or Lorentzian transformations (and indeed without the assumption that the Hamiltonian is "energy").
A: The energy operator is not to be confused with the hamiltonian operator.
Defining the energy operator makes us able to write the schroedinger equation as
$\hat{H} =\hat{E} $
But keep in mind this is an equation not a definition.
The quantum hamiltonian depends on the system and is derived through the "first quantization" ie. Promotion of variables to hermitian operators
Semi-relativistically this sign difference makes us derive the klein-gordon equation
Defining the operator $\hat{P^{\mu} }=(\hat{H}/c, \hat{P_x} , \hat{P_y}, \hat{P_z} )$ and using the coordinate rappresentation we find that (using the (+, -, -, - ) metric)
$\hat{P^{\mu} } \hat{P}_{\mu} =-\hbar^2\partial^{\mu}\partial_{\mu}=m^2c^2$
The last relation because of the mass shell equation.
