dimod.AdjDictBQM.get_linear

AdjDictBQM.get_linear(v)[source]

Get the linear bias of the 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.