List of couplers not currently included in graph

Is there a property of DwaveSampler that lists what couplers are not currently available in the graph? Or does this have to be generated by looking at DwaveSampler.edgelist and determining what couplers are not listed there?

0

Comments

1 comment
  • Hi Malcolm,

    I don't believe there is a built-in function, but this is a relatively easy task, and a good opportunity to understand the difference between the normal solver and the VFYC (Virtual Full-Yield Chimera) solver.

    Check out the following link for more information, but the gist is that the VFYC solver has an idealized QPU with all of the qubits and couplers working.

    VFYC info:
    https://docs.dwavesys.com/docs/latest/c_solver_intro.html#vfyc-solvers

    Here is a simple example that can take advantage of these sampler properties and use some handy Python tricks using sets:

    from dwave.system.samplers import DWaveSampler

    vfyc_solver='DW_2000Q_VFYC_2_1'
    my_solver='DW_2000Q_2_1'
    my_token=''
    my_endpoint = 'https://cloud.dwavesys.com/sapi'

    my_sampler = DWaveSampler(endpoint=my_endpoint, token=my_token, solver=my_solver)
    vfyc_sampler = DWaveSampler(endpoint=my_endpoint, token=my_token, solver=vfyc_solver)

    unavailable_couplers = set(vfyc_sampler.edgelist) - set(my_sampler.edgelist)
    unavailable_qubits = set(vfyc_sampler.adjacency.keys()) - set(my_sampler.adjacency.keys())

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post