From 91db71e24813cbe3056ff64b124311014aaa97de Mon Sep 17 00:00:00 2001 From: Will Shanks Date: Wed, 18 Oct 2023 16:34:12 -0400 Subject: [PATCH] Again --- .../characterization/test_cross_resonance_hamiltonian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/library/characterization/test_cross_resonance_hamiltonian.py b/test/library/characterization/test_cross_resonance_hamiltonian.py index 07168a1fc6..540c0e0dc4 100644 --- a/test/library/characterization/test_cross_resonance_hamiltonian.py +++ b/test/library/characterization/test_cross_resonance_hamiltonian.py @@ -25,7 +25,7 @@ # TODO: remove old path after we stop supporting the relevant version of Qiskit try: from qiskit.circuit.library.hamiltonian_gate import HamiltonianGate -except ImportError: +except ModuleNotFoundError: from qiskit.extensions.hamiltonian_gate import HamiltonianGate from qiskit_aer import AerSimulator