Skip to content

Commit

Permalink
Release 0.15 (Qiskit#2204)
Browse files Browse the repository at this point in the history
* Release 0.15

* add deprecation warnings to V1 primitives

* lint
  • Loading branch information
doichanj authored Aug 23, 2024
1 parent c5a285b commit 11a89c4
Show file tree
Hide file tree
Showing 24 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qiskit_aer/primitives/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def __init__(
abelian_grouping: Whether the observable should be grouped into commuting.
If approximation is True, this parameter is ignored and assumed to be False.
"""
warn(
"Estimator has been deprecated as of Aer 0.15, please use EstimatorV2 instead.",
DeprecationWarning,
stacklevel=3,
)
super().__init__(options=run_options)
# These three private attributes used to be created by super, but were deprecated in Qiskit
# 0.46. See https://github.com/Qiskit/qiskit/pull/11051
Expand Down
6 changes: 6 additions & 0 deletions qiskit_aer/primitives/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from collections.abc import Sequence

from warnings import warn
import numpy as np
from qiskit.circuit import ParameterExpression, QuantumCircuit
from qiskit.compiler import transpile
Expand Down Expand Up @@ -66,6 +67,11 @@ def __init__(
run_options: Options passed to run.
skip_transpilation: if True, transpilation is skipped.
"""
warn(
"Sampler has been deprecated as of Aer 0.15, please use SamplerV2 instead.",
DeprecationWarning,
stacklevel=3,
)
super().__init__(options=run_options)
# These two private attributes used to be created by super, but were deprecated in Qiskit
# 0.46. See https://github.com/Qiskit/qiskit/pull/11051
Expand Down

0 comments on commit 11a89c4

Please sign in to comment.