AdjDictBQM.get_quadratic(u, v, default=None)[source]
Parameters: u (hashable) – A variable in the binary quadratic model. v (hashable) – A variable in the binary quadratic model. default (optional) – Value to return if there is no interactions between u and v. The quadratic bias of (u, v). ValueError – If either u or v is not a variable in the binary quadratic model or if u == v ValueError – If (u, v) is not an interaction and default is None.