dimod.DiscreteQuadraticModel.set_quadratic_case#

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

Set 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.

  • bias (float) – The quadratic bias.