Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update transpiler documentation of instruction_durations (#6799)
* Fix issue 6667 by updating transpiler Add condition in `qiskit.compiler.transpiler`: if `scheduling_method` is not provided and `instruction_durations` argument specified, set `scheduling_method=as_late_as_possible`. Note that the `as_late_as_possible` scheduling method was chosen as it is the one applied by default by the scheduler when no method is specified. This scheduling method improves the outcome fidelity over the `as_soon_as_possible` scheduling method. When the `transpile()` function is provided with the `instruction_durations` argument and no `scheduling_method` argument is specified, the behaviour before update is to ignore the `instruction_durations` argument and not apply any scheduling pass. After the update, the behaviour is to apply scheduling pass with the default scheduling method: `as_late_as_possible`. Fixes: #6667 * Fix issue 6667 by updating docstring in transpiler Update docstring to indicate that the argument `instruction_durations` provided to the `transpile()` function is only applicable if the argument `scheduling_method` is also provided. Fixes: #6667 Co-authored-by: Kevin Krsulich <kevin.krsulich@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information