-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
…7881) * Fix the eval_observables() when quantum_state is StateFn. StateFn(StateFn()) actually returns an OperatorStateFn. This caused an issue that was not checked by the test cases test_aux_ops_evaluator.py. The associated test case was added. * Add the associated releasenote * Update releasenotes/notes/fix-aux-ops-evaluator-83ce1606d1ad19b3.yaml Co-authored-by: Julien Gacon <[email protected]> * Fix sphinx identifier Co-authored-by: Julien Gacon <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit a296ca0) Co-authored-by: Anthony-Gandon <[email protected]>
- Loading branch information
1 parent
080950b
commit 5306c95
Showing
3 changed files
with
31 additions
and
3 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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/fix-aux-ops-evaluator-83ce1606d1ad19b3.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,6 @@ | ||
fixes: | ||
- | | ||
The :func:`~qiskit.algorithms.eval_observables` function raised an error when the | ||
``quantum_state`` argument is a :class:`~qiskit.opflow.StateFn`. | ||
This error was fixed and ``eval_observables`` now correctly supports all input types | ||
specifying in the type hints. |
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