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 whichtimeis in microseconds andsis 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:
SampleSetthat hasinitial_stateandschedule_indexfields.
Examples
See examples for the
ReverseAdvanceCompositeclass.