Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Dec 10, 2024
1 parent 52f77ff commit 9f6a8ad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ext/PlottingExt/ViewCrystal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@ function quadratic_anisotropy(sys, i)
[0 1 0; 1 0 0; 0 0 0], # 𝒪₂₋₂ = SˣSʸ + SʸSˣ
]

# Check consistency with Stevens operators as symbolic polynomials
S = spin_matrices(Inf)
O = stevens_matrices(Inf)
for (b, q) in zip(quadrupole_basis, 2:-1:-2)
@assert iszero(S' * b * S - O[2, q])
end

# The c0 coefficient incorporates a factor of S². For quantum spin
# operators, S² = s(s+1) I. For the large-s classical limit, S² = s² is a
# scalar.
Expand Down

0 comments on commit 9f6a8ad

Please sign in to comment.