forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Followup of Qiskit#11095 (Qiskit#11404)
* Followup - Add exception handling for the edge case in which a basis gate property is not reported - Cleanup docs - Replace logging with RuntimeWarning - Add more inline comments - Fix wrong typehints - Update handling of faulty qubits with set operation * bugfix + more warning message * Update reno * Add more check for filter option
- Loading branch information
1 parent
18084e1
commit d88e0dd
Showing
6 changed files
with
174 additions
and
86 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
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
15 changes: 8 additions & 7 deletions
15
releasenotes/notes/Update_backend_model_up_conversion_logic-75ecc2030a9fe6b1.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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The new logic provides better backend model up-conversion mechanism, and better handling of control flow instructions. | ||
Changed default value of two arguments :code:`add_delay` and :code:`filter_faulty` in | ||
the :func:`.qiskit.providers.backend_compat.convert_to_target`. | ||
Now this conversion function adds delay instruction and removes faulty instructions by default. | ||
fixes: | ||
- | | ||
Fixes return of improper Schedule by Backend.instruction_schedule_map.get('measure', [0]) | ||
Fixes return of improper measurement schedule that may occur in the following program | ||
.. code-block:: python | ||
#import a fake backend which is a sub-class of BackendV2. | ||
# import a fake backend which is a sub-class of BackendV2. | ||
from qiskit.providers.fake_provider import FakePerth | ||
backend = FakePerth() | ||
sched = backend.instruction_schedule_map.get('measure', [0]) | ||
The issue was that the :code:`sched` contained Schedule for measure operation on | ||
all qubits of the backend instead of having the Schedule for measure operation | ||
on just qubit_0. | ||
This unexpectedly returned a measure schedule including all device qubits, | ||
which was fixed in this release. | ||
Now this returns a schedule for qubit 0 as intended. |
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
Oops, something went wrong.