summaryrefslogtreecommitdiff
path: root/single_dequantify.py
diff options
context:
space:
mode:
authorRuben Erlenstedt <rxy626@gmail.com>2019-11-30 11:49:43 +0100
committerRuben Erlenstedt <rxy626@gmail.com>2019-11-30 11:49:43 +0100
commit26cb7b3abac9365d5ceccabc7cdde900f8cde3bf (patch)
tree87cdeb691f8b1d829280acddb1fb0fcfd52de964 /single_dequantify.py
parent1df43952807a0182d5c42f42e97321443ff82a8c (diff)
Add python plot for bloch sphere
Diffstat (limited to 'single_dequantify.py')
-rw-r--r--single_dequantify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/single_dequantify.py b/single_dequantify.py
index c5054f5..cd302af 100644
--- a/single_dequantify.py
+++ b/single_dequantify.py
@@ -10,7 +10,7 @@ beta = 1 / npy.sqrt(2)
state = npy.array([alpha, beta])
dt = 0.2
-iterations = 200
+iterations = 20
H = npy.array([[2,-2j],[2j,3]])
@@ -40,7 +40,7 @@ for i in range(iterations):
coords = sphere2cart(coords[0], coords[1])
print(f"{coords[0]}; {coords[1]}; {coords[2]}")
-
-
+import plotting
+plotting.phi(historie[:,0])