Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (46 sloc) 1.17 KB

qbsolv

Example

from dwave_qbsolv import QBSolv
Q = {(0, 0): 1, (1, 1): 1, (0, 1): 1}
response = QBSolv().sample_qubo(Q)
print("samples=" + str(list(response.samples())))
print("energies=" + str(list(response.data_vectors['energy'])))

Documentation

.. only:: html

  :Date: |today|

.. toctree::
  :maxdepth: 1

  intro
  source/index
  installation
  license
  contributing_qbsolv
  Source <https://github.com/dwavesystems/qbsolv>

.. toctree::
  :caption: Ocean Software
  :maxdepth: 1

  Ocean Home <https://ocean.dwavesys.com/>
  Ocean Documentation <https://docs.ocean.dwavesys.com>
  Ocean Glossary <https://docs.ocean.dwavesys.com/en/latest/glossary.html>

.. toctree::
  :caption: D-Wave
  :maxdepth: 1

  D-Wave <https://www.dwavesys.com>
  Leap <https://cloud.dwavesys.com/leap/>
  D-Wave System Documentation <https://docs.dwavesys.com/docs/latest/index.html>

Indices and tables

You can’t perform that action at this time.