dimod.unembed_response error

ImportError                               Traceback (most recent call last)
<ipython-input-13-af2e538ccca2> in <module>()
----> 1 from dimod import unembed_response
      3 resp = unembed_response(result, embeddings, bqm)
      5 print 'Solution string {}'.format(resp)

ImportError: cannot import name unembed_response

Where did dimod.unembed_response go?

BTW this is not the only change in DWave API.

A program that used to work more than a month ago is just not working now after a fresh install of dwave software.

Wondering why there is so much turn - A lot of my time is spent in adapting to the new API.




1 comment
  • Hello Manoj,

    Sorry for the confusion. The Ocean tool suite is growing quite quickly right now, so there are a lot of changes to add features and organize the packages better.

    You can find the documentation for embedding under the dwave-system documentation.The Unembed Sampleset tool should be able to replace unembed_response in your code.

    You can also follow the package release notes at D-Wave's Github page. The release notes include changes, additions, and deprecations that might be useful if you see error like the above.

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post