Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of eval_observables() when quantum_circuit is a StateFn. (backport #7863) #7881

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 4, 2022

This is an automatic backport of pull request #7863 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* 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)
@mergify mergify bot requested review from a team, manoelmarques and woodsp-ibm as code owners April 4, 2022 15:57
@jakelishman jakelishman added Changelog: Bugfix Include in the "Fixed" section of the changelog automerge labels Apr 4, 2022
@mergify mergify bot merged commit 5306c95 into stable/0.20 Apr 4, 2022
@mergify mergify bot deleted the mergify/bp/stable/0.20/pr-7863 branch April 4, 2022 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants