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 matrix() method for gates.GeneralizedfSim #1074

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Fix matrix() method for gates.GeneralizedfSim #1074

merged 1 commit into from
Nov 3, 2023

Conversation

renatomello
Copy link
Contributor

@renatomello renatomello commented Nov 3, 2023

This closes #1073 and is needed for #1055

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

@renatomello renatomello added the bug Something isn't working label Nov 3, 2023
@renatomello renatomello added this to the Qibo 0.2.3 milestone Nov 3, 2023
@renatomello renatomello self-assigned this Nov 3, 2023
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/qibo/backends/npmatrices.py 100.00% <ø> (ø)

📢 Thoughts on this report? Let us know!.

Copy link
Member

@stavros11 stavros11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine as a fix, but I believe some similar issue remains for Unitary?

@renatomello
Copy link
Contributor Author

Fine as a fix, but I believe some similar issue remains for Unitary?

Not if the matrix passed was created using the same backend. It appears if input matrix is a cupy array and then gate method is called using numpy backend. This can be fixed in a separate PR.

@renatomello renatomello merged commit dbdbd07 into master Nov 3, 2023
28 checks passed
@renatomello renatomello deleted the fSim branch November 3, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling matrix method gates.GeneralizedfSim raises error on GPU backends
3 participants