- loads(s: str, cls: None = None, vartype: Optional[dimod.vartypes.Vartype] = None) dimod.binary.binary_quadratic_model.BinaryQuadraticModel [source]¶
Load a binary quadratic model from a COOrdinate-formatted string.
s – String containing a COO-formatted binary quadratic model.
cls – Deprecated. Does nothing.
The valid variable types for binary quadratic models, is one of:
Deprecated since version 0.10.15: The
clskeyword will be removed in dimod 0.12.0. It currently does nothing.