Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sametz committed Dec 8, 2023
1 parent 681749f commit 6ea2dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nmrsim/qm.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _transition_matrix_dense(nspins):
# If m is a power of two, it will look like 100[...]00 in binary
# m-1 will look like 011[...]11 in binary.
# Using a binary and, we should then get 0.
if m > 0 and m & (m-1) == 0:
if m > 0 and m & (m - 1) == 0:
T[i, j] = 1
T += T.T
return T
Expand Down

0 comments on commit 6ea2dd8

Please sign in to comment.