From f403e7c196287c62e65b5126a541e8350253e3eb Mon Sep 17 00:00:00 2001 From: Naohito Nakazawa <117684192+Naohnakazawa@users.noreply.github.com> Date: Sat, 10 Feb 2024 14:37:41 +0900 Subject: [PATCH] MultiStateDiscrimination update (Qiskit-Extensions#1238) --- .../multi_state_discrimination.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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\ `_