Skip to content

Commit c2f8004

Browse files
committed
Move aer and runtime imports in aer plugin
1 parent 7230e40 commit c2f8004

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

qiskit_neko/aer_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class AerBackendPlugin(backend_plugin.BackendPlugin):
2020

2121
def __init__(self):
2222
from qiskit_ibm_runtime.fake_provider import FakeProviderForBackendV2
23+
2324
super().__init__()
2425
self.mock_provider = FakeProviderForBackendV2()
2526
self.mock_provider_backend_names = set()
@@ -45,6 +46,7 @@ def get_backend(self, backend_selection=None):
4546
:raises ValueError: If an invalid backend selection string is passed in
4647
"""
4748
import qiskit_aer as aer
49+
4850
if backend_selection is None:
4951
return aer.AerSimulator()
5052
if backend_selection.startswith("method="):

0 commit comments

Comments
 (0)