dwavesystems / dwavesystems/dimod

Add keyword argument(s) to `QM.energies` and `BQM.energies` to force stricter input checking

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

Description

A user may wish to test whether the given sample(s):
1) Have exactly matching variables
2) Have the correct values for the given variable vartype(s)

Something like
```
bqm.energies(samples, check_vartypes=True, check_variables=True)
```
or more simply
```
bqm.energies(samples, strict=True)
```

**Additional Context**
Originally discussed as part of https://github.com/dwavesystems/dimod/issues/949
(1) is covered by https://github.com/dwavesystems/dimod/issues/244

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.