What does that mean by "warning : applyExp not converged in 10 steps"?

Hello everyone!

I’m trying to use TDVP methods to do some tests.

But here comes many warnings in my output file that say “applyExp not converged in 10 steps”

What is the meaning of this warning?
Does that mean the results are not reliable or not accurate enough?
So, do I have to reduce the accuracy demand?

Here is my code.

auto sweeps = Sweeps(2);
sweeps.maxdim() = 2000,4000;
sweeps.cutoff() = 1E-12,1E-12;
sweeps.niter() = 10,10;
for(int n = 1; n <= nsw; ++n)
        if(n < 3)
            std::vector<Real> epsilonK = {1E-12, 1E-12};
        auto energy = tdvp(psi1,H,Cplx_i*(-t),sweeps,{"Truncate",true,


Hi Wang,
What time step “t” are you using by the way? I think the reason for the error is that you are telling the Krylov integrator inside the TDVP code it is only allowed to do 10 steps by setting niter() = 10. Then it is hitting this limit when trying to reach the time step at the desired accuracy. So I would just recommend either lowering the time step or raising niter().

Hi Miles,
Thanks for your reply.
In my codes, t-step is equal to 0.1 and t-end is equal to 2 or 3.

I see, thanks. So a t step (the variable t in the above code, I assume) is quite reasonable so it’s a little surprising that 10 Krylov steps wouldn’t be enough. But please just try setting niter() = 20 to see if that fixes the issue. If it works but the code slows down a lot, we could then discuss other things to try.