Skip to content

Commit

Permalink
Switch from plot_histogram to plot_distribution in experiment manual
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Feb 2, 2024
1 parent db6f49f commit 08ea54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/manuals/measurement/readout_mitigation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ experiments to generate the corresponding mitigators.
import numpy as np
import matplotlib.pyplot as plt
from qiskit import QuantumCircuit
from qiskit.visualization import plot_histogram
from qiskit.visualization import plot_distribution
from qiskit_experiments.library import LocalReadoutError, CorrelatedReadoutError

from qiskit_aer import AerSimulator
Expand Down Expand Up @@ -128,7 +128,7 @@ Probabilities
.. jupyter-execute::

legend = ['Mitigated Probabilities', 'Unmitigated Probabilities']
plot_histogram([mitigated_probs, unmitigated_probs], legend=legend, sort="value_desc", bar_labels=False)
plot_distribution([mitigated_probs, unmitigated_probs], legend=legend, sort="value_desc", bar_labels=False)


Expectation value
Expand Down

0 comments on commit 08ea54c

Please sign in to comment.