Skip to content

0.10.14

Compare
Choose a tag to compare
@arcondello arcondello released this 24 Feb 19:35
· 744 commits to main since this release
29a6dcd

New Features

  • Add Polynomial to dimod.typing.
  • Add Comparison.to_polystring() method.
  • Printing Comparison objects now returns an equation representation of the comparison as a string.
  • Add ConstrainedQuadraticModel.relabel_constraints() method. See #1066.
  • Add ConstrainedQuadraticModel.remove_constraint() method. See #1104.
  • Add methods to report memory usage of quadratic models:

    • Add QuadraticModel.nbytes() method.
    • Add BinaryQuadraticModel.nbytes() method.
    • Add QuadraticModel::nbytes() method to C++ the code.
    • Add BinaryQuadraticModel::nbytes() method to C++ the code.

    See #668

Deprecation Notes

  • Deprecate cls parameter in dimod.generators.random.gnm_random_bqm(), dimod.generators.random.gnp_random_bqm(), dimod.generators.random.uniform(), dimod.generators.random.ran_r(), dimod.generators.random.randint(), and dimod.generators.random.doped().

Bug Fixes

  • Comparison.__repr__() now correctly returns a representation that can be passed to eval().
  • Fix dimod.typing.Bias to correctly exclude numpy.complexfloating.
  • Attempting to relabel two model variables to the same target will now correctly raise a ValueError. See #1110.