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

StructuredSampler.check_bqm or similar #830

Closed
arcondello opened this issue May 27, 2021 · 0 comments · Fixed by #832
Closed

StructuredSampler.check_bqm or similar #830

arcondello opened this issue May 27, 2021 · 0 comments · Fixed by #832
Labels
enhancement New feature or request

Comments

@arcondello
Copy link
Member

arcondello commented May 27, 2021

Something like

def check_bqm(self, bqm):
    return all(v in self.adjacency for v in bqm.variables) and all(u in self.adjacency[v] for u, v in bqm.quadratic)

See dwavesystems/dwave-system#401

@arcondello arcondello added the enhancement New feature or request label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant