From 1e28d62eb0d7f80e946393ff18acf07a580c333f Mon Sep 17 00:00:00 2001 From: woodsp-ibm Date: Sat, 4 Nov 2023 00:21:22 -0400 Subject: [PATCH] Fix CI failure with Qiskit 0.45 - Trotter QDrift test --- test/time_evolvers/test_trotter_qrte.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)