From 59ccc4781c9e48d78459aa581011f891af1a29f5 Mon Sep 17 00:00:00 2001 From: Naohito Nakazawa <117684192+Naohnakazawa@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:33:34 +0900 Subject: [PATCH] T1 update (Qiskit-Extensions#1238) --- .../library/characterization/t1.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qiskit_experiments/library/characterization/t1.py b/qiskit_experiments/library/characterization/t1.py index 0554599a25..39e7b5625d 100644 --- a/qiskit_experiments/library/characterization/t1.py +++ b/qiskit_experiments/library/characterization/t1.py @@ -37,6 +37,25 @@ class T1(BaseExperiment): # section: analysis_ref :class:`.T1Analysis` + # section: example + .. jupyter-execute:: + :hide-code: + + # backend + from qiskit_ibm_runtime.fake_provider import FakeManilaV2 + from qiskit_aer import AerSimulator + backend = AerSimulator.from_backend(FakeManilaV2()) + + .. jupyter-execute:: + + from qiskit_experiments.library import T1 + import numpy as np + + delays = np.arange(1.e-6, 300.e-6, 30.e-6) + exp = T1(physical_qubits=(0, ), delays=delays, backend=backend) + exp_data = exp.run().block_for_results() + display(exp_data.figure(0)) + # section: manual :doc:`/manuals/characterization/t1`