Ocean-compatible collection of solvers/samplers for D-Wave quantum annealing and classical simulated annealing. Provides samplers like SimulatedAnnealingSampler, ThermalSampler, TreeDecompositionSolver, and more. Current version 1.7.0, requires Python >=3.10. Released under Apache 2.0.
pip install dwave-samplersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Build a Max-Cut problem using Ising formulation and sample with SimulatedAnnealingSampler.
Upgrade to Python 3.10 or later. Use Python 3.9 only with dwave-samplers <1.7.0.
Use from dwave.samplers import <Sampler>; do not use from dwave_samplers import ...
Refer to official Ocean documentation for current sampler recommendations.
Install dimod: pip install dimod dwave-samplers
Use: from dwave.samplers import <sampler_name>
Run: pip install --upgrade dwave-samplers dwave-ocean-sdk
Refer to specific sampler's documentation for accepted parameters.