dwave.system.composites.ReverseAdvanceComposite.sample#

ReverseAdvanceComposite.sample(bqm, anneal_schedules=None, **parameters)[source]#

Sample the binary quadratic model using reverse annealing.

For each specified anneal schedule, creates a reverse annealing submission.

Parameters:
  • bqm (BinaryQuadraticModel) – Binary quadratic model to be sampled from.

  • anneal_schedules (list of lists, optional, default=[[[0, 1], [1, 0.35], [9, 0.35], [10, 1]]]) – Anneal schedules in order of submission. Each schedule is formatted as a list of [time, s] pairs, in which time is in microseconds and s is the normalized anneal fraction in the range \([0,1]\).

  • initial_state (dict, optional) – The state to reverse anneal from. If not provided, a state is randomly generated.

  • **parameters – Parameters for the sampling method, specified by the child sampler.

Returns:

SampleSet that has initial_state and schedule_index fields.

Examples

See examples for the ReverseAdvanceComposite class.