From ee3e88ec951598d410eaee8de8975aa8cad3d700 Mon Sep 17 00:00:00 2001 From: ShellyGarion Date: Tue, 12 Nov 2024 08:44:09 -0600 Subject: [PATCH] add more gates for the tests --- test/python/synthesis/test_synthesis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/python/synthesis/test_synthesis.py b/test/python/synthesis/test_synthesis.py index bb639cc188a..4ebe5f791e5 100644 --- a/test/python/synthesis/test_synthesis.py +++ b/test/python/synthesis/test_synthesis.py @@ -46,6 +46,8 @@ RZXGate, CPhaseGate, CRZGate, + CRXGate, + CRYGate, RXGate, RYGate, RZGate, @@ -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))