Hello,
I am starting to use iTensor and I am trying to run the following example (as is):
http://itensor.org/docs.cgi?page=formulas/excited_dmrg
But I get the following errors when compiling
dmrg.cc: In function ‘int main()’:
dmrg.cc:41:12: error: ‘class itensor::Sweeps’ has no member named ‘maxdim’
sweeps.maxdim() = 10,20,100,100,200;
^
dmrg.cc:51:10: error: expected unqualified-id before ‘[’ token
auto [en0,psi0] = dmrg(H,randomMPS(sites),sweeps,{"Quiet=",true});
^
dmrg.cc:51:69: error: expected primary-expression before ‘)’ token
auto [en0,psi0] = dmrg(H,randomMPS(sites),sweeps,{"Quiet=",true});
^
dmrg.cc:61:17: error: ‘psi0’ was not declared in this scope
wfs.at(0) = psi0;
^
dmrg.cc:67:10: error: expected unqualified-id before ‘[’ token
auto [en1,psi1] = dmrg(H,wfs,randomMPS(sites),sweeps,{"Quiet=",true,"Weight=",20.0});
^
dmrg.cc:67:88: error: expected primary-expression before ‘)’ token
auto [en1,psi1] = dmrg(H,wfs,randomMPS(sites),sweeps,{"Quiet=",true,"Weight=",20.0});
^
dmrg.cc:72:46: error: ‘en0’ was not declared in this scope
printfln("\nGround State Energy = %.10f",en0);
^
dmrg.cc:73:47: error: ‘en1’ was not declared in this scope
printfln("\nExcited State Energy = %.10f",en1);
^
dmrg.cc:87:56: error: ‘psi1’ was not declared in this scope
printfln("\nOverlap <psi0|psi1> = %.2E",inner(psi0,psi1));
^
dmrg.cc:87:60: error: ‘inner’ was not declared in this scope
printfln("\nOverlap <psi0|psi1> = %.2E",inner(psi0,psi1));
The sample codes provided with the source material seem to work well, though.
Best regards,
Rafael