dimod.QuadraticModel.from_file

classmethod QuadraticModel.from_file(fp: Union[BinaryIO, ByteString])[source]

Construct a QM from a file-like object.

The inverse of to_file().