dimod.binary.BinaryQuadraticModel.add_quadratic

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

Add a quadratic bias between two variables.