-
Notifications
You must be signed in to change notification settings - Fork 23
/
README
86 lines (55 loc) · 2.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
DWave Native Embedding Algorithms
#################################
This is a repository for algorithms to generate native-structured embeddings.
System Requirements
===================
* Python 2.7 or greater
Optional
--------
* sphinx 1.4 or greater; required to build documentation
* nose; required to run unit tests
* dwave_sapi2 Python client; required to build documentation and run
python examples
* matlab and dwave_sapi2 matlab client; required to run matlab examples
* c compiler and dwave_sapi2 c client; required to run c examples
Installation
============
To install the chimera_embedding module into your system-wide python,
python setup.py install
Documentation
=============
The documentation is automatically generated by Sphinx. The Python examples
are written to be parsed by the file doc/literate.py, which extracts the code
blocks and executes them to produce nice pseudo-interactive documentation.
Some examples produce files as a side-effect, and those files are necessary
for other examples. Those dependencies are recorded in doc/Makefile.
To make the html documentation,
cd doc
make html
or to make pdf documentation,
cd doc
make latexpdf
Unit Tests
==========
The file src/polynomialembedder.py has unit tests in the test directory.
As you develop more functionality, please make sure to add sensible unit
tests to the test directory. To run the unit tests,
nosetests test --with-coverage
Examples
========
Examples can be found in the examples directory. The examples embed_clique.py
and embed_biclique.py both produce embedding files as a side-effect. These
files are required to run the solve_clique.* and solve_biclique.* examples.
The c examples contain instructions to build them using gcc.
License and Copyright
=====================
Copyright 2016 D-Wave Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.