dimod.binary.BinaryQuadraticModel.set_quadratic

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

Set the quadratic bias of variables (u, v).

Raises

TypeError – If u or v is not hashable.