Skip to content

Fix DWaveCliqueSampler sometimes creating biases out of range #572

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

Merged

Conversation

arcondello
Copy link
Member

No description provided.

Copy link

codecov bot commented May 16, 2025

Codecov Report

Attention: Patch coverage is 76.19048% with 5 lines in your changes missing coverage. Please review.

Project coverage is 86.34%. Comparing base (492b0b5) to head (43ed138).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
dwave/system/samplers/clique.py 76.19% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #572      +/-   ##
==========================================
- Coverage   89.05%   86.34%   -2.72%     
==========================================
  Files          21       21              
  Lines        1892     1904      +12     
==========================================
- Hits         1685     1644      -41     
- Misses        207      260      +53     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arcondello arcondello merged commit efa5e17 into dwavesystems:master May 16, 2025
20 checks passed
@arcondello arcondello deleted the fix/DWaveCliqueSampler-bias-range branch May 16, 2025 01:20
@@ -36,8 +36,10 @@ class _QubitCouplingComposite(dimod.ComposedSampler):
sampler (:obj:`~dimod.ComposedSampler`):
A dimod sampler.
"""
def __init__(self, child_sampler):
def __init__(self, child_sampler, linear_range, quadratic_range):
Copy link
Member

Choose a reason for hiding this comment

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

New args should probably be documented, for consistency, since we already have docs on this private class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants