From 42f8ecabfbaee55b0db1511739d0b94139b33e91 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Wed, 13 Dec 2023 14:18:02 +0400 Subject: [PATCH] fix bug --- src/qibo/quantum_info/quantum_network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qibo/quantum_info/quantum_network.py b/src/qibo/quantum_info/quantum_network.py index ee35b53ca3..8bee85ab4c 100644 --- a/src/qibo/quantum_info/quantum_network.py +++ b/src/qibo/quantum_info/quantum_network.py @@ -1,5 +1,7 @@ """Module defining the QuantumNetwork class and adjacent functions.""" +# %% + from functools import reduce from operator import mul from typing import List, Optional, Tuple, Union @@ -89,7 +91,7 @@ def _set_tensor_and_parameters(self): if self.system_output is None: self.system_output = (False,) if len(self.partition) == 1 else (False, True) else: - self.system_output = tuple(system_output) + self.system_output = tuple(self.system_output) @property def is_pure(self):