dimod.binary.BinaryQuadraticModel.reduce_quadratic

BinaryQuadraticModel.reduce_quadratic(function: Callable, initializer: Optional[Union[int, float, numpy.number]] = None) Any[source]

Apply function of two arguments cumulatively to the quadratic biases.