From 4e617c2852353e52692b498ef2738548f20e8a8d Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Wed, 13 Dec 2023 18:55:38 +0400 Subject: [PATCH] fix bug --- src/qibo/quantum_info/quantum_networks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibo/quantum_info/quantum_networks.py b/src/qibo/quantum_info/quantum_networks.py index 417b115a61..99e1c3468d 100644 --- a/src/qibo/quantum_info/quantum_networks.py +++ b/src/qibo/quantum_info/quantum_networks.py @@ -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) return np.einsum("jklm,kl -> jl", self.matrix, state)