qiskit.pulse.InstructionScheduleMap.add¶
- InstructionScheduleMap.add(instruction, qubits, schedule, arguments=None)[ソース]¶
Add a new known instruction for the given qubits and its mapping to a pulse schedule.
- パラメータ
instruction (
Union
[str
,Instruction
]) – The name of the instruction to add.qubits (
Union
[int
,Iterable
[int
]]) – The qubits which the instruction applies to.schedule (
Union
[Schedule
,ScheduleBlock
,Callable
[...
,Union
[Schedule
,ScheduleBlock
]]]) – The Schedule that implements the given instruction.arguments (
Optional
[List
[str
]]) – List of parameter names to create a parameter-bound schedule from the associated gate instruction. Ifget()
is called with arguments rather than keyword arguments, this parameter list is used to map the input arguments to parameter objects stored in the target schedule.
- 例外
PulseError – If the qubits are provided as an empty iterable.
- 戻り値の型
None