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())  
None
>>> dnx.set_default_sampler(sampler)  
>>> print(dnx.get_default_sampler())  
'sampler'