{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/2"}],"enrichment":{"capability":"dimod provides classes and interfaces for defining and solving binary quadratic models (BQMs), including Ising and QUBO formulations, along with reference samplers and abstract base classes for building custom solvers.","skillfed_tags":["optimization","quantum-computing","sampler-api"],"use_cases":["Define and solve small optimization problems using dimod's exact brute-force solver for verification or prototyping.","Build a custom sampler by inheriting from dimod's abstract base classes and integrating it into the Ocean ecosystem.","Prepare QUBO or Ising models for submission to quantum annealers or other specialized solvers via a uniform interface.","Compose multiple samplers (e.g., classical preprocessing followed by quantum sampling) using dimod's sampler abstraction.","Experiment with higher-order optimization models beyond standard quadratic formulations."],"what_it_does":"dimod is a Python library that defines a shared API for samplers working with binary quadratic models (BQMs)\u2014a class of optimization problems that includes Ising models and QUBO (Quadratic Unconstrained Binary Optimization) formulations. It provides data structures to represent these models, reference implementations of both simple and composed samplers, and abstract base classes for building custom solvers. The library also supports higher-order (non-quadratic) models beyond the standard BQM.\n\nYou use dimod to construct an optimization problem as a BQM, then pass it to a sampler\u2014either dimod's built-in ExactSolver for small problems or a third-party sampler (such as D-Wave's quantum hardware) for larger ones. The library abstracts away the details of different solver implementations, letting you swap samplers without rewriting your problem definition. It is the foundation layer for the D-Wave Ocean SDK ecosystem.","worth_installing":"Yes. dimod is actively maintained, has no known vulnerabilities, and is essential if you work with binary quadratic models or the D-Wave Ocean SDK. The Apache 2.0 license is permissive. Medium install friction is manageable thanks to pre-built wheels for modern Python versions (3.10\u20133.14). Install it if you need a standard interface for BQM solvers or plan to use quantum annealing tools."},"id":"dimod","links":{"html":"https://skillfed.io/packages/dimod","md":"https://skillfed.io/packages/dimod.md","pypi":"https://pypi.org/project/dimod/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-08","license_spdx":null,"license_treatment":"permissive","name":"dimod","python_support":"supports_current","summary":"A shared API for binary quadratic model samplers."},"popularity":{"monthly_downloads":273858,"position":8196,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.12.22"}
