dimod.DiscreteQuadraticModel.get_linear_case#

DiscreteQuadraticModel.get_linear_case(v, case)[source]#

The linear bias associated with case case of variable v.

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

  • case (int) – The case of v.

Returns:

The linear bias.