dimod.bqm.adjarraybqm.AdjArrayBQM.iter_quadratic

AdjArrayBQM.iter_quadratic(self, variables=None)

Iterate over the quadratic biases of the binary quadratic model.

Parameters

variables (iterable, optional) – Variables in the binary quadratic model. Iterates only over interactions of these variables.

Yields

3-tuple – Interaction variables in the binary quadratic model and their bias.