dwave.inspector.show¶
- show(*args, **kwargs)[source]¶
Auto-detect and forward to the
show_*
optimal for the specified arguments.For description of accepted arguments, see of
show_qmi()
,show_bqm_response()
, orshow_bqm_sampleset()
.Note
Low-level data capture is enabled on dwave.inspector import. Data captured includes the full quantum machine instruction (QMI), QPU response, embedding context, warnings, and sampling parameters.
If data capture is enabled prior to embedding/sampling, you need provide to
show()
only a response or problem ID for QMI inspection or aSampleSet
for logical problem and QMI inspection.If data capture is not enabled prior to embedding/sampling, provide all relevant data explicitly to
show()
.Examples
This example shows ways to visualize just a QMI (not a logical problem):
show(response) show((h, J), response) show(Q, response) show('69ace80c-d3b1-448a-a028-b51b94f4a49d')
This example visualizes a QMI and explicit embedding:
show((h, J), response, dict(embedding=embedding, chain_strength=5))
This example shows embedding and warnings read from the sampleset:
show(bqm, sampleset)
This example shows embedding and warnings read from a
SampleSet
, from which the logical problem is reconstructed:show(sampleset)