schedule_circuit¶
- schedule_circuit(circuit, schedule_config, method=None)[source]¶
Basic scheduling pass from a circuit to a pulse Schedule, using the backend. If no method is specified, then a basic, as late as possible scheduling pass is performed, i.e. pulses are scheduled to occur as late as possible.
Supported methods:
'as_soon_as_possible'
: Schedule pulses greedily, as early as possible on a qubit resource. alias:'asap'
)'as_late_as_possible'
: Schedule pulses late– keep qubits in the ground state when possible. (alias:'alap'
)
- Parameters
circuit (
QuantumCircuit
) – The quantum circuit to translate.schedule_config (
ScheduleConfig
) – Backend specific parameters used for building the Schedule.method (
Optional
[str
]) – The scheduling pass method to use.
- Return type
- Returns
Schedule corresponding to the input circuit.
- Raises
QiskitError – If method isn’t recognized.