dqmc
dqmc copied to clipboard
potential performance updates
I'll update this whenever I find something.
- In
local_updates
, rather than calculatinglog(exp_delta_S_boson)
the action difference could be saved to a variable and thelog
could be dropped. -
eVop1
,eVop2
andeVop1eVop2
are only actively used incalc_detratio
as far as I can tell. Having justinteraction_matrix_exp_op!(mc, new_op - p.hsfield[:,i,s.current_slice], +1., s.eVop1eVop2)
should be enough. -
Mtmp
,Mtmp2
are only used indetratio
.Mtmp2
could be removed ifmul!(s.Mtmp2, s.delta_i, s.Mtmp)
becomeslmul!(s.delta_i, s.Mtmp)
.M
should also be fine to use instead ofMtmp
.
Yes. But note that this is irrelevant on the time scale of update_greens!
which follows this line.