dimod.QuadraticModel.from_file#

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

Construct a quadratic model from a file-like object.

The inverse of to_file().