Skip to content

Commit

Permalink
parity in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
christofbradly committed Aug 8, 2023
1 parent 065bf0d commit d74ab30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Hamiltonians/HOCartesianEnergyConserved.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ function loop_over_pairs(S, aspect, pairs, start, block_by_level)
mode_j = p_j.mode
if block_by_level
Es = find_Ebounds(mode_i, mode_j, S, aspect)
else
parity_ij = mod(mode_i + mode_j, 2)
end
# start with checking lowest possible states in first dimension (x)
k_start = 1
Expand Down

0 comments on commit d74ab30

Please sign in to comment.