diff --git a/test/time_evolvers/test_trotter_qrte.py b/test/time_evolvers/test_trotter_qrte.py index e50bf8af..a5e1fb9a 100644 --- a/test/time_evolvers/test_trotter_qrte.py +++ b/test/time_evolvers/test_trotter_qrte.py @@ -175,8 +175,7 @@ def test_trotter_qrte_qdrift(self, initial_state, expected_state): time = 1 evolution_problem = TimeEvolutionProblem(operator, time, initial_state) - algorithm_globals.random_seed = 0 - trotter_qrte = TrotterQRTE(product_formula=QDrift()) + trotter_qrte = TrotterQRTE(product_formula=QDrift(seed=0)) evolution_result = trotter_qrte.evolve(evolution_problem)