Dimod

Latest version: v0.12.18

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

Scan your dependencies

Page 14 of 27

0.9.14

New Features
------------
* `DiscreteQuadraticModel` and `SampleSet` now use the same underlying variable representation. 772, 779
* `DiscreteQuadraticModel.add_linear_equality_constraint` method. 774, 787, 798
* `AdjVectorBQM.add_linear_equality_constraint` method. 784
* Samplers now swallow unknown keyword arguments. 796, 799
* `SpinReversalTransformComposite` no longer requires a structured sampler. 802

Fixes
------
* Stopped using deprecated methods and functions to reduce the number of deprecation warnings. 773
* `DiscreteQuadraticModel.copy()` now works correctly. 777
* Fix handling of integer-valued floats in Variables. 779
* Fix the `cyDiscreteQuadraticModel.dtype` setting. 783

0.9.13

Fixes
-----
* `DQM.from_numpy_vectors`, `.set_quadratic` and `.set_quadratic_case` now correctly raise a `ValueError` when the user attempts to create an interaction between cases in a variable
* `BQM.from_numpy_vectors` now maintains the correct variable order
* `AdjDictBQM` biases are no longer 0 dimensional arrays when constructed from a numpy matrix
* Fixed column alignment issue when printing sample sets

New Features
------------
* C++ `AdjVectorBQM` and `AdjMapBQM` can now be constructed from COO-formatted arrays
* Python `AdjVectorBQM.from_numpy_vectors` and `AdjMapBQM.from_numpy_vectors` is now much more performant
* Cython `DiscreteQuadrataticModel` object now uses C++ COO constructors rather than an ad hoc implementation
* `gnp_random_bqm` generator for randomly connected BQMs

0.9.12

New Features
------------
* Documentation improvements
* Improved error messages and variable names in `DQM.from_numpy_vectors`
* `.clang-format` file for C++ formatting

Fixes
-----
* `DQM.from_numpy_vectors` no longer segfaults when given inconsistent inputs

0.9.11

Changes
-------
* Deprecated `SampleSet.append_variables`

New Features
------------
* `append_variables` function, replacing the funcionality of `SampleSet.append_variables`
* `append_vectors` function, to add more data vactors to a sample set
* Documentation improvements
* Support for python 3.9

Fixes
------
* Fix c++ target for windows build

0.9.10

Fixes
-----
* Fix the behavior of the file-like returned by `DQM.to_file`

0.9.9

New Features
-----------
* New parallel constructor for c++ AdjMapBQM
* `DQM.to_file` now returns a seekable file-like
* `DQM.from_numpy_vectors` now reserves the quadratic vectors which should reduce memory and speed up construction

Fixes
-----
* `DQM.from_file` now correctly accepts bytes-like objects

Changes
-------
* `DQM.to_file`'s `compressed` kwarg has been deprecated in favor of `compress`

Page 14 of 27

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.