Skip to content

Commit

Permalink
RoughDrag update (Qiskit-Extensions#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naohnakazawa committed Feb 10, 2024
1 parent cee91de commit 832b22c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions qiskit_experiments/library/characterization/drag.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,33 @@ class RoughDrag(BaseExperiment, RestlessMixin):
# section: analysis_ref
:class:`DragCalAnalysis`
# 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=101)
.. jupyter-execute::
import numpy as np
from qiskit import pulse
from qiskit.circuit import Parameter
from qiskit_experiments.library import RoughDrag
with pulse.build() as build_sched:
pulse.play(pulse.Drag(160, 0.50, 40, Parameter("beta")), pulse.DriveChannel(0))
exp = RoughDrag(physical_qubits=(0,),
schedule=build_sched,
betas = np.linspace(-4, 4, 51),
backend=backend,)
exp.set_experiment_options(reps=[3, 5, 7])
exp_data = exp.run().block_for_results()
exp_data.figure(0)
# section: reference
.. ref_arxiv:: 1 1011.1949
.. ref_arxiv:: 2 0901.0534
Expand Down

0 comments on commit 832b22c

Please sign in to comment.