dimod.AdjMapBQM.set_quadratic

AdjMapBQM.set_quadratic(self, u, v, Bias b)[source]

Set the quadratic bias of (u, v).

Parameters
  • u (hashable) – A variable in the binary quadratic model.

  • v (hashable) – A variable in the binary quadratic model.

  • b (numeric) – The linear bias of v.

Raises

TypeError – If u or v is not hashable.