Skip to content

Commit

Permalink
Merge pull request #62 from k-ido/debug_lanczos
Browse files Browse the repository at this point in the history
Debug complex Lanczos mode for systems with exchange and/or interall interactions
  • Loading branch information
tmisawa authored Oct 1, 2024
2 parents 14f95a6 + ea0ca5c commit 0e79814
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/mVMC/locgrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ double complex GreenFuncN(const int n, int *rsi, int *rsj, const double complex

MakeProjCnt(projCntNew,eleNum);
x = ProjRatio(projCntNew,eleProjCnt);
if (FlagRBM) {
MakeRBMCnt(rbmCntNew, eleNum);
x *= RBMRatio(rbmCntNew,rbmCnt);
}

/* calculateNewPfM */
for(qpidx=0;qpidx<NQPFull;qpidx++) {
Expand All @@ -304,7 +308,7 @@ double complex GreenFuncN(const int n, int *rsi, int *rsj, const double complex
eleNum[rsi[k]] = 0;
}

return x*z/ip;
return conj(x*z/ip);
}

//
Expand Down
9 changes: 3 additions & 6 deletions src/mVMC/lslocgrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,9 @@ double complex calHCACA1(const int ri, const int rj, const int rk, const int rl,

ReleaseWorkSpaceInt();
ReleaseWorkSpaceComplex();
if (FlagRBM) {
return e*conj(z*ipNew/ip);
}
else {
return e*z*ipNew/ip;
}

return e*conj(z*ipNew/ip);

}

/* calculate <psi| H C_is A_js C_kt A_lt|x>/<psi|x> for <psi|CACA|x>/<psi|x>=0 */
Expand Down

0 comments on commit 0e79814

Please sign in to comment.