Skip to content

5.4.0

Choose a tag to compare

@randomir randomir released this 14 Sep 19:20
· 791 commits to master since this release

Changelog

dimod 0.11.3 ➞ 0.11.5

New Features

  • Add ConstrainedQuadraticModel.__str__() method. See #1188.

  • Speed up the construction of Variables objects from a range or another Variables.

  • Add optional keyword argument labels_type to the as_samples() function.

  • Speed up BinaryQuadraticModel.energies() and QuadraticModel.energies() in cases where the model has a small subset of the variables in the samples.

  • Speed up SampleSet.from_samples_cqm() in cases where there are constraints with a small number of variables relative to the objective.

  • Add ConstrainedQuadraticModel.is_linear() method.

  • Add ConstrainedQuadraticModel.spin_to_binary() method.

  • Add Variables._clear() method for use by classes that have Variables as an attribute.

  • Add C++ dimod::QuadraticModel::clear() method.

  • Add C++ dimod::BinaryQuadraticModel::clear() method.

  • Add QuadraticModel.clear() method.

  • Add BinaryQuadraticModel.clear() method.

  • Add typing support for the dimod.variables.Variables class. See #1221.

Bug Fixes

  • Fix as_samples() when given a SampleSet and using the labels_type keyword argument. Previously it would raise a TypeError. This fix allows constructions like bqm.energies(sampleset) to function correctly.

  • Refactor dimod.typing.SamplesLike and dimod.typing.SampleLike. SampleLike now correctly includes constructions like ([0, 1], 'ab').

  • Make Vartype.INTEGER and Vartype.REAL pickleable. This fixes the pickling of many downstream objects like QuadraticModel and SampleSet.

dwave-cloud-client 0.10.1 ➞ 0.10.2

New Features

  • Add estimate_qpu_access_time method to dwave.cloud.solver.StructuredSolver to estimate quantum processing unit (QPU) access time for a submission to the selected solver.

dwave-hybrid 0.6.8 ➞ 0.6.9

New Features

  • Add LatticeLNLS reference workflow for larger-than-QPU lattice-structured problems. See #263.

  • Add LatticeLNLSSampler, a dimod-compatible hybrid decomposition sampler for problems of lattice structure.

  • Add make_origin_embeddings decomposer that creates optimal embeddings for a QPU or cubic lattice.

Bug Fixes

  • Support unorderable variables in energy based decomposer (fixes #273).

Package versions

dimod==0.11.5
dwave-cloud-client==0.10.2
dwave-greedy==0.2.5
dwave-hybrid==0.6.9
dwave-inspector==0.3.0
dwave-neal==0.5.9
dwave-networkx==0.8.12
dwave-preprocessing==0.4.0
dwave-system==1.15.0
dwave-tabu==0.4.5
dwavebinarycsp==0.2.0
minorminer==0.2.9
penaltymodel==1.0.2
# pyqubo==1.2.0