Skip to content

Commit

Permalink
Passes black
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Quesada committed Apr 24, 2024
1 parent 8af3290 commit 6c18994
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thewalrus/internal_modes/fock_density_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def _density_matrix_single_mode(
haf_arr += haf_arr_new

rho = (
(-1) ** sum(pattern) * haf_arr / (np.sqrt(np.linalg.det(Q).real) * np.prod(fact[np.array(pattern)]))
(-1) ** sum(pattern)
* haf_arr
/ (np.sqrt(np.linalg.det(Q).real) * np.prod(fact[np.array(pattern)]))
)

for n in range(cutoff):
Expand Down

0 comments on commit 6c18994

Please sign in to comment.