dimod
dimod copied to clipboard
A shared API for QUBO/Ising samplers.
Enables reuse of model descriptions in the SDK with ``.. automodule::`` (currently the descriptions are sourced in both classes and /concepts), adds docstrings to C++ functions.
To match the DQM https://github.com/dwavesystems/dimod/blob/5d2043d0b662f38bd51e062367c2e4b703b457a1/dimod/discrete/discrete_quadratic_model.py#L767
Either checking the bounds in `CQM.check_feasible()` and/or adding an explicit `.check_bounds()`. See also: https://github.com/dwavesystems/dimod/issues/954
Consider making BQM.num_variables, BQM.num_interactions and BQM.shape methods rather than properties
Currently, `BQM.num_variables`, `BQM.num_interactions` and `BQM.shape` are all properties rather than methods. I think that it would be better to make them proper methods. Pro: * Determining `num_interactions` is an `O(num_variables)`...
Currently we have two patterns for Cython classes and it would be nice to be more consistent #### Subclass pattern Have a Cython class as a superclass of the Python...
See also https://github.com/dwavesystems/dimod/issues/1030
**Application** Currently ``dimod.ConstrainedQuadraticModel.add_discrete()`` rejects discrete variables with fewer than two binary variables. I think it makes sense to support a single-binary-variable discrete because that can be a use case for...
**Description** [D-Wave has indicated at least two approaches](https://docs.dwavesys.com/docs/latest/c_handbook_3.html) for reducing higher order terms to quadratic, namely Reduction by Substitution and Reduction by Minimum Selection. Both of these are shown to...
**Application** I want to be able to see whether I set a hard or soft constraint on my CQM and what value of weight & penalty fo rsoft constraints. **Proposed...