summaryrefslogtreecommitdiff
path: root/single_dequantify.py
diff options
context:
space:
mode:
Diffstat (limited to 'single_dequantify.py')
-rw-r--r--single_dequantify.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/single_dequantify.py b/single_dequantify.py
index fa5f017..a4a3021 100644
--- a/single_dequantify.py
+++ b/single_dequantify.py
@@ -5,9 +5,7 @@ import cmath as cmt
import numpy as npy
import scipy.linalg as sla
-#alpha = 1 / npy.sqrt(2)
alpha = 1
-#beta = 1 / npy.sqrt(2)
beta = 1
norm = npy.linalg.norm([alpha, beta])
@@ -18,7 +16,6 @@ iterations = 61
H = npy.array([[2,0],[0,3]])
-
def time_evolution(state, dt = dt):
return npy.dot(state, sla.expm(-1j * dt * H))
@@ -48,4 +45,5 @@ for i in range(iterations):
f.write(f"{coords[0]}; {coords[1]}; {coords[2]}; {(i + 1) / iterations}\n")
f.close()
+
subprocess.run(["gnuplot", "gnuplot.plt"])