Skip to content

Commit

Permalink
HalfAngle 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 6357a2c commit 6924892
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions qiskit_experiments/library/characterization/half_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,41 @@ class HalfAngle(BaseExperiment):
# section: analysis_ref
:class:`.ErrorAmplificationAnalysis`
# 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 import pulse
from qiskit_experiments.library.characterization import HalfAngle
qubit=0
exp = HalfAngle([qubit], backend=backend)
print(exp.circuits()[5])
.. jupyter-execute::
inst_map = backend.defaults().instruction_schedule_map
with pulse.build(backend=backend, name="y") as sched_build:
pulse.play(pulse.Drag(duration=160,
sigma=40,
beta=5,
amp=0.05821399464431249,
angle=0.0,
name="Yp_d0"
), pulse.DriveChannel(0), name="Yp_d0")
inst_map.add("y", (qubit,), sched_build)
exp.set_transpile_options(inst_map=inst_map)
exp.set_run_options(shots=1000, seed_simulator=178)
exp_data = exp.run().block_for_results()
exp_data.figure(0)
# section: reference
.. ref_arxiv:: 1 1504.06597
"""
Expand Down

0 comments on commit 6924892

Please sign in to comment.