diff --git a/qiskit/transpiler/preset_passmanagers/level1.py b/qiskit/transpiler/preset_passmanagers/level1.py index c4b418ede221..45d615e74ab9 100644 --- a/qiskit/transpiler/preset_passmanagers/level1.py +++ b/qiskit/transpiler/preset_passmanagers/level1.py @@ -119,7 +119,7 @@ def _swap_condition(property_set): if routing_method == 'basic': _swap += [BasicSwap(coupling_map)] elif routing_method == 'stochastic': - _swap += [StochasticSwap(coupling_map, trials=50, seed=seed_transpiler)] + _swap += [StochasticSwap(coupling_map, trials=20, seed=seed_transpiler)] elif routing_method == 'lookahead': _swap += [LookaheadSwap(coupling_map, search_depth=4, search_width=4)] else: diff --git a/qiskit/transpiler/preset_passmanagers/level2.py b/qiskit/transpiler/preset_passmanagers/level2.py index 00684039b929..26374142de04 100644 --- a/qiskit/transpiler/preset_passmanagers/level2.py +++ b/qiskit/transpiler/preset_passmanagers/level2.py @@ -114,7 +114,7 @@ def _swap_condition(property_set): if routing_method == 'basic': _swap += [BasicSwap(coupling_map)] elif routing_method == 'stochastic': - _swap += [StochasticSwap(coupling_map, trials=100, seed=seed_transpiler)] + _swap += [StochasticSwap(coupling_map, trials=20, seed=seed_transpiler)] elif routing_method == 'lookahead': _swap += [LookaheadSwap(coupling_map, search_depth=5, search_width=5)] else: