carstenbauer / MonteCarlo.jl

Classical and quantum Monte Carlo simulations in Julia
https://carstenbauer.github.io/MonteCarlo.jl/dev/
Other
185 stars 18 forks source link

Cleanup ED tests, add superfluid stiffness, add ValueWrapper #144

Closed ffreyer closed 2 years ago

ffreyer commented 2 years ago

ED

Superfluid Stiffness

ValueWrapper

Loading full measurements starts to become critical in terms of memory in the range of 100-1000 simulations. ValueWrapper is supposed to fix this problem by allowing you to calculate the MonteCarlo mean and standard error on load and only saving those. I tried to make this process very step-by-step so that the user can intervene at any point to adjust the behavior. The default behavior boils down to

mc.measurements = Dict(map((k, v) -> k => ValueWrapper(mean(v), std_error(v)), pairs(mc.measurements)))

Loading

General