Quantum assisted simulation of time dependent Hamiltonians