From 4d2e3b0e86cfcb78ebec392791307c5d62c6dc18 Mon Sep 17 00:00:00 2001 From: mstechly Date: Mon, 15 Oct 2018 10:52:48 +0200 Subject: [PATCH 1/2] Added information how to create graphs implemented in D-Wave 2X and D-Wave 2000Q machines to the docs. --- docs/intro.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/intro.rst b/docs/intro.rst index 3016b80f..f58db562 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -80,3 +80,17 @@ from low energy states of the problem's objective function) must have `sample_qubo` and `sample_ising` methods for solving Ising and QUBO models and return an iterable of samples in order of increasing energy. You can set a default sampler using the `set_default_sampler()` function. + +Below you can see how to create Chimera graphs implemented in the D-Wave 2X nad D-Wave 2000Q machines: + +.. code: python + + import dwave_networkx as dnx + + # D-Wave 2X + C = dnx.chimera_graph(12, 12, 4) + + # D-Wave 2000Q + C = dnx.chimera_graph(16, 16, 4) + + From 1b5008bcd18f1bedddd2621a1e399b8cde3ebe70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=C2=A0St=C4=99ch=C5=82y?= Date: Wed, 17 Oct 2018 17:08:10 +0200 Subject: [PATCH 2/2] Small fixes in intro.srt --- docs/intro.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/intro.rst b/docs/intro.rst index f58db562..275ad98f 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -81,9 +81,9 @@ from low energy states of the problem's objective function) must have and return an iterable of samples in order of increasing energy. You can set a default sampler using the `set_default_sampler()` function. -Below you can see how to create Chimera graphs implemented in the D-Wave 2X nad D-Wave 2000Q machines: +Below you can see how to create Chimera graphs implemented in the D-Wave 2X and D-Wave 2000Q systems: -.. code: python +.. code:: python import dwave_networkx as dnx @@ -92,5 +92,3 @@ Below you can see how to create Chimera graphs implemented in the D-Wave 2X nad # D-Wave 2000Q C = dnx.chimera_graph(16, 16, 4) - -