dimod.serialization.coo.loads#

loads(s: str, cls: None = None, vartype: Vartype | None = None) BinaryQuadraticModel[source]#

Load a binary quadratic model from a COOrdinate-formatted string.

Parameters:
  • s – String containing a COO-formatted binary quadratic model.

  • cls – Deprecated. Does nothing.

  • vartype

    The valid variable types for binary quadratic models, is one of:

Deprecated since version 0.10.15: The cls keyword will be removed in dimod 0.12.0. It currently does nothing.