dimod.AdjVectorBQM.get_linear

AdjVectorBQM.get_linear(self, v)[source]

Get the linear bias of a specified variable.

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.