From 1adc6b1cc66c689a3f6f34a792f0cf00262dc692 Mon Sep 17 00:00:00 2001 From: redxe <45928180+redxe@users.noreply.github.com> Date: 2021年6月25日 12:16:47 -0400 Subject: [PATCH] Removed division of sqrt(2) that's not supposed to be on the X gate. Probably a copy & paste mistake --- ch03/simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch03/simulator.py b/ch03/simulator.py index 611ee60..81b377d 100644 --- a/ch03/simulator.py +++ b/ch03/simulator.py @@ -24,7 +24,7 @@ X = np.array([ [0, 1], [1, 0] -], dtype=complex) / np.sqrt(2) +], dtype=complex) class SimulatedQubit(Qubit): def __init__(self):

AltStyle によって変換されたページ (->オリジナル) /