dimod.QuadraticModel.get_quadratic#

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

Get the quadratic bias of the specified pair of variables.

Parameters:
  • u – Variable in the quadratic model.

  • v – Variable in the quadratic model.

  • default – Value to return if variables u and v have no interaction.