Dimod

Latest version: v0.12.14

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

Scan your dependencies

Page 15 of 26

0.9.6

New Features
------------
* `Structured.to_networkx_graph` mixin method
* `.min`, `.max`, and `.sum` methods on BQM views
* `nonblocking_sample_method` decorators for asynchronous samplers
* `anti_crossing_loops`, `anti_crossing_clique`, and `doped` problem generators
* `BQM.to_file` and `BQM.from_file` methods for cyBQMs

Fixes
-----
* `VartypeView.relabel_variables` no longer sometimes returnes models with the wrong vartype
* `BQM.relabel_variables_as_integers` now works correctly when `inplace=False`

0.9.5

New Features
------------
* `BQM.normalize` now returns the value the BQM was scaled by
* `SampleSet.relabel_variables` no longer blocks for unresolved sample sets
* `FileView` has a new parameter, `ignore_variables` that treats the BQM as integer-labelled
* `ScaleComposite` no longer blocks

Fixes
-----
* `FileView.seek` now works correctly with `io.SEEK_END`

Changes
-------
* `BinaryPolynomial` support in `ScaleComposite` has been removed

0.9.4

New Features
------------
• `assert_consistent_bqm` to `dimod.testing` for testing different BQM implementations
• Testing is now done with parameterized package - this does not affect installed packages
• FileView version 2.0 with improved docs

0.9.3

New Features
------------
* `pack_samples` kwarg for `SampleSet.to_serializable()` method that allows the user to _not_ pack samples. This means bumping the sample set serialization version to 3.1.0

Fixes
-----
* `SampleSet.info` is now correctly propagated through the `ClipComposite`
* All `.pyx` and `.pxd` files are included in the MANIFEST which means that `cimport dimod` will now work correctly

0.9.2

New Features
------------
* BQM C++ headers are now in `dimod/include/dimod/`. Packages that need access to the headers can get the path using the new `get_dimod_headers()` function. Note that the C++ code is still considered unstable and does not respect semantic versioning.
* `Initialized` ABC and accompanying `parse_initial_states` method for samplers that accept initial states.
* `IdentitySampler` that returns passed-in initial states.
* `ising_to_qubo` function now accepts an underspecified `h` arg.

Fixes
-----
* General performance and structural improvements to C++ bqms.
* cyBQMs are now pickleable and deepcopyable.

0.9.1

Changes
-------
* Removed deprecated kwarg in `SpinReversalTransformComposite`

Fixes
-----
* `RoofDualityComposite`, `ConnectedComponentComposite` and `FixedVariableComposite` now all work with the new BQM types

New Features
------------
* A sample method testing framework for Samplers
* Significant documentation update
* A unified location for header files

Page 15 of 26

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.