dimod.QuadraticModel.add_quadratic

QuadraticModel.add_quadratic(u: Hashable, v: Hashable, bias: Union[int, float, numpy.number])[source]

Add quadratic bias to a pair of variables.