dimod
dimod copied to clipboard
A shared API for QUBO/Ising samplers.
**Application** The class naming of the polynomial classes seems inconsistent to me ("model" vs. "polynomial"). For example, consider the higher order polynomial class (`BinaryPolynomial`) vs. the quadratic one (`BinaryQuadraticModel`). **Proposed...
Currently, only multiplication, addition, subtraction and division of ```BinaryQuadraticModel``` by a number are allowed. However, to build a more complex objective function, additional operations are needed. Among them, the absolute...
I'm trying to divide my objective over an Integer variable, but I get the following error : : TypeError: unsupported operand type(s) for /: 'int' and 'QuadraticModel' Below is how...
If there is interest add this I can make a PR. I have the basic code below. **Application** Multiplication circuits have a common overall structure but could target different implementations...
Not sure if this is a bug or a feature request. Since I didn't expect this to happen, I file it as a bug, please change to feature request if...
Working with Constrained Quadratic Models, I have tried to implement the example of the bin packing problem which appears on : [https://docs.ocean.dwavesys.com/en/latest/docs_dimod/reference/constrained.html#dimod.ConstrainedQuadraticModel ](url) On this easy problem, clearly the best...
Intuitively one would expect the CQM.is_equal() and CQM.is_almost_equal() to mean that the models are logically/mathematically equal. For example, the constraints b1+b2-1
It's a bit uglier, but more explicit.
Allow composite samplers to expose the innermost child sampler, this can be used to gather properties. For example, one can get QPU properties from a composite made of several layers
https://github.com/dwavesystems/dimod/blob/003253f5a28419ed7664042bb7dd3644c78832c0/dimod/sampleset.py#L1765 In this function you implicitly assume that a user has pandas installed, but it's not currently a dependency in requirements.txt Would be great to add.