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 bqms list, which is submitted to the child solver with the corresponding item in the chain strength and initial state lists, specified here by the chain_strengths and initial_states parameters, as well as the corresponding item in the minor embedding list of the embeddings parameter used to instantiate the ParallelEmbeddingComposite class. 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 the info field returned by the child sampler.

Return type:

Tuple

Examples

See examples in the ParallelEmbeddingComposite class.

See also

The sample() method.