summaryrefslogtreecommitdiff
path: root/twoqbit_dequantify.py
diff options
context:
space:
mode:
Diffstat (limited to 'twoqbit_dequantify.py')
-rw-r--r--twoqbit_dequantify.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/twoqbit_dequantify.py b/twoqbit_dequantify.py
index af2e506..df7267e 100644
--- a/twoqbit_dequantify.py
+++ b/twoqbit_dequantify.py
@@ -17,9 +17,6 @@ M1 = [[0,0,1,0],[0,0,0,1],[1,0,0,0],[0,1,0,0]]
M2 = [[0,0,-1j,0],[0,0,0,-1j],[1j,0,0,0],[0,1j,0,0]]
M3 = [[0,0,0,1],[0,0,-1,0],[0,-1,0,0],[1,0,0,0]]
-if len(sys.argv) == 3:
- alpha = complex(sys.argv[1])
- beta = complex(sys.argv[2])
def init_state(i):
alpha = 2
@@ -38,8 +35,8 @@ def init_state(i):
return (state, H)
-def time_evolution(state, dt = dt):
- return (npy.dot(state[0], state[1]), state[1])
+def time_evolution(state, dt=dt):
+ return (npy.dot(*state), state[1])
def fibration(state):
x0=npy.dot(npy.conj(state),npy.dot(M0,state))