Skip to content

Commit

Permalink
add more gates for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyGarion committed Nov 12, 2024
1 parent 06c3da4 commit ee3e88e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/python/synthesis/test_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
RZXGate,
CPhaseGate,
CRZGate,
CRXGate,
CRYGate,
RXGate,
RYGate,
RZGate,
Expand Down Expand Up @@ -1426,7 +1428,7 @@ class TestTwoQubitControlledUDecompose(CheckDecompositions):
def test_correct_unitary(self, seed):
"""Verify unitary for different gates in the decomposition"""
unitary = random_unitary(4, seed=seed)
for gate in [RXXGate, RYYGate, RZZGate, RZXGate, CPhaseGate, CRZGate]:
for gate in [RXXGate, RYYGate, RZZGate, RZXGate, CPhaseGate, CRZGate, CRXGate, CRYGate]:
decomposer = TwoQubitControlledUDecomposer(gate)
circ = decomposer(unitary)
self.assertEqual(Operator(unitary), Operator(circ))
Expand Down

0 comments on commit ee3e88e

Please sign in to comment.