EmbeddingComposite: get Time and Mapping

When using EmbeddingComposite, how can I

a) measure the total calculation time for the embedding (which I presume happens locally)?

b) retrieve the resulting embedding/graph that is submitted to the QPU? I have found a post from 2019 (https://support.dwavesys.com/hc/en-us/community/posts/360029545074-Displaying-Embedding-Generated-by-EmbeddingComposite?input_string=Retrieve%20EmbeddingComposite), is this rather cumbersome approach still the best method to use?

0

Comments

1 comment
  • Hello,

    Thank you for reaching out and taking part in the D-Wave Leap community.

    a) The embedding does happen locally. You can use standard Python timing functions to calculate this information. The easiest way is to just take the time before and after the function call and then take the difference.

    b) That is correct, the example code you have linked is the best way to store the embedding, inspect it, and re-use it. Recalculating an embedding or using the built-in basic functionality tends to be adequate for most users, so digging into the details and building custom solutions takes a few more lines of code. To calculate the embedding step described above in (a), you would want to focus on the line that calls find_embedding on the linked page. This will give you the time it takes to embed your problem.

    Hopefully this helps address your inquiry. Please let us know if you have any questions.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post