InstructionScheduleMap.add

InstructionScheduleMap.add(instruction, qubits, schedule)[source]

Add a new known instruction for the given qubits and its mapping to a pulse schedule.

Parameters
  • instruction (str) – The name of the instruction to add.

  • qubits (Union[int, Iterable[int]]) – The qubits which the instruction applies to.

  • schedule (Union[Schedule, Callable[…, Schedule]]) – The Schedule that implements the given instruction.

Raises

PulseError – If the qubits are provided as an empty iterable.

Return type

None