Dimod

Latest version: v0.12.14

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

Scan your dependencies

Page 18 of 26

0.8.16

New Features
------------
* Remove jsonschema package dependency
* Use standard c++ exceptions in the roof duality source code

Fixes
-----
* `BinaryQuadraticModel.contract_variables` now correctly adds the linear biases
* `BinaryQuadraticModel` can now be copied when it is locked
* `make_quadratic` now correctly handles squared terms in the input polynomial

0.8.15

New Features
------------
* New sample set and binary quadratic model serialization (version 3.0.0)
* Serialization of numpy objects in `SampleSet.info` and `BinaryQuadraticModel.info`

Deprecated
----------
* Sample set serialization version 2.0.0
* Binary quadratic model serialization version 2.0.0

0.8.14

Fixes
-----
* Fix `num_occurrences` not being aggregated correctly in `SampleSet.aggregate`

0.8.13

New Features
------------
* `TrackingComposite`, a new composite that records inputs and outputs for testing
* `NullSampler`, a new sampler that always returns an empty sample set
* `child_structure_dfs` function that searches child samplers for a structured
* `HigherOrderComposite` now supports the `initial_state` keyword argument
* `BinaryQuadraticModel.is_writeable` flag that toggles whether the BQM is treated as immutable or not
* `SampleSet.is_writeable` flag that toggles whether the sample set is treated as immutable or not

0.8.12

New Features
-----------
* `SampleSet.resolve` method that resolves any futures the sample set was constructed from.
* `SampleSet` is now pickleable in python2

Fixes
-----
* `ran_r` now creates vectors of the correct size.
* `BQM.from_numpy_vectors` now checks the size of the input vectors for correctness.
* `SampleSet`s with unresolved futures now block before pickling.

0.8.11

Fixes
-----
* `SampleSet.from_serializable` now correctly deserializes tuple variables
* `SampleSet.aggregate` now correctly preserves order
* `Variables.relabel` now ignores unknown labels
* `BinaryQuadraticModel.from_serializable` now correctly deserializes `BinaryQuadraticModel.info`

New Features
------------
* `ran_r` function to generate RANr binary quadratic models
* `SampleSet.slice` method to create a new sample set with rows sliced according to the standard Python slicing syntax
* `as_vartype` function to cast permitted inputs to a valid `Vartype` enum

Page 18 of 26

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.