dwave_networkx.default_sampler.unset_default_sampler#

unset_default_sampler()[source]#

Resets the default sampler back to None.

Examples

This example sets sampler0 as the default sampler, verifies the setting, then resets the default, and verifies the resetting.

>>> dnx.set_default_sampler(sampler0)  
>>> print(dnx.get_default_sampler())  
'sampler0'
>>> dnx.unset_default_sampler()  
>>> print(dnx.get_default_sampler())  
None