dimod.DiscreteQuadraticModel.get_quadratic_case#

DiscreteQuadraticModel.get_quadratic_case(u, u_case, v, v_case)[source]#

The bias associated with the interaction between two cases of u and v.

Parameters:
  • u – A variable in the discrete quadratic model.

  • u_case (int) – The case of u.

  • v – A variable in the discrete quadratic model.

  • v_case (int) – The case of v.

Returns:

The quadratic bias.