dwave.embedding.EmbeddedStructure.embed_bqm#
- EmbeddedStructure.embed_bqm(source_bqm, chain_strength=None, smear_vartype=None)[source]#
Embed a binary quadratic model onto a target graph.
- Parameters:
source_bqm (
BinaryQuadraticModel) – Binary quadratic model (BQM) to embed.chain_strength (float/mapping/callable, optional) – Sets the coupling strength between qubits representing variables that form a chain. Mappings should specify the required chain strength for each variable. Callables should accept the BQM and embedding and return a float or mapping. By default,
chain_strengthis calculated withuniform_torque_compensation().smear_vartype (
Vartype, optional, default=None) – Determines whether the linear bias of embedded variables is smeared (the specified value is evenly divided as biases of a chain in the target graph) in SPIN or BINARY space. Defaults to theVartypeofsource_bqm.
- Returns:
Target binary quadratic model.
- Return type:
Examples
See examples in the
embed_bqm()function.See also