The energy operator is:
$${\displaystyle {\hat {E}}=i\hbar {\frac {\partial }{\partial t}}}\tag1$$
and the momentum operator is
$${\displaystyle {\hat {p}}=-i\hbar {\frac {\partial }{\partial x}}}.\tag2$$
I know that we obtain the first by differentiating the plane wave solution of the Schrodinger equations with $t$ and the second by $x$.
Say I have the expression for one of them, can I derive the other one using the Hamiltonian equations of motion from classical mechanics?
Can I obtain $(1)$ from $(2)$ or vice versa via:
$${\displaystyle {\frac {\mathrm {d} {\boldsymbol {q}}}{\mathrm {d} t}}={\frac {\partial {\mathcal {H}}}{\partial {\boldsymbol {p}}}},\quad {\frac {\mathrm {d} {\boldsymbol {p}}}{\mathrm {d} t}}=-{\frac {\partial {\mathcal {H}}}{\partial {\boldsymbol {q}}}}.}$$