SunnySuite / Sunny.jl

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

Refactor single ion anisotropies #93

Closed kbarros closed 1 year ago

kbarros commented 1 year ago
kbarros commented 1 year ago

There are various breaking changes in this commit, but the main one is the replacement set_anisotropy! with set_onsite! (name TBD). The new function takes an explicit $N \times N$ matrix which can be built using, e.g. spin_operators or stevens_operators. DynamicPolynomials.jl becomes an optional dependency, and can provide certain symbolic analysis relevant to the large $S$ classical limit.

Lazersmoke commented 1 year ago

Looks great! Good to merge as-is