An Analytic Theory of Quantum Imaginary Time Evolution