Skip to content

Commit

Permalink
bump to qiskit 1.1 (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-imamichi authored May 29, 2024
1 parent 33f296a commit cf64858
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 1,692 deletions.
22 changes: 13 additions & 9 deletions qiskit_ibm_runtime/fake_provider/local_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,24 @@

from __future__ import annotations

import logging
import copy
from typing import Dict, Union, Literal
import logging
import warnings
from dataclasses import asdict

from qiskit.utils import optionals
from qiskit.providers.backend import BackendV1, BackendV2
from qiskit.primitives import BackendSampler, BackendEstimator
from typing import Dict, Literal, Union

from qiskit.primitives import (
BackendEstimator,
BackendEstimatorV2,
BackendSampler,
BackendSamplerV2,
)
from qiskit.primitives.primitive_job import PrimitiveJob
from qiskit.providers.backend import BackendV1, BackendV2
from qiskit.utils import optionals

from ..runtime_options import RuntimeOptions
from ..ibm_backend import IBMBackend
from ..qiskit.primitives import BackendEstimatorV2, BackendSamplerV2 # type: ignore[attr-defined]
from ..runtime_options import RuntimeOptions

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -137,7 +141,7 @@ def _run_aer_primitive_v1(
The job object of the result of the primitive.
"""
# pylint: disable=import-outside-toplevel
from qiskit_aer.primitives import Sampler, Estimator
from qiskit_aer.primitives import Estimator, Sampler

# TODO: issue warning if extra options are used
options_copy = copy.deepcopy(options)
Expand Down
15 changes: 0 additions & 15 deletions qiskit_ibm_runtime/qiskit/__init__.py

This file was deleted.

19 changes: 0 additions & 19 deletions qiskit_ibm_runtime/qiskit/primitives/__init__.py

This file was deleted.

295 changes: 0 additions & 295 deletions qiskit_ibm_runtime/qiskit/primitives/backend_estimator_v2.py

This file was deleted.

Loading

0 comments on commit cf64858

Please sign in to comment.