dimod.binary.BinaryQuadraticModel.get_quadratic#

BinaryQuadraticModel.get_quadratic(u: Hashable, v: Hashable, default: float | floating | integer | None = None)[source]#

Get the quadratic bias of a pair of variables.

Parameters:
  • u – Variable in the binary quadratic model.

  • v – Variable in the binary quadratic model.