DWaveSampler¶
-
class
DWaveSampler
(solver_name=None, url=None, token=None, proxies=None, permissive_ssl=False)[source]¶ dimod wrapper for a D-Wave Micro Client.
Parameters: - solver_name (str, optional) – Id of the requested solver. None will return the default solver (see configuration).
- url (str, optional) – URL of the SAPI server. None will return the default url (see configuration).
- token (str, optional) – Authentication token from the SAPI server. None will return the default token (see configuration).
- proxies (dict, optional) – Mapping from the connection scheme (http[s]) to the proxy server address.
- permissive_ssl (boolean, optional, default=False) – Disables SSL verification.
-
structure
¶ tuple –
A named 3-tuple with the following properties/values:
nodelist (list): The nodes available to the sampler.
edgelist (list[(node, node)]): The edges available to the sampler.
adjacency (dict): Encodes the edges of the sampler in nested dicts. The keys of adjacency are the nodes of the sampler and the values are neighbor-dicts.
-
accepted_kwargs
¶ dict[str,
dimod.SamplerKeywordArg
] – The keyword arguments accepted by the sample_ising and sample_qubo methods for this sampler.
-
my_kwargs
()[source]¶ The keyword arguments accepted by DWaveSampler
Returns: SamplerKeywordArg
]: The keyword arguments accepted by the sample_ising and sample_qubo methods for this sampler or the top-level composite layer. For all accepted keyword arguments see accepted_kwargs.Return type: dict[str
-
sample_ising
(linear, quadratic, **kwargs)[source]¶ Sample from the provided Ising model.
Parameters: Returns: