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

Switch samplers #14

Merged
merged 2 commits into from
Jan 4, 2023
Merged

Switch samplers #14

merged 2 commits into from
Jan 4, 2023

Conversation

vgoliber
Copy link
Collaborator

Simulated annealing sampler is giving unpredictable results, but when run on the BQM hybrid solver tests pass locally.

Copy link
Contributor

@arcondello arcondello left a comment

Choose a reason for hiding this comment

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

I am OK with using the live samplers, but I wonder if just increasing the num_sweeps and/or num_reads would do the same thing and make the tests not require a token? You might also try some of the other samplers in dwave-samplers. It's possible for instance that TreeDecompositionSampler would work for small enough problems and that one guarantees a ground state.

@randomir
Copy link
Contributor

Agree with Alex. It would be nice to run unittest on local solvers. Adapting SA after this change might help.

@vgoliber
Copy link
Collaborator Author

Thanks both! Setting num_reads for SA seemed to do the trick.

@vgoliber vgoliber requested a review from arcondello December 20, 2022 08:15
@vgoliber vgoliber merged commit c24b27a into dwave-examples:main Jan 4, 2023
@vgoliber vgoliber deleted the fix-tests branch January 4, 2023 16:05
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.

3 participants