瀏覽代碼

Fixed error in the Z gate

Adam Kelly 6 年之前
父節點
當前提交
53b7c2cd04
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]]))