dwavesystems / dimod

A shared API for QUBO/Ising samplers.
https://docs.ocean.dwavesys.com/en/stable/docs_dimod/
Apache License 2.0
121 stars 80 forks source link

Add compress keyword argument to CQM.to_file() and BQM.to_file() #1235

Open arcondello opened 2 years ago

arcondello commented 2 years ago

To match the DQM https://github.com/dwavesystems/dimod/blob/5d2043d0b662f38bd51e062367c2e4b703b457a1/dimod/discrete/discrete_quadratic_model.py#L767

arcondello commented 1 year ago

CQM is handled by https://github.com/dwavesystems/dimod/pull/1296. Doing BQM would be a bit more complicated because we don't use zipfile.