Tamil
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.pulse.InstructionScheduleMap.assert_has

InstructionScheduleMap.assert_has(instruction, qubits)[source]

Error if the given instruction is not defined.

Parameters
  • instruction (Union[str, Instruction]) -- 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