Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeffbulmer committed Jun 28, 2021
1 parent 36daa57 commit 094ca1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strawberryfields/compilers/passive.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def compile(self, seq, registers):
elif name == "Interferometer":
U = params[0]
if U.shape == (1, 1):
T = _apply_one_mode_gate(U[0,0], T, dict_indices[modes[0]])
T = _apply_one_mode_gate(U[0, 0], T, dict_indices[modes[0]])
elif U.shape == (2, 2):
T = _apply_two_mode_gate(U, T, dict_indices[modes[0]], dict_indices[modes[1]])
else:
Expand All @@ -179,7 +179,7 @@ def compile(self, seq, registers):
elif name == "PassiveChannel":
T0 = params[0]
if T0.shape == (1, 1):
T = _apply_one_mode_gate(T0[0,0], T, dict_indices[modes[0]])
T = _apply_one_mode_gate(T0[0, 0], T, dict_indices[modes[0]])
elif T0.shape == (2, 2):
T = _apply_two_mode_gate(T0, T, dict_indices[modes[0]], dict_indices[modes[1]])
else:
Expand Down

0 comments on commit 094ca1d

Please sign in to comment.