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 bug when multiplying SparsePauliOp by np.int64 (bp #5417) #5419

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 20, 2020

This is an automated backport of pull request #5417 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.io/

* Fix bug when multiplying SparsePauliOp by np.int64

Fix is to add dispatch mechanism for numpy ufuncs to BaseOperator which maps `np.multiply` to the `BaseOperator._multiply` method.

* Change __array_ufunc__ to using __array_priority__

* Update releasenotes/notes/fix-op-ufunc-multiple-d1c59b236024f483.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
(cherry picked from commit d26f273)
@mergify mergify bot requested a review from a team as a code owner November 20, 2020 19:43
@mergify mergify bot merged commit c939233 into stable/0.16 Nov 23, 2020
@mergify mergify bot deleted the mergify/bp/stable/0.16/pr-5417 branch November 23, 2020 18:16
@mtreinish mtreinish added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Jan 7, 2021
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