dimod.ConstrainedQuadraticModel.spin_to_binary#

ConstrainedQuadraticModel.spin_to_binary(inplace: bool = False) ConstrainedQuadraticModel[source]#

Convert any spin-valued variables to binary-valued.

Parameters:

inplace – If set to False, returns a new constrained quadratic model. Otherwise, the constrained quadratic model is modified in-place.