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

Move CPU fallback for frequencies #527

Merged
merged 2 commits into from
Dec 27, 2021
Merged

Move CPU fallback for frequencies #527

merged 2 commits into from
Dec 27, 2021

Conversation

mlazzarin
Copy link
Contributor

I moved the CPU fallback from qibo.core.measurements.frequencies to qibo.core.measurements._calculate_frequencies, so that we call it with arguments and the CPU fallback implemented in PR qiboteam/qibojit#54 converts them, if needed.

@mlazzarin mlazzarin marked this pull request as ready for review December 23, 2021 06:55
@mlazzarin
Copy link
Contributor Author

I made some tests and the fix is working well, at least with the examples that were not working before.

@mlazzarin mlazzarin added the bug Something isn't working label Dec 23, 2021
@mlazzarin
Copy link
Contributor Author

I also changed the warning log message after @stavros11 suggestion in PR qiboteam/qibojit#54.

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.

Looks good to me, thanks.

@codecov
Copy link

codecov bot commented Dec 23, 2021

Codecov Report

Merging #527 (64b7c55) into master (d2c7e1a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #527   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           85        85           
  Lines        12284     12284           
=========================================
  Hits         12284     12284           
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/qibo/backends/abstract.py 100.00% <ø> (ø)
src/qibo/core/measurements.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2c7e1a...64b7c55. Read the comment docs.

@scarrazza
Copy link
Member

Can we merge this?

@mlazzarin
Copy link
Contributor Author

Yes, I believe so.

@scarrazza scarrazza merged commit 1207b98 into master Dec 27, 2021
@scarrazza scarrazza deleted the fixcpufall branch January 20, 2022 14:47
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.

3 participants