The probability amplitude for a particle to travel from $\mathbf{x}_i $ to $\mathbf{x}_f$ in a time $t$ is given by the path integral
$$ \langle \mathbf{x}_f | e^{-iHt} |\mathbf{x}_i \rangle = \int \mathcal{D}\mathbf{x} e^{iS[\mathbf{x}]} $$
where I am integrating over all possible paths $\mathbf{x}: \mathbb{R} \rightarrow \mathbb{R}^3 $ such that $\mathbf{x}(0) = \mathbf{x}_i$ and $\mathbf{x}(t) = \mathbf{x}_f$. Well I was thinking about the double slit experiment and I have heard the idea of a "wavefunction" of a particle that has travelled through a particular slit and I have always wondered what that means exactly. Then I recalled that we define the wavefunction of a system in state $| \psi \rangle$ as $$ \psi(\mathbf{x},t) = \langle \mathbf{x} | \psi(t) \rangle. $$ If, for the double slit experiment, If I could find a Hamiltonian $H$ that describes the effect of the double slit, I could surely chose my state at a time $t$ after releasing the particle at $\mathbf{x}_i$ to be the propagated state $$|\psi(t)\rangle = e^{-iHt}|\mathbf{x}_i\rangle$$ Therefore my wavefunction would be $$ \psi(\mathbf{x},t) = \langle \mathbf{x} | e^{-iHt}|\mathbf{x}_i \rangle $$
which is the path integral as given above. If I could somehow write down the Hamiltonian that describes the behaviour of the double-slit, surely my wavefunction, and hence my path integral, would solve the Schrodinger equation?