Dimod

Latest version: v0.12.14

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

Scan your dependencies

Page 19 of 26

0.8.10

Fixes
-----
* `SampleSet.from_serializable` now correctly preserves `SampleSet.info`

New Features
------------
* `SampleSet.lowest` method which returns a new sample set containing the lowest energy samples

0.8.9

Fixes
-----
* `SampleSet.samples` now returns an iterator. This is a backwards-compatibility fix and is a deprecated feature.

0.8.8

New Features
------------
* `combinations` bqm generator
* `SampleSet.samples` now returns an indexable object
* `assert_sampleset_energies` testing function
* `BinaryQuadraticModel.from_networkx_graph` method
* `SampleSet.append_variables` method

Bug Fixes
---------
* Fix bug in `Variables.__contains__` that raised a keyerror rather than returning False

0.8.7

New Features
-----------
* When constructing a sample set using `SampleSet.from_samples`, labels are sorted (if they are the same type). Controlled by `sort_labels` keyword argument
* Support simplejson encoding
* None can now optionally pass through `graph_argument` decorator
* `chimera_anticluster` bqm generator now supports Chimera subgraphs
* Random generator functions now allow the user to specify a seed
* Added `RoofDualityComposite` which uses roof duality to fix some variables in the bqm

Fixes
-----
* Printing now works for `Response` objects
* `SampleSet.relabel_variables` now correctly resolves the future if the sample set was constructed from `.from_future`

0.8.6

New Features
------------
* `TruncateComposite` which filters high energy solutions out of the sample set to speed up post-processing
* `BinaryPolynomial` class for representing higher-order problems
* `PolySampler` abstract base class for sampling binary polynomials
* `PolyScaleComposite` binary polynomial version of `ScaleComposite`
* `PolyTruncateComposite` binary polynomial version of
`TruncateComposite`
* `SampleSet.data_vectors` property has been restored
* New serialization for `SampleSet` and `BinaryQuadraticModel` including a bytes serialization for `SampleSet`
* New `DimodJSONDecoder` and `dimod_object_hook`, and refactored `DimodJSONEncoder`

Fixes
-----
* `SpinReversalTransformComposite` now correctly uses the flipped bqm
* Can now print large samplesets without triggering a recursion error

Deprecated
----------
* Binary quadratic model sampling in binary polynomial samplers will be removed in 0.9.0
* `SpinReversalTransformComposite` now ignores the `spin_reversal_variables` keyword argument and it will be removed in 0.9.0
* Serialization has been refactored, the bqms and sample sets serialized with the 1.0.0 format are supported until 0.9.0

0.8.5

New Features
------------
* `SampleSet.truncate` method
* `BinaryQuadraticModel.to_serializable` bias_dtype and bytes_type parameters

Fixes
-----
* `BinaryQuadraticModel`s are now pickleable in python2.7
* Some bug fixes in `BinaryQuadraticModel.to_serializable`

Page 19 of 26

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.