dwavesystems / dwavesystems/dimod

Add ability to merge serveral DQM or BQM objects

Open
#785 8 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

It would be useful to merge several BQM/DQMs.

At the moment one can do
```
bqm.update(other_bqm)
```
to merge two BQM objects.

We should add a `DQM.update` as well.

Further, it would be useful to combine many DQM/BQM together at relative weights. See https://github.com/dwavesystems/dimod/pull/784#issuecomment-769358918

One way to accomplish this would be a merge function, as suggested in https://github.com/dwavesystems/dimod/pull/784#issuecomment-769358918

Another would be to add a `weight` parameter to the `BQM.update()` and `DQM.update()` methods. Likely the function would end up calling the methods, but rolling them together would be nice.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.