66 lines
3.7 KiB
Plaintext
66 lines
3.7 KiB
Plaintext
---
|
||
title: basic
|
||
description: API reference for qiskit.scheduler.methods.basic
|
||
in_page_toc_min_heading_level: 2
|
||
python_api_type: module
|
||
python_api_name: qiskit.scheduler.methods.basic
|
||
---
|
||
|
||
<span id="qiskit-scheduler-methods-basic" />
|
||
|
||
# qiskit.scheduler.methods.basic
|
||
|
||
The most straightforward scheduling methods: scheduling **as early** or **as late** as possible.
|
||
|
||
**Functions**
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
|
||
| [`as_late_as_possible`](#qiskit.scheduler.methods.basic.as_late_as_possible "qiskit.scheduler.methods.basic.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`](#qiskit.scheduler.methods.basic.as_soon_as_possible "qiskit.scheduler.methods.basic.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
|
||
|
||
<Function id="qiskit.scheduler.methods.basic.as_late_as_possible" github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/scheduler/methods/basic.py" signature="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.
|
||
|
||
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.
|
||
</Function>
|
||
|
||
### as\_soon\_as\_possible
|
||
|
||
<Function id="qiskit.scheduler.methods.basic.as_soon_as_possible" github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/scheduler/methods/basic.py" signature="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.
|
||
|
||
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.
|
||
</Function>
|
||
|