From f0671baa07f89d0dae121d38e1145ef4f4872b5d Mon Sep 17 00:00:00 2001 From: Hunter Kemeny <43501602+hunterkemeny@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:32:34 -0500 Subject: [PATCH] Add release notes --- qiskit/visualization/counts_visualization.py | 7 ------- ...ode-deprecated-in-0.22-7bc99235f5912424.yaml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 releasenotes/notes/remove-visualization-code-deprecated-in-0.22-7bc99235f5912424.yaml diff --git a/qiskit/visualization/counts_visualization.py b/qiskit/visualization/counts_visualization.py index 4c938fbd2dab..546a027b5b79 100644 --- a/qiskit/visualization/counts_visualization.py +++ b/qiskit/visualization/counts_visualization.py @@ -74,13 +74,6 @@ def plot_histogram( Args: data (list or dict): This is either a list of dictionaries or a single dict containing the values to represent (ex ``{'001': 130}``) - Note: Passing `QuasiDistribution`, `ProbDistribution`, or a distribution dictionary - to the `data` argument is deprecated. - - If you would like to plot a histogram from a `QuasiDistribution`, - `ProbDistribution`, or a distribution dictionary you should be using the - :func:`.plot_distribution` function. - figsize (tuple): Figure size in inches. color (list or str): String or list of strings for histogram bar colors. diff --git a/releasenotes/notes/remove-visualization-code-deprecated-in-0.22-7bc99235f5912424.yaml b/releasenotes/notes/remove-visualization-code-deprecated-in-0.22-7bc99235f5912424.yaml new file mode 100644 index 000000000000..d8b7d9626ac6 --- /dev/null +++ b/releasenotes/notes/remove-visualization-code-deprecated-in-0.22-7bc99235f5912424.yaml @@ -0,0 +1,17 @@ +deprecations: + - | + Removing deprecated visualization code (deprecated in 0.22). + + For plot_histogram visualization: Passing `QuasiDistribution`, `ProbDistribution`, + or a distribution dictionary to the `data` argument is deprecated. + If you would like to plot a histogram from a `QuasiDistribution`, + `ProbDistribution`, or a distribution dictionary you should be using the + :func:`.plot_distribution` function. + + Also removed reverse-bits argument deprecation from + -- `get_bit_get_index` + -- `get_condition_label_val` + -- + + +