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.
Edit Result to always contain date, status, header (Qiskit#8216)
* date attribute Date attribute is needed for some specific applications such as mitigation in mthree. It is not created by default when running a job in the basicAer backend. * Update test_result.py * Adding default attributes header and status I have no clue why in the test_results the attribute status is repeated. * fix Result repr * add release note * Qualify method name in release note * Remove final conditional attribute lookup on Result Co-authored-by: Alejandro Montanez <[email protected]> Co-authored-by: Jake Lishman <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7149559
commit 992c261
Showing
3 changed files
with
19 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
upgrade: | ||
- | | ||
:class:`.Result` was modified so that it always contains ``date``, ``status``, | ||
and ``header`` attributes (set to ``None`` if not specified). | ||
fixes: | ||
- | | ||
Fixed a bug in :meth:`.Result.__repr__` that caused the attributes to be | ||
specified incorrectly. |
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