dimod.binary.BinaryQuadraticModel.from_file#

classmethod BinaryQuadraticModel.from_file(fp: BinaryIO | ByteString)[source]#

Construct a binary quadratic model from a file-like object.

The inverse of to_file().