dwavesystems / dwavesystems/dimod

SampleSet.update or similar

Open
#446 0 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

**Application**
It would be useful to be able to add two overlapping sample sets together.

**Proposed Solution**
Something like
```
>>> new = sampleset.update(another_sampleset)
```
The case that needs be considered is recalculating the energies. We avoid that problem in #445 because the samples are disjoint. The 'easiest' approach would be to simply add the energies as in #445. Adding makes sense when the sample sets are generated by two different bqms, but that might be confusing for users who are updating based on generating the samples for a sub-bqm.

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.