dimod.binary.BinaryQuadraticModel.get_linear#

BinaryQuadraticModel.get_linear(v: Hashable) float | floating | integer[source]#

Get the linear bias of a variable.

Parameters:

v – Variable in the binary quadratic model.