dimod.bqm.adjarraybqm.AdjArrayBQM.get_linear

AdjArrayBQM.get_linear(self, v)

Get the linear bias of the specified variable.

Parameters

v (hashable) – Variable in the binary quadratic model.

Returns

Linear bias of v.

Raises

ValueError – If v is not a variable in the binary quadratic model.