Consider a 1D system that has the Hamiltonian $H=\frac{P^2}{2m}+V(x)$. At a certain moment, its wavefunction is $\psi$ and has energy $E$. Can we find another Hamiltonian $H'=\frac{P^2}{2m}+V_{eff}(x)$ for which $\psi$ is its ground state with ground state energy $E$?
Note: I know that the $\psi$ is an eigenstate of the operator $\rho H$ with an eigenvalue $E$ where $\rho$ is the density matrix. It is not clear to me though whether this matrix can be represented in the form $\frac{P^2}{2m}+V_{eff}(x)$ or whether $\psi$ is its ground state.
EDIT: Since the ground state of a Hermitian $H'$ is a real function while $\psi$ is complex function, then I release the requirement of the ground state of $H'$ to be the best approximation to $\psi$