Converting to a Binary Quadratic Model#

Deprecated since version 0.3.1: dwavebinarycsp is deprecated and will be removed in Ocean 10. For solving problems with constraints, we recommand using the hybrid solvers in the Leap service. You can find documentation for the hybrid solvers at Hybrid Solvers.

Constraint satisfaction problems can be converted to binary quadratic models to be solved on samplers such as the D-Wave system.

Compilers#

Compilers accept a constraint satisfaction problem and return a dimod.BinaryQuadraticModel.

stitch(csp[, min_classical_gap, max_graph_size])

Build a binary quadratic model with minimal energy levels at solutions to the specified constraint satisfaction problem.