Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Dec 13, 2023
1 parent df3189e commit 4e617c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/quantum_info/quantum_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def apply(self, state):
Returns:
ndarray: Resulting state :math:`\\mathcal{E}(\\varrho)`.
"""
if self.is_pure():
if self.is_pure:
return np.einsum("jk,lm,jl -> km", self.matrix, np.conj(self.matrix), state)

Check warning on line 283 in src/qibo/quantum_info/quantum_networks.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_networks.py#L282-L283

Added lines #L282 - L283 were not covered by tests

return np.einsum("jklm,kl -> jl", self.matrix, state)

Check warning on line 285 in src/qibo/quantum_info/quantum_networks.py

View check run for this annotation

Codecov / codecov/patch

src/qibo/quantum_info/quantum_networks.py#L285

Added line #L285 was not covered by tests

0 comments on commit 4e617c2

Please sign in to comment.