Hi
I am facing a Segmentation fault error with the function expH (my goal is to simulate the dynamics of a spin boson hamiltonian with long-range interactions)
Please find below a minimal example which causes the crash:
It seems to be due to the interplay between the Complex argument Cplxi + the flip-flip terms Sm S_m..
Thanks for your help
Benoit
int main(int argc, char* argv[])
{
auto sites = SpinHalf(3);
auto ampo = AutoMPO(sites);
ampo += "Sm",1,"Sm",2;
ampo += "Sp",1,"Sp",2;
ampo += "Sp",2,"Sp",3;
ampo += "Sm",2,"Sm",3;
auto H = MPO(ampo);
PrintData(H);
auto tau = 0.1;
auto expH = toExpH(ampo,tau*Cplx_i);
PrintData(expH);
return 0;
}
~