dwave.system.composites.LinearAncillaComposite.sample#
- LinearAncillaComposite.sample(bqm: BinaryQuadraticModel, *, h_tolerance: Number = 0, default_flux_bias_range: tuple[float, float] = (-0.005, 0.005), **parameters)[source]#
Sample from the provided binary quadratic model.
Note
This composite does not support the auto_scale parameter; use the
ScaleComposite
for scaling.- Parameters:
bqm (
BinaryQuadraticModel
) – Binary quadratic model to be sampled from.h_tolerance (
numbers.Number
) – Magnitude of the linear bias to be set directly on problem qubits; above this the bias is emulated by the flux-bias offset to an ancilla qubit. Assumed to be positive. Defaults to zero.default_flux_bias_range (
tuple
) – Flux-bias range, as a two-tuple, supported by the QPU. The values must be large enough to ensure qubits remain polarized throughout the annealing process.**parameters – Parameters for the sampling method, specified by the child sampler.
- Returns: