Closed kbarros closed 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.
Looks great! Good to merge as-is
Replace
set_anisotropy!
withset_onsite_coupling!
. The new function expects a matrix built fromstevens_operators
orspin_operators
. Provideprint_stevens_expansion
to decompose polynomials of spin operators into a linear combination of Stevens operators.Make DynamicPolynomials an optional dependency. This provides symbolic functions
print_classical_stevens_expansion
andprint_classical_spin_polynomial
.Functions to create tensor products of operators.