-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of None in noise model construction from BackendV2 (#1818)
Fixes `NoiseModel.from_backend` not to fail when calling it with a V2 backend having faulty qubits such that T1 and T2 are `None` in the `target.qubit_properties`. * fix handling of None in noise model construction from BackendV2 * add reno * simplify a bit * update docs
- Loading branch information
Showing
5 changed files
with
78 additions
and
15 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
10 changes: 10 additions & 0 deletions
10
releasenotes/notes/fix-none-handling-in-noise-model-34fcc9a3e3cbdf6f.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,10 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug in :meth:`~.NoiseModel.from_backend` that raised an error when | ||
the backend has no T1 and T2 values (i.e. None) for a qubit in its qubit properties. | ||
This commit updates :meth:`NoiseModel.from_backend` and :func:`basic_device_gate_errors` | ||
so that they add an identity ``QuantumError`` (i.e. effectively no thermal relaxation error) | ||
to a qubit with no T1 and T2 values for all gates acting on qubits including the qubit. | ||
Fixed `#1779 <https://github.com/Qiskit/qiskit-aer/issues/1779>`__ | ||
and `#1815 <https://github.com/Qiskit/qiskit-aer/issues/1815>`__. |
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