From e152d122782959a04ebf2330f776d4c4e309ad14 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Wed, 28 Feb 2024 18:54:40 -0500 Subject: [PATCH] Update backend() type hint to BackendV2 (#1442) Co-authored-by: Jessie Yu --- qiskit_ibm_runtime/qiskit_runtime_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index 486ccbbb1..dfd1d5b00 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -20,7 +20,7 @@ from collections import OrderedDict from typing import Dict, Callable, Optional, Union, List, Any, Type, Sequence -from qiskit.providers.backend import BackendV1 as Backend +from qiskit.providers.backend import BackendV2 as Backend from qiskit.providers.provider import ProviderV1 as Provider from qiskit.providers.exceptions import QiskitBackendNotFoundError from qiskit.providers.providerutils import filter_backends