fixed pravate varables
This commit is contained in:
parent
7653379aec
commit
3775903021
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ class MuBit:
|
||||||
"""Probs for i to be zero"""
|
"""Probs for i to be zero"""
|
||||||
M = Matrix([[1]])
|
M = Matrix([[1]])
|
||||||
|
|
||||||
for j in range(self.n):
|
for j in range(self.__n):
|
||||||
if j == i:
|
if j == i:
|
||||||
M *= Matrix([[1, 0], [0, 0]])
|
M *= Matrix([[1, 0], [0, 0]])
|
||||||
else:
|
else:
|
||||||
|
|
@ -90,7 +90,7 @@ class MuBit:
|
||||||
|
|
||||||
def observe(self) -> list[0]:
|
def observe(self) -> list[0]:
|
||||||
l = []
|
l = []
|
||||||
for i in range(self.n):
|
for i in range(self.__n):
|
||||||
l.append(IQuBit(i, self).observe())
|
l.append(IQuBit(i, self).observe())
|
||||||
return l
|
return l
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue