Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow importing SamplerV1 and EstimatorV1 (Cherry-pick of #1477) #1478

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions qiskit_ibm_runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@

QiskitRuntimeService
Estimator
EstimatorV1
EstimatorV2
Sampler
SamplerV1
SamplerV2
Session
IBMBackend
RuntimeJob
Expand All @@ -169,8 +173,16 @@
from .utils.utils import setup_logger
from .version import __version__

from .estimator import EstimatorV2, EstimatorV1 as Estimator
from .sampler import SamplerV2, SamplerV1 as Sampler
from .estimator import ( # pylint: disable=reimported
EstimatorV2,
EstimatorV1,
EstimatorV1 as Estimator,
)
from .sampler import ( # pylint: disable=reimported
SamplerV2,
SamplerV1,
SamplerV1 as Sampler,
)
from .options import Options, EstimatorOptions, SamplerOptions

# Setup the logger for the IBM Quantum Provider package.
Expand Down