dimod.AdjMapBQM.get_linear

AdjMapBQM.get_linear(self, v)

Get the linear bias of v.

Parameters:v (hashable) – A variable in the binary quadratic model.
Returns:The linear bias of v.
Return type:float
Raises:ValueError – If v is not a variable in the binary quadratic model.