Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
Calibrations.add_schedule¶
- Calibrations.add_schedule(schedule, qubits=None, num_qubits=None)[source]¶
Add a schedule block and register its parameters.
Schedules that use Call instructions must register the called schedules separately.
- Parameters:
schedule (
ScheduleBlock
) – TheScheduleBlock
to add.qubits (
Union
[int
,Tuple
[int
,...
],None
]) – The qubits for which to add the schedules. If None or an empty tuple is given then this schedule is the default schedule for all qubits and, in this case, the number of qubits that this schedule act on must be given.num_qubits (
Optional
[int
]) – The number of qubits that this schedule will act on when exported to a circuit instruction. This argument is optional as long as qubits is either not None or not an empty tuple (i.e. default schedule).
- Raises:
CalibrationError – If schedule is not an instance of
ScheduleBlock
.CalibrationError – If a schedule has assigned references.
CalibrationError – If several parameters in the same schedule have the same name.
CalibrationError – If the schedule name starts with the prefix of ScheduleBlock.
CalibrationError – If the schedule calls subroutines that have not been registered.
CalibrationError – If a
Schedule
is Called instead of aScheduleBlock
.CalibrationError – If a schedule with the same name exists and acts on a different number of qubits.