dwave_networkx.default_sampler.get_default_sampler

get_default_sampler()[source]

Queries the current default sampler.

Examples

This example queries the default sampler before and after specifying a default sampler.

>>> print(dnx.get_default_sampler())  # doctest: +SKIP
None
>>> dnx.set_default_sampler(sampler)  # doctest: +SKIP
>>> print(dnx.get_default_sampler())  # doctest: +SKIP
'sampler'