Skip to content

Commit

Permalink
add test_gates
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDuffield committed Sep 14, 2022
1 parent 6e7fa18 commit f00ced0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_gates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from qujax import gates
from qujax.circuit_tools import check_unitary


def test_gates():
for g_str, g in gates.__dict__.items():
if g_str[0] != '_' and g_str != 'jnp':
check_unitary(g_str)
check_unitary(g)

0 comments on commit f00ced0

Please sign in to comment.