# dimod.AdjMapBQM.contract_variables¶

AdjMapBQM.contract_variables(u, v)

Enforce u, v being the same variable in a binary quadratic model.

The resulting variable is labeled ‘u’. Values of interactions between v and variables that u interacts with are added to the corresponding interactions of u.

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

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