AdjDictBQM.to_qubo()

Convert a binary quadratic model to QUBO format.

If the binary quadratic model’s vartype is not Vartype.BINARY, values are converted.

Returns

2-tuple of form (biases, offset), where biases is a dict in which keys are pairs of variables and values are the associated linear or quadratic bias and offset is a number that represents the constant offset of the binary quadratic model.

Return type

tuple