Skip to content

Commit

Permalink
Update deprecated call to cmd_qubits in the rescheduler (#3687)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcapelluto authored and mergify[bot] committed Jan 6, 2020
1 parent 17dcd31 commit 85d0d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qiskit/pulse/reschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def calculate_align_time():
def get_max_calibration_duration():
"""Return the time needed to allow for readout discrimination calibration pulses."""
max_calibration_duration = 0
for qubits in inst_map.cmd_qubits(cal_gate):
for qubits in inst_map.qubits_with_instruction(cal_gate):
cmd = inst_map.get(cal_gate, qubits, np.pi, 0, np.pi)
max_calibration_duration = max(cmd.duration, max_calibration_duration)
return max_calibration_duration
Expand Down
2 changes: 1 addition & 1 deletion test/python/scheduler/test_basic_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def test_barriers_in_middle(self):


class TestCmdDefBasicSchedule(QiskitTestCase):
"""Scheduling tests for CmdDef which will soon be deprecated."""
"""Scheduling tests for CmdDef which is deprecated."""

def setUp(self):
self.backend = FakeOpenPulse2Q()
Expand Down

0 comments on commit 85d0d03

Please sign in to comment.