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 Mar 19, 2024
1 parent 8664376 commit 0a1713f
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions qiskit_experiments/library/characterization/half_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,14 @@ class HalfAngle(BaseExperiment):
.. 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()
result = exp_data.analysis_results()
exp_data.figure(0)
# section: reference
Expand Down

0 comments on commit 0a1713f

Please sign in to comment.