summaryrefslogtreecommitdiff
path: root/single_dequantify.py
diff options
context:
space:
mode:
Diffstat (limited to 'single_dequantify.py')
-rw-r--r--single_dequantify.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/single_dequantify.py b/single_dequantify.py
index b2cb400..c5054f5 100644
--- a/single_dequantify.py
+++ b/single_dequantify.py
@@ -31,9 +31,11 @@ def sphere2cart(phi, theta):
mth.cos(theta)
]
+historie = npy.array([bloch_map(state)])
for i in range(iterations):
state = time_evolution(state)
h = npy.dot(state, state)
+ historie = npy.vstack([historie,bloch_map(state)])
coords = bloch_map(state)
coords = sphere2cart(coords[0], coords[1])
print(f"{coords[0]}; {coords[1]}; {coords[2]}")