dwavesystems / dwavesystems/dimod
Proposal: stricter check of inputs in BQM.energy()
Open
enhancement
- Dominant language
- Python
- Stars
- 143
- Forks
- 91
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 3
Description
Checking the length of `sample` argument in [`BQM.energy()`](https://github.com/dwavesystems/dimod/blob/61b07497d672591f0b03970403166bef8308b85f/dimod/binary_quadratic_model.py#L1330) could prevent (catch early) some bugs where user uses an inappropriate (strayed) sample for the BQM at hand.
Contributor guide
Assessment
This issue has not been assessed yet.