dwavesystems / dwavesystems/dimod

Proposal: stricter check of inputs in BQM.energy()

Open
#244 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

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

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.