dwave.embedding.chain_strength.scaled

scaled(bqm, embedding=None, prefactor=1.0)[source]

Chain strength that is scaled to the problem bias range.

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.0) – Prefactor used for scaling.

Returns

The chain strength, or 1 if chain strength is not applicable.

Return type

float