Przeglądaj źródła

Fixed error in the Z gate

Adam Kelly 6 lat temu
rodzic
commit
53b7c2cd04
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      qcgpu/gate.py

+ 1 - 1
qcgpu/gate.py

@@ -31,4 +31,4 @@ def y():
     return Gate(np.matrix([[0, -1j], [1j, 0]]))
 
 def z():
-    return Gate(np.matrix([[1, 0], [0, -1j]]))
+    return Gate(np.matrix([[1, 0], [0, -1]]))