Releases: dwavesystems/dimod
Releases · dwavesystems/dimod
0.8.15
New Features
- New sample set and binary quadratic model serialization (version 3.0.0)
- Serialization of numpy objects in
SampleSet.info
andBinaryQuadraticModel.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 inSampleSet.aggregate
0.8.13
New Features
TrackingComposite
, a new composite that records inputs and outputs for testingNullSampler
, a new sampler that always returns an empty sample setchild_structure_dfs
function that searches child samplers for a structuredHigherOrderComposite
now supports theinitial_state
keyword argumentBinaryQuadraticModel.is_writeable
flag that toggles whether the BQM is treated as immutable or notSampleSet.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 variablesSampleSet.aggregate
now correctly preserves orderVariables.relabel
now ignores unknown labelsBinaryQuadraticModel.from_serializable
now correctly deserializesBinaryQuadraticModel.info
New Features
ran_r
function to generate RANr binary quadratic modelsSampleSet.slice
method to create a new sample set with rows sliced according to the standard Python slicing syntaxas_vartype
function to cast permitted inputs to a validVartype
enum
0.8.10
Fixes
SampleSet.from_serializable
now correctly preservesSampleSet.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 generatorSampleSet.samples
now returns an indexable objectassert_sampleset_energies
testing functionBinaryQuadraticModel.from_networkx_graph
methodSampleSet.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 bysort_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-processingBinaryPolynomial
class for representing higher-order problemsPolySampler
abstract base class for sampling binary polynomialsPolyScaleComposite
binary polynomial version ofScaleComposite
PolyTruncateComposite
binary polynomial version of
TruncateComposite
SampleSet.data_vectors
property has been restored- New serialization for
SampleSet
andBinaryQuadraticModel
including a bytes serialization forSampleSet
- New
DimodJSONDecoder
anddimod_object_hook
, and refactoredDimodJSONEncoder
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 thespin_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