-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit fixes the return type when calling schedule() with a list of a single entry. Previously this would return a single Schedule object instead of the expected list return. A similar issue was already fixed in transpile() in #5298 but schedule still had the incorrect behavior. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 6192bfd) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information
1 parent
fbe2bf2
commit 6796f40
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/fix-list-input-schedule-14fc48895a061735.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue with the :class:`~qiskit.compiler.schedule` function where | ||
previously passing in a ``list`` of :class:`~qiskit.circuit.QuantumCircuit` | ||
objects with a single entry would incorrectly return a single | ||
:class:`~.Schedule` object instead of the expected ``list`` return type. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters