dwave.preprocessing.presolve.Presolver.restore_samples

Presolver.restore_samples()[source]

Restore a set of reduced samples to the original variable labels.

Parameters

samples_like – A class:dimod.types.SamplesLike`. The samples must be index-labelled.

Returns

A 2-tuple where the first entry are the restored samples and

the second are the original labels.

Return type

Tuple