dwave.optimization.model.States.from_file#
- States.from_file(file, *, replace=True, check_header=True)#
Construct states from the given file.
- Parameters:
file – File pointer to a readable, seekable file-like object encoding the states. Strings are interpreted as a file name.
replace – If
True
, any held states are replaced with those from the file. IfFalse
, the states are appended.check_header – Set to
False
to skip file-header check.
- Returns:
A model.