Utilities

Decorators

Decorators allow for input checking and default parameter setting for algorithms.

binary_quadratic_model_sampler(which_args) Decorator to check sampler arguments.

Exceptions

Base exceptions and errors for D-Wave NetworkX.

All are derived from NetworkXException.

DWaveNetworkXException Base class for exceptions in DWaveNetworkX.
DWaveNetworkXMissingSampler Exception raised by an algorithm requiring a discrete model sampler when none is provided.