Skip to content

Commit 83c3262

Browse files
committed
Remove code deprecated in 0.9
The following parts of the code deprecated in 0.9 are removed here: * `PulseBackend` and `SingleTransmonTestBackend` * `RestlessNode`, `RestToCounts`, and `RestlessToIQ` * The curve analysis `utils` functions `data_sort`, `filter_data`, `mean_xy_data`, and `multi_mean_xy_data` * The `ScatterTable` methods/attributes `data_allocation`, `labels`, and `get_subset_of` 0.9 was released on March 18, 2025, so these removals should not be released until June 18th according to the deprecation policy.
1 parent f3490aa commit 83c3262

File tree

21 files changed

+45
-1830
lines changed

21 files changed

+45
-1830
lines changed

docs/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161
"uncertainties": ("https://pythonhosted.org/uncertainties", None),
162162
"pandas": ("http://pandas.pydata.org/docs/", None),
163163
"qiskit_aer": ("https://qiskit.github.io/qiskit-aer/", None),
164-
"qiskit_dynamics": ("https://qiskit-community.github.io/qiskit-dynamics/", None),
165164
"qiskit_ibm_runtime": ("https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/", None),
166165
}
167166

docs/tutorials/visualization.rst

+3-19
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,9 @@ Generating and customizing a figure using a plotter
3434
First, we display the default figure from a :class:`.T1` experiment as a starting point:
3535

3636
.. note::
37-
This tutorial requires the :mod:`qiskit_dynamics`, :external+qiskit_aer:doc:`qiskit-aer <index>`, and
38-
:external+qiskit_ibm_runtime:doc:`qiskit-ibm-runtime <index>` packages to run simulations. You can install them
39-
with ``python -m pip install qiskit-dynamics qiskit-aer qiskit-ibm-runtime``.
40-
41-
.. jupyter-execute::
42-
:hide-code:
43-
44-
import warnings
45-
46-
warnings.filterwarnings(
47-
"ignore",
48-
message=".*Due to the deprecation of Qiskit Pulse.*",
49-
category=DeprecationWarning,
50-
)
51-
warnings.filterwarnings(
52-
"ignore",
53-
message=".*The entire Qiskit Pulse package is being deprecated.*",
54-
category=DeprecationWarning,
55-
)
37+
This tutorial requires the :external+qiskit_aer:doc:`qiskit-aer <index>`
38+
package to run simulations. You can install it
39+
with ``python -m pip install qiskit-aer``.
5640

5741
.. jupyter-execute::
5842

qiskit_experiments/curve_analysis/__init__.py

-8
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,9 @@
9393
9494
utils.analysis_result_to_repr
9595
utils.convert_lmfit_result
96-
utils.data_sort
9796
utils.eval_with_uncertainties
98-
utils.filter_data
9997
utils.inverse_weighted_variance
10098
utils.is_error_not_significant
101-
utils.mean_xy_data
102-
utils.multi_mean_xy_data
10399
utils.level2_probability
104100
utils.probability
105101
utils.sample_average
@@ -115,10 +111,6 @@
115111
FitOptions,
116112
ParameterRepr,
117113
)
118-
from .curve_fit import (
119-
process_curve_data,
120-
process_multi_curve_data,
121-
)
122114
from . import guess
123115
from . import fit_function
124116
from . import utils

qiskit_experiments/curve_analysis/curve_fit.py

-87
This file was deleted.

qiskit_experiments/curve_analysis/scatter_table.py

-42
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import numpy as np
2424
import pandas as pd
2525

26-
from qiskit.utils import deprecate_func
27-
2826

2927
LOG = logging.getLogger(__name__)
3028

@@ -406,46 +404,6 @@ def _warn_composite_data(self):
406404
UserWarning,
407405
)
408406

409-
@property
410-
@deprecate_func(
411-
since="0.9",
412-
additional_msg="Curve data uses dataframe representation. Call .series_id instead.",
413-
package_name="qiskit-experiments",
414-
is_property=True,
415-
)
416-
def data_allocation(self) -> np.ndarray:
417-
"""Index of corresponding fit model."""
418-
return self.series_id
419-
420-
@property
421-
@deprecate_func(
422-
since="0.9",
423-
additional_msg="No alternative is provided. Use .series_name with set operation.",
424-
package_name="qiskit-experiments",
425-
is_property=True,
426-
)
427-
def labels(self) -> list[str]:
428-
"""List of model names."""
429-
# Order sensitive
430-
name_id_tups = self.dataframe.groupby(["series_name", "series_id"]).groups.keys()
431-
return [k[0] for k in sorted(name_id_tups, key=lambda k: k[1])]
432-
433-
@deprecate_func(
434-
since="0.9",
435-
additional_msg="Use filter method instead.",
436-
package_name="qiskit-experiments",
437-
)
438-
def get_subset_of(self, index: str | int) -> "ScatterTable":
439-
"""Filter data by series name or index.
440-
441-
Args:
442-
index: Series index of name.
443-
444-
Returns:
445-
A subset of data corresponding to a particular series.
446-
"""
447-
return self.filter(series=index)
448-
449407
def __len__(self):
450408
"""Return the number of data points stored in the table."""
451409
return len(self.dataframe)

0 commit comments

Comments
 (0)