SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
86 stars 19 forks source link

Setting onsite coupling to zero doesn't remove it #110

Closed Lazersmoke closed 1 year ago

Lazersmoke commented 1 year ago

https://github.com/SunnySuite/Sunny.jl/blob/188846860b8fb6a447f8400f854311c340003b68/src/System/OnsiteCoupling.jl#L144

I use this in parameter sweeps, where set_onsite_coupling!(sys, <zero matrix>, 1) goes after set_onsite_coupling!(sys, +0.1 * Sz^2, 1) and should remove that coupling

kbarros commented 1 year ago

Agreed.