Beginner Question: How do I run a simple function on the Dwave QPU?

Lets say I have a function 

 

def testFunction (): 

      // add some variables and write to file

     //do something with those variables , as well as converting to strings etc

 

 

if __name__ == "__main__":
      testFunction ()
 
 
 
==============================================================
 
The question is, how would I be able to run this python file on the QPU with 2000qb?
Thank you before hand for helping out a complete beginner.
 
0

Comments

1 comment
  • The QPU doesn't execute instructions they way a CPU does. The D-Wave Quantum Annealer is configured to take a problem expressed as a quadratic models and return a low energy solution for that model.  In its most simplistic form, it is just a minimum function which returns a sampling of values, where low energy solutions (good problem solutions) are more likely than bad ones.

    For some starter resources, take a look at this post: https://support.dwavesys.com/hc/en-us/community/posts/4410174432407/comments/4410355427607 

    It really is not as abstract as my explanation makes it sound.

    I welcome others to jump in with their explanations.

    Ed

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post