From a2924e74077d8b50f939b22df9e0ebdc439ef790 Mon Sep 17 00:00:00 2001 From: Astral Cai Date: Mon, 16 Sep 2024 16:39:31 -0400 Subject: [PATCH] Fix deprecated import path for `QubitDevice` --- pennylane_qiskit/qiskit_device_legacy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pennylane_qiskit/qiskit_device_legacy.py b/pennylane_qiskit/qiskit_device_legacy.py index d44a17d7..dc7c304f 100644 --- a/pennylane_qiskit/qiskit_device_legacy.py +++ b/pennylane_qiskit/qiskit_device_legacy.py @@ -27,7 +27,8 @@ from qiskit.converters import circuit_to_dag, dag_to_circuit from qiskit.providers import Backend, BackendV2, QiskitBackendNotFoundError -from pennylane import QubitDevice, DeviceError +from pennylane import DeviceError +from pennylane.devices import QubitDevice from pennylane.measurements import SampleMP, CountsMP, ClassicalShadowMP, ShadowExpvalMP from .converter import QISKIT_OPERATION_MAP