I meant to use gateTEvol N times with ttotal=tstep for each step, i.e.
gateTEvol(gates,ttotal=tstep,tstep,psi,{"Cutoff=",cutoff,"Verbose=",true});
for example.
Real t=0;
for(i=1; i<=10;i++)
{
for(int b = 1; b <= N-1; ++b)
{
auto hterm = delt (t)*sites.op("Sz",b)*sites.op("Sz",b+1);
hterm += delt (t)*sites.op("S+",b)*sites.op("S-",b+1);
hterm += delt(t)* sites.op("S-",b)*sites.op("S+",b+1);
auto g = Gate(sites,b,b+1,Gate::tReal,tstep/2.,hterm);
gates.push_back(g);
}
gateTEvol(gates,ttotal=tstep,tstep,psi,{"Cutoff=",cutoff,"Verbose=",true});
t=t+tstep*i
}
Is it possible to use gateTEvol only once?