basic

The most straightforward scheduling methods: scheduling as early or as late as possible.

Functions

as_late_as_possible(circuit, schedule_config)

Return the pulse Schedule which implements the input circuit using an “as late as possible” (alap) scheduling policy.

as_soon_as_possible(circuit, schedule_config)

Return the pulse Schedule which implements the input circuit using an “as soon as possible” (asap) scheduling policy.

as_late_as_possible(circuit, schedule_config)[source]

Return the pulse Schedule which implements the input circuit using an “as late as possible” (alap) scheduling policy.

Circuit instructions are first each mapped to equivalent pulse Schedules according to the command definition given by the schedule_config. Then, this circuit instruction-equivalent Schedule is appended at the latest time that it can be without allowing unnecessary time between instructions or allowing instructions with common qubits to overlap.

This method should improves the outcome fidelity over ASAP scheduling, because we may maximize the time that the qubit remains in the ground state.

Parameters
  • circuit (QuantumCircuit) – The quantum circuit to translate.

  • schedule_config (ScheduleConfig) – Backend specific parameters used for building the Schedule.

Return type

Schedule

Returns

A schedule corresponding to the input circuit with pulses occurring as late as possible.

as_soon_as_possible(circuit, schedule_config)[source]

Return the pulse Schedule which implements the input circuit using an “as soon as possible” (asap) scheduling policy.

Circuit instructions are first each mapped to equivalent pulse Schedules according to the command definition given by the schedule_config. Then, this circuit instruction-equivalent Schedule is appended at the earliest time at which all qubits involved in the instruction are available.

Parameters
  • circuit (QuantumCircuit) – The quantum circuit to translate.

  • schedule_config (ScheduleConfig) – Backend specific parameters used for building the Schedule.

Return type

Schedule

Returns

A schedule corresponding to the input circuit with pulses occurring as early as possible.