InstructionScheduleMap.assert_has

InstructionScheduleMap.assert_has(instruction, qubits)[source]

Error if the given instruction is not defined.

Parameters
  • instruction (str) – The instruction for which to look.

  • qubits (Union[int, Iterable[int]]) – The specific qubits for the instruction.

Raises

PulseError – If the instruction is not defined on the qubits.

Return type

None