Skip to content

0.10.11

Choose a tag to compare

@arcondello arcondello released this 17 Jan 18:06
50bfa4f

New Features

  • Add .fix_variable() and .fix_variables() methods to ConstrainedQuadraticModel.
  • Add .fix_variable() and .fix_variables() methods to QuadraticModel.
  • Add QuadraticModel::resize() method in C++ code.
  • Speed up printing sample sets with a large number of variables. See #1068.
  • Add ability to pass a slice to Variables.__getitem__. This allows for syntax like variables[:5] which will return a new Variables object. See #1069.
  • Add BinaryQuadraticModel.iter_linear() method.
  • Add BinaryQuadraticModel.to_polystring() method.
  • Add QuadraticModel.iter_linear() method.
  • Add QuadraticModel.to_polystring() method.
  • Introduces variable array methods dimod.BinaryArray, dimod.SpinArray, and dimod.IntegerArray. These methods build numpy object arrays from their respective generator methods dimod.Binaries, dimod.Spins and dimod.Integers.

Upgrade Notes

  • QuadraticViewsMixin now has .add_linear() as an abstract method.
  • BinaryQuadraticModel.fix_variable() no longer raises a ValueError when given a value that does not match the variable type.
  • Python 3.6 is no longer supported.
  • NumPy 1.17 and 1.18 are no longer supported.
  • dimod.views.quadratic.QuadraticModelMixin now has an abstract property .offset.

Bug Fixes

  • Fix setting linear and quadratic biases on vartype views when the relevant variable or interaction does not already exist.
  • multiplcation_circuit now adds the carry from the most significant column in a row into the most significant column of the next row.