How do I connect to the API from an app or using html(preferably html5) code?

I am trying to figure out how to connect to the API I can set up the jupiter notebooks and learn that way but is there a way to do it in html... thanks!

0

Comments

3 comments
  • Hi Matthew,

    The Jupyter notebooks run code through Python. If you're interested in developing an app, check out our open-source Ocean tools. These allow you to build Python programs that can connect to the D-Wave QPU through the API.

    A great place to begin is the Getting Started section of our help centre, and also the Ocean tools documentation.

    1
    Comment actions Permalink
  • thanks! also, when i tried to run the structural imbalance problem I got the following error in terminal I was wondering if anybody knows how to solve it... thanks!

    user@PTFAssaultMachine:~/structural-imbalance-demo$ python demo.py qpu
    Traceback (most recent call last):
    File "demo.py", line 5, in <module>
    import dwave_structural_imbalance_demo as sbdemo
    File "/home/user/structural-imbalance-demo/dwave_structural_imbalance_demo/__init__.py", line 1, in <module>
    from dwave_structural_imbalance_demo.interfaces import *
    File "/home/user/structural-imbalance-demo/dwave_structural_imbalance_demo/interfaces.py", line 5, in <module>
    import dwave_networkx as dnx
    ImportError: No module named dwave_networkx

    0
    Comment actions Permalink
  • Hello Matthew,

    Have you installed the D-Wave Ocean developer kit? After installing, you can check your connection to D-Wave with the terminal command:

    dwave ping
    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post