# dwave.cloud.solver.StructuredSolver.check_problem¶

Test if an Ising model matches the graph provided by the solver.

Parameters
• linear (list/dict) – Linear terms of the model (h).

• quadratic (dict[(int, int), float]) – Quadratic terms of the model (J).

Returns

bool

Examples

This example creates a client using the local system’s default D-Wave Cloud Client configuration file, which is configured to access a D-Wave 2000Q QPU, and tests a simple Ising model for two target embeddings (that is, representations of the model’s graph by coupled qubits on the QPU’s sparsely connected graph), where only the second is valid.

```>>> from dwave.cloud import Client
>>> print((0, 1) in solver.edges)
False
>>> print((0, 4) in solver.edges)
True
>>> with Client.from_config() as client:
...     solver = client.get_solver()
...     print(solver.check_problem({0: -1, 1: 1},{(0, 1):0.5}))
...     print(solver.check_problem({0: -1, 4: 1},{(0, 4):0.5}))
...
False
True
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.7054229,"math_prob":0.9508587,"size":883,"snap":"2022-40-2023-06","text_gpt3_token_len":237,"char_repetition_ratio":0.13196814,"word_repetition_ratio":0.0,"special_character_ratio":0.29105324,"punctuation_ratio":0.2580645,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98521286,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-09-29T08:17:32Z\",\"WARC-Record-ID\":\"<urn:uuid:45ca5a6e-55f9-4e7c-b84c-ef8e1f20294a>\",\"Content-Length\":\"27404\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ea31eea8-414d-4397-a0ed-a47b9a8b575c>\",\"WARC-Concurrent-To\":\"<urn:uuid:2eec8d8f-adad-4547-b968-cb77518b2aa9>\",\"WARC-IP-Address\":\"104.18.1.163\",\"WARC-Target-URI\":\"https://docs.ocean.dwavesys.com/en/stable/docs_cloud/reference/generated/dwave.cloud.solver.StructuredSolver.check_problem.html\",\"WARC-Payload-Digest\":\"sha1:GINU22ROAG3RY6O6HZUKTDKBCOO3ER2T\",\"WARC-Block-Digest\":\"sha1:TYR34BWSZAWE3QC3EME5CBYNCNQRUZOP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030335326.48_warc_CC-MAIN-20220929065206-20220929095206-00741.warc.gz\"}"}