Dimod

Latest version: v0.12.14

Safety actively analyzes 625513 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 26

0.9.0

0.9.0.dev6

Fixes
-----
* Fix numpy version range
* `BQM.get_quadratic` now has consistent/correct behaviour when a default is provided
* Restored some removed methods, `BQM.to_coo`, `.from_coo`, `.to_numpy_matrix`, `.from_numpy_matrix`, `.to_networkx_graph`, `.from_networkx_graph`
* `BQM.energies` now raises the correct exception when given bad samples

New Features
------------
* Binary quadratic models can now be constructed from linear/quadratic iterators
* `BQM.base` attribute to help when constructing from views
* `BQM.energies` mixin now uses a faster numpy-based energy calculation

0.9.0.dev5

Changes
-------
* `BinaryQuadraticModel` now subclasses `AdjDictBQM`
* Remove `BinaryQuadraticModel.to_coo` and `BinaryQuadraticModel.from_coo`
* Remove `BinaryQuadraticModel.to_numpy_matrix` and `BinaryQuadraticModel.from_numpy_matrix`
* Remove `BinaryQuadraticModel.SPIN` and `BinaryQuadraticModel.BINARY`
* Remove `vartype` keyword argument from `BinaryQuadraticModel.add_variable`, `BinaryQuadraticModel.add_variables`, `BinaryQuadraticModel.add_interaction` and `BinaryQuadraticModel.add_interactions`
* The `.spin` and `.binary` properties of binary quadratic models are now views rather than copies

New Features
------------
* `as_bqm` function for constructing binary quadratic models
* Most `BinaryQuadraticModel` methods and properties have been added to `AdjArrayBQM`, `AdjDictBQM`, `AdjMapBQM` and `AdjVectorBQM`

0.9.0.dev4

Fixes
-----
* Fix deserialization of variables that are nested tuples
* Include `shapeablebqm.pyx.src` in the `manifest.ini`

0.9.0.dev3

Fixes
-----
* Python 3.5+ wheels are now installable on Windows machines that don't have FH4 exception handling
* cyBQMs now correctly use the linear biases when constructed with a linear sequence (rather than dict)
* Install now correctly requires NumPy>=1.16.0

New Features
------------
* Simpler implementation of the `FileView`
* FileView supports additional `whence` values for `FileView.seek`

0.9.0.dev2

Fixes
-----
* `as_samples` now respects the provided dtype for SampleSet inputs
* cyBQM views now raise the correct exception

New Features
------------
* `BQM.relabel_variables` for the cyBQMs
* `iter_safe_relabels` decorator
* The legacy `BinaryQuadraticModel` is now a registered subclass of the `BQM` ABC

Page 16 of 26

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.