-
Notifications
You must be signed in to change notification settings - Fork 81
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
BQM.subbqm or similar #538
Comments
When you say distinct from In that case, how would you determine energy offset for the sub bqm? Otherwise, how would
|
Yes that is what I mean, so it would be the same. The difference would be convenience (one method, no dependency on NetworkX) and performance (no intermediate objects and implementation as a view rather than a copy). I would expect the offset, because it is not associated with any variables, to be 0 on a subbqm defined by a subset of the variables. We could I suppose allow it to be included as a kwarg. Though how we would handle offsets with bqm views is an interesting question in-and-of-itself. E.g. I might expect to be able to
but doing the same thing with the offset would not make sense (assuming we set it to 0 for views). One obvious approach would be to just not allow the views to be modified. |
I agree, setting |
I don't understand what you mean. When do we need to construct the subbqm with an offset? |
BQM constructor requires offset <=> SubBQM constructor sets offset to zero. |
I don't understand what is incompatible. There are many says to construct a BQM without explicitly providing an offset, e.g. |
That was a typo, I meant inconsistent. What I would consider consistent is, for example, |
Something similar to NetworkX's Graph.subgraph would be good. Would obviously need a BQMView object to implement that version though.
Note this is distinct from induced subgraphs as in dwave-hybrid's bqm_induced_by function.
The text was updated successfully, but these errors were encountered: