-
Notifications
You must be signed in to change notification settings - Fork 59
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
Co-authored-by: Elena Peña Tapia <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
820eaff
commit f433cf0
Showing
2 changed files
with
9 additions
and
12 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
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/update_sampling_result-6f65d2c54d7a88c3.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,9 @@ | ||
--- | ||
other: | ||
- | | ||
Removed the custom ``__str__`` method from :class:`.SamplingMinimumEigensolverResult` | ||
so that string conversion is based on the method of its parent :class:`.AlgorithmResult` | ||
which prints all the result fields in a dictionary like format. The overridden method | ||
had only printed a select couple of fields, unlike when normally printing a result all fields | ||
are shown, and the lack of fields expected to be shown caused confusion when printing | ||
results derived from that, such as returned by :class:`.SamplingVQE` and :class:`.QAOA`. |