diff --git a/qiskit_experiments/library/characterization/multi_state_discrimination.py b/qiskit_experiments/library/characterization/multi_state_discrimination.py index ffea405a52..c30434ee96 100644 --- a/qiskit_experiments/library/characterization/multi_state_discrimination.py +++ b/qiskit_experiments/library/characterization/multi_state_discrimination.py @@ -53,6 +53,24 @@ class MultiStateDiscrimination(BaseExperiment): # section: analysis_ref :class:`MultiStateDiscriminationAnalysis` + # section: example + .. jupyter-execute:: + :hide-code: + + # backend + from qiskit_experiments.test.pulse_backend import SingleTransmonTestBackend + backend = SingleTransmonTestBackend(5.2e9,-.25e9, 1e9, 0.8e9, 1e4, noise=False, seed=199) + + .. jupyter-execute:: + + from qiskit_experiments.library.characterization import MultiStateDiscrimination + + qubit=0 + exp=MultiStateDiscrimination([qubit], backend=backend) + exp_data=exp.run().block_for_results() + result=exp_data.analysis_results() + exp_data.figure(0) + # section: reference `Qiskit Textbook\ `_