From 08ea54c4c41dd477619845961e4d1f04ffe12c89 Mon Sep 17 00:00:00 2001 From: Will Shanks Date: Fri, 2 Feb 2024 00:33:51 -0500 Subject: [PATCH] Switch from plot_histogram to plot_distribution in experiment manual --- docs/manuals/measurement/readout_mitigation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manuals/measurement/readout_mitigation.rst b/docs/manuals/measurement/readout_mitigation.rst index 8fa861a4ff..418e7c7be4 100644 --- a/docs/manuals/measurement/readout_mitigation.rst +++ b/docs/manuals/measurement/readout_mitigation.rst @@ -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 @@ -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