Closed carstenbauer closed 4 years ago
Should be fixed now. However, I noted that the difference between G_DQMC
and G_ED
doesn't decrease on lowering delta_tau
... Why? @ffreyer, any idea?
It has been like this since I added those tests, iirc. I don't think I ever got them to match closely. Maybe ´eigen` is becoming unprecise or we get precision errors when calculating observables in ED?
My first thought was that the issue is the high temperature. When calculating the time-displaced GF in ED one can't get the short time behavior (tau=0+epsilon
or equivalently tau=beta-epsilon
) correct at high temperatures when using an approximate iterative eigen solver like ARPACK. However, this shouldn't apply for the equal-time GF. Also you are using eigen
which isn't (deliberately) approximate.
In any case, for beta=10
they are much closer to each other (haven't checked the delta_tau
scaling).
We should definitely check what's going on here. As a first step, I will calculate the Green's function for the model using my ED code on Monday.
I think I found the issue. In ED.jl's HamiltonianMatrix(::HubbardModelAttractive)
you do not negate the sign of U
. Hence it calculates the Green's function for the repulsive Hubbard model. If I change it to use -U
the agreement is much better (~delta_tau^2
as it should be).
The scaling still seems strange. @ffreyer and I should investigate this further at some point. Let's close this for now.
Came up in #47.
See CI log here: https://github.com/crstnbr/MonteCarlo.jl/runs/316807579
Excerpt:
@ffreyer Can you check/fix this?