dwavesystems / dwavesystems/dimod

`BQM.from_cqm` or similar

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

The inverse of `CQM.from_bqm` added in https://github.com/dwavesystems/dimod/pull/936.

Cases this would need to handle to be fully featured:

- [ ] Integer variables
- [ ] binary encoding
- [ ] one-hot encoding
- [ ] Linear equality constraints over binary variables (can be handled by [`BQM.add_linear_equality_constraint`](https://github.com/dwavesystems/dimod/blob/1149765ee9ab8793af2451ef6fe0285950803f82/dimod/binary/binary_quadratic_model.py#L500))
- [ ] Linear inequality constraints over binary variables (can be handled by [`BQM.add_linear_inequality_constraint`](https://github.com/dwavesystems/dimod/blob/1149765ee9ab8793af2451ef6fe0285950803f82/dimod/binary/binary_quadratic_model.py#L547))
- [ ] Quadratic equality constraints over binary variables
- [ ] Quadratic inequality constraints over binary variables

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.