Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Fix measurement pulse alignment bug (#466)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Treinish <[email protected]>
  • Loading branch information
nkanazawa1989 and mtreinish authored Aug 6, 2020
1 parent 2c045ce commit 439b3ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/ignis/characterization/calibrations/pulse_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import qiskit.pulse as pulse
import qiskit.pulse.library as pulse_lib
from qiskit.exceptions import QiskitError
from qiskit.scheduler import measure
from qiskit.pulse.macros import measure


def rabi_schedules(amp_list, qubits, pulse_width, pulse_sigma=None,
Expand Down Expand Up @@ -148,7 +148,7 @@ def drag_schedules(beta_list, qubits, pulse_amp, pulse_width,
name='drag_pulse_%d_%d' % (index, qubit))
sched += pulse.Play(drag_pulse_p, drives[qubit])
sched += pulse.Play(drag_pulse_m, drives[qubit])
sched += measure(qubits, inst_map=inst_map, meas_map=meas_map).shift(pulse_width)
sched += measure(qubits, inst_map=inst_map, meas_map=meas_map).shift(2*pulse_width)
drag_scheds.append(sched)

return drag_scheds, xdata
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fix a bug of the position of measurement pulses inserted by
py:func:`qiskit.ignis.characterization.calibrations.pulse_schedules.drag_schedules`.
Fixes `#465 <https://github.com/Qiskit/qiskit-ignis/issues/465>`__

0 comments on commit 439b3ee

Please sign in to comment.