From b3c6bad7b98c156429c88e1ecad4ffb53db2871b Mon Sep 17 00:00:00 2001 From: Ruben Erlenstedt Date: Sat, 30 Nov 2019 13:24:06 +0100 Subject: Add factor -1 --- single_dequantify.py | 4 ++-- 1 file 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)]) -- cgit v1.2.3-54-g00ecf