Skip to content

Commit

Permalink
slight cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
apchytr committed Sep 19, 2024
1 parent e70814f commit f3381b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mrmustard/lab_dev/circuit_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,7 @@ def quadrature(self, quad: Batch[Vector], phi: float = 0.0) -> ComplexTensor:
if isinstance(self.representation, Fock):
fock_arrays = self.representation.array
# Find where all the bras and kets are so they can be conjugated appropriately
conjugates = [
False if i in self.wires.ket.indices else True
for i in range(len(self.wires.indices))
]
conjugates = [i not in self.wires.ket.indices for i in range(len(self.wires.indices))]
quad_basis = math.sum(
[quadrature_basis(array, quad, conjugates, phi) for array in fock_arrays], axes=[0]
)
Expand Down

0 comments on commit f3381b2

Please sign in to comment.