dwave.embedding.chain_strength.uniform_torque_compensation¶
- uniform_torque_compensation(bqm, embedding=None, prefactor=1.414)[source]¶
Chain strength that attempts to compensate for torque that would break the chain.
The RMS of the problem’s quadratic biases is used for calculation.
- Parameters
bqm (
BinaryQuadraticModel
) – A binary quadratic model.embedding (dict/
EmbeddedStructure
, default=None) – Included to satisfy the chain_strength callable specifications for embed_bqm.prefactor (float, optional, default=1.414) – Prefactor used for scaling. For non-pathological problems, the recommended range of prefactors to try is [0.5, 2].
- Returns
The chain strength, or 1 if chain strength is not applicable.
- Return type