dwave.system.composites.VirtualGraphComposite.nodelist¶
-
VirtualGraphComposite.
nodelist
= None¶ list – Nodes available to the composed sampler.
Examples
This example uses
VirtualGraphComposite
to instantiate a composed sampler that uses a D-Wave solver selected by the user’s default D-Wave Cloud Client configuration file. Because qubits 0, 1, 4, 5 are active on the selected D-Wave solver, the three nodes, x, y, and z, specified by the embedding, are all available to problems using this composed sampler.>>> from dwave.system.samplers import DWaveSampler >>> from dwave.system.composites import VirtualGraphComposite >>> embedding = {'x': {1}, 'y': {5}, 'z': {0, 4}} >>> sampler = VirtualGraphComposite(DWaveSampler(), embedding) >>> sampler.nodelist ['x', 'y', 'z']