Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ddahlbom committed Oct 18, 2023
1 parent 73906c2 commit ba9c4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SpinWaveTheory/SpinWaveTheory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ function swt_data_sun(sys::System{N}, obs) where N
observables_localized = zeros(ComplexF64, N, N, num_observables(obs), n_magnetic_atoms)

# Rotate SU(N) bases and observables and store in dense array. Note that the
# first index is the component index. As a result, (Sx_i, Sy_i, Sz_i) are
# stored contiguously. This is the natural order for constructing the spin
# wave Hamiltonian.
# first index is the component index. As a result, (Sˣᵢⱼ, Sʸᵢⱼ, Sᶻᵢⱼ) is
# stored contiguously for each matrix element ij. This is the natural order
# for constructing the spin wave Hamiltonian.
for atom in 1:n_magnetic_atoms
U = local_quantization_bases[atom]
for μ = 1:3
Expand Down

0 comments on commit ba9c4c8

Please sign in to comment.