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

Speed up qp problem encoding #661

Merged
merged 5 commits into from
Aug 16, 2024

Conversation

randomir
Copy link
Member

ASV benchmarks on my machine:

  • active_qubits(): 34 ms -> 22 ms
  • active_qubits() on BQM: 156 ms -> 121ms
  • encode_problem_as_qp(): 103 ms -> 75 ms
  • encode_problem_as_qp() on BQM: 650 ms -> 560 ms and then -> 400 ms when converted to dict upfront

@randomir randomir requested a review from arcondello August 16, 2024 15:51
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.86%. Comparing base (5597ff0) to head (91b662e).
Report is 55 commits behind head on master.

Files with missing lines Patch % Lines
dwave/cloud/coders.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #661      +/-   ##
==========================================
- Coverage   88.91%   88.86%   -0.06%     
==========================================
  Files          42       42              
  Lines        4810     4815       +5     
==========================================
+ Hits         4277     4279       +2     
- Misses        533      536       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@randomir randomir merged commit c28d852 into dwavesystems:master Aug 16, 2024
37 checks passed
@randomir randomir deleted the feature/speed-up-qp-encoding branch August 16, 2024 16:23
randomir added a commit to randomir/dwave-inspector that referenced this pull request Nov 15, 2024
Consistent with changes in dwavesystems/dwave-cloud-client#661
(released as cloud-client 0.13.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants