diff options
author | Ruben Erlenstedt <rxy626@gmail.com> | 2019-11-30 11:49:43 +0100 |
---|---|---|
committer | Ruben Erlenstedt <rxy626@gmail.com> | 2019-11-30 11:49:43 +0100 |
commit | 26cb7b3abac9365d5ceccabc7cdde900f8cde3bf (patch) | |
tree | 87cdeb691f8b1d829280acddb1fb0fcfd52de964 /single_dequantify.py | |
parent | 1df43952807a0182d5c42f42e97321443ff82a8c (diff) |
Add python plot for bloch sphere
Diffstat (limited to 'single_dequantify.py')
-rw-r--r-- | single_dequantify.py | 6 |
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]) |