dwave.system.composites.ParallelEmbeddingComposite.sample_multiple#
- ParallelEmbeddingComposite.sample_multiple(bqms: list[BinaryQuadraticModel], chain_strengths: list | None = None, initial_states: list | None = None, **kwargs) tuple[list[SampleSet], dict][source]#
Sample from the specified binary quadratic models.
Samplesets are returned for each binary quadratic model (BQM) in the
bqmslist, which is submitted to the child solver with the corresponding item in the chain strength and initial state lists, specified here by thechain_strengthsandinitial_statesparameters, as well as the corresponding item in the minor embedding list of theembeddingsparameter used to instantiate theParallelEmbeddingCompositeclass. These four lists should be ordered appropriately.- Parameters:
bqms – Binary quadratic models to be sampled from.
chain_strengths – Chain strength per BQM.
initial_states – Initial state per BQM.
**kwargs – Optional keyword arguments for the sampling method. Note that if
auto_scale=True, each embedded BQM is independently scaled to maximize programmable range.
- Returns:
A list of
SampleSet, one per embedding, and theinfofield returned by the child sampler.- Return type:
Tuple
Examples
See examples in the
ParallelEmbeddingCompositeclass.See also
The
sample()method.