-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat Reset like Measure in ConstrainedReschedule (#11756)
* fix mid-circuit measure problem * Update qiskit/transpiler/passes/scheduling/base_scheduler.py Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> * Update releasenotes/notes/add-scheduler-warnings-da6968a39fd8e6e7.yaml Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> * Update qiskit/transpiler/passes/scheduling/base_scheduler.py Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> * Move runtime warning about reset and measurement durations outside of calibration if statement * Replace raise with warn * Switch import orders --------- Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
- Loading branch information
1 parent
1dd7233
commit 7e44b6b
Showing
3 changed files
with
36 additions
and
5 deletions.
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
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
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/add-scheduler-warnings-da6968a39fd8e6e7.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,11 @@ | ||
fixes: | ||
- | | ||
Fixed an issue where the :class:`.ConstrainedReschedule` transpiler pass would previously error | ||
if the circuit contained a :class:`~.circuit.Reset` instruction. This has been corrected so that the | ||
pass no longer errors, however an actual hardware may behave differently from | ||
what Qiskit scheduler assumes especially for | ||
mid-circuit measurements and resets. | ||
Qiskit scheduler raises ``RuntimeWarning`` if | ||
it encounters circuit containing either. | ||
Fixed `#10354 <https://github.com/Qiskit/qiskit/issues/10354>`__ | ||