From 3775903021878b476a8147da6d3e8fa241bb2661 Mon Sep 17 00:00:00 2001 From: Didictateur Date: Fri, 20 Oct 2023 08:19:14 +0200 Subject: [PATCH] fixed pravate varables --- QElephant/QuBit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QElephant/QuBit.py b/QElephant/QuBit.py index ce791f3..8098a0b 100644 --- a/QElephant/QuBit.py +++ b/QElephant/QuBit.py @@ -79,7 +79,7 @@ class MuBit: """Probs for i to be zero""" M = Matrix([[1]]) - for j in range(self.n): + for j in range(self.__n): if j == i: M *= Matrix([[1, 0], [0, 0]]) else: @@ -90,7 +90,7 @@ class MuBit: def observe(self) -> list[0]: l = [] - for i in range(self.n): + for i in range(self.__n): l.append(IQuBit(i, self).observe()) return l