瀏覽代碼

Add some more sane tests

master
Pete Shadbolt 8 年之前
父節點
當前提交
27c79d4e20
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      tests/test_clifford.py

+ 3
- 0
tests/test_clifford.py 查看文件

@@ -75,4 +75,7 @@ def test_cz_table_is_symmetric():

def test_cz_table_makes_sense():
""" Test the CZ table is symmetric """
hadamard = clifford.by_name["hadamard"]
assert all(clifford.cz_table[0, 0, 0] == [1, 0, 0])
assert all(clifford.cz_table[1, 0, 0] == [0, 0, 0])
assert all(clifford.cz_table[0, hadamard, hadamard] == [0, hadamard, hadamard])

Loading…
取消
儲存