diff --git a/test/python/transpiler/test_unitary_synthesis.py b/test/python/transpiler/test_unitary_synthesis.py index 89af400e63cb..a2877ce8d9cb 100644 --- a/test/python/transpiler/test_unitary_synthesis.py +++ b/test/python/transpiler/test_unitary_synthesis.py @@ -40,8 +40,6 @@ ConsolidateBlocks, Optimize1qGates, SabreLayout, - Depth, - FixedPoint, Unroll3qOrMore, CheckMap, BarrierBeforeFinalMeasurements, @@ -478,9 +476,6 @@ def test_qv_natural(self): qv64 = QuantumVolume(5, seed=15) def construct_passmanager(basis_gates, coupling_map, synthesis_fidelity, pulse_optimize): - def _repeat_condition(property_set): - return not property_set["depth_fixed_point"] - seed = 2 _map = [SabreLayout(coupling_map, max_iterations=2, seed=seed)] _unroll3q = Unroll3qOrMore() @@ -489,7 +484,6 @@ def _repeat_condition(property_set): BarrierBeforeFinalMeasurements(), SabreSwap(coupling_map, heuristic="lookahead", seed=seed), ] - _check_depth = [Depth(), FixedPoint("depth")] _optimize = [ Collect2qBlocks(), ConsolidateBlocks(basis_gates=basis_gates), @@ -508,9 +502,7 @@ def _repeat_condition(property_set): pm.append(_unroll3q) pm.append(_swap_check) pm.append(_swap) - pm.append( - _check_depth + _optimize, do_while=_repeat_condition - ) # translate to & optimize over hardware native gates + pm.append(_optimize) return pm coupling_map = CouplingMap([[0, 1], [1, 2], [3, 2], [3, 4], [5, 4]])