Skip to content

Commit 66a90de

Browse files
committed
Assert a single 2q gate on controlled u decomposition
1 parent 5c6d650 commit 66a90de

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/python/transpiler/test_two_qubit_peephole.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ def test_two_qubit_parametrized_gates_controlled_u_target(
713713
dict(sorted(transpiled_circuit.count_ops().items())),
714714
dict(sorted(legacy.count_ops().items())),
715715
)
716+
self.assertEqual(transpiled_circuit.size(lambda x: x.operation.num_qubits == 2), 1)
716717

717718
def test_two_qubit_rzz_cz_gates_rzz_target(self):
718719
"""Test the synthesis of a circuit containing a RZZ and CZ gates

0 commit comments

Comments
 (0)