dwave.rst 1.52 KB
Newer Older
Mccaskey, Alex's avatar
Mccaskey, Alex committed
1
2
D-Wave
=======
3
4
5
6
7
8
9
10
11
12
13
14

Installation
------------
The `D-Wave Plugin <https://github.com/ornl-qci/xacc-dwave>`_ provides
support to XACC for executing programs on the D-Wave QPU via the D-Wave Accelerator.

To install this plugin, run the following

.. code::

   $ xacc-install-plugins.py -p xacc-dwave

Humble, Travis's avatar
Humble, Travis committed
15
You have now installed the D-Wave plugin. It is located in ``$XACC_ROOT/lib/plugins/accelerator`` and ``$XACC_ROOT/lib/plugins/compilers``, where XACC_ROOT is your XACC install prefix. Depending on your installation location, administrative priviledges may be required, e.g., sudo.
16
17

Extensibility for Minor Graph Embedding Algorithms
Mccaskey, Alex's avatar
Mccaskey, Alex committed
18
---------------------------------------------------
19
20
21
22
23
24
25
26
27
28
29
XACC has extensibility built in for minor graph embedding
algorithms. We currently have one supported embedding algorithm (with more coming online), a wrapper around the D-Wave SAPI Cai, Macready, Roi algorithm. In order to install this as a plugin, run the following

.. note::

   The following embedding algorithm needs to leverage the proprietary
   D-Wave SAPI header file and associated shared library: ``dwave_sapi.h`` and ``libdwave_sapi.so`` (or ``libdwave_sapi.dylib`` on macosx).
   In order for the installation below to work, place dwave_sapi.h in ``/usr/local/include/`` and ``libdwave_sapi.so`` or ``libdwave_sapi.dylib`` in ``/usr/local/lib/``

.. code::

Humble, Travis's avatar
Humble, Travis committed
30
   $ xacc-install-plugins.py -p xacc-dwsapi-embedding
31
32
33

You have now installed the D-Wave plugin. It is located in ``$XACC_ROOT/lib/plugins/embedding``, where ``XACC_ROOT`` is your XACC install prefix.