summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Erlenstedt <rxy626@gmail.com>2019-11-30 13:24:06 +0100
committerRuben Erlenstedt <rxy626@gmail.com>2019-11-30 13:24:06 +0100
commitb3c6bad7b98c156429c88e1ecad4ffb53db2871b (patch)
tree012afefc1db034f0d5ef6124cf2b7d88e08ee8f1
parentf9c03dd84deb8639747c1e8c6a9c29cbe7c9a36d (diff)
Add factor -1
-rw-r--r--single_dequantify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/single_dequantify.py b/single_dequantify.py
index a4a3021..8e801a1 100644
--- a/single_dequantify.py
+++ b/single_dequantify.py
@@ -5,7 +5,7 @@ import cmath as cmt
import numpy as npy
import scipy.linalg as sla
-alpha = 1
+alpha = 3
beta = 1
norm = npy.linalg.norm([alpha, beta])
@@ -30,7 +30,7 @@ def sphere2cart(phi, theta):
return [
mth.sin(theta) * mth.cos(phi),
mth.sin(theta) * mth.sin(phi),
- mth.cos(theta)
+ -1 * mth.cos(theta)
]
historie = npy.array([bloch_map(state)])