From 27c79d4e2033d121953fd92e36a13b89ff9e9e99 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Fri, 6 May 2016 15:15:31 +0100 Subject: [PATCH] Add some more sane tests --- tests/test_clifford.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_clifford.py b/tests/test_clifford.py index 5bbf5da..238d6bb 100644 --- a/tests/test_clifford.py +++ b/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])