Skip to content

Releases: dwavesystems/dimod

0.8.15

29 Jul 20:12
5dfc00b
Compare
Choose a tag to compare

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

13 Jun 16:47
4920d4e
Compare
Choose a tag to compare

Fixes

  • Fix num_occurrences not being aggregated correctly in SampleSet.aggregate

0.8.13

12 Jun 20:57
a174ddd
Compare
Choose a tag to compare

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

07 May 20:56
f9d45fc
Compare
Choose a tag to compare

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.
  • SampleSets with unresolved futures now block before pickling.

0.8.11

23 Apr 23:25
3954082
Compare
Choose a tag to compare

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

0.8.10

08 Apr 19:44
8f6895d
Compare
Choose a tag to compare

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

28 Mar 19:51
6a330c2
Compare
Choose a tag to compare

Fixes

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

0.8.8

26 Mar 20:37
f47b45f
Compare
Choose a tag to compare

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

12 Mar 17:24
45bd481
Compare
Choose a tag to compare

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

26 Feb 19:31
Compare
Choose a tag to compare

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