Real- and Imaginary-Time Evolution with Compressed Quantum Circuits