Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Commit dc773cb

Browse files
authored
Documentation (#17)
* Updated citation and moved .nojekyll to makefile * Added tutorial
1 parent ca15a27 commit dc773cb

File tree

10 files changed

+345
-83
lines changed

10 files changed

+345
-83
lines changed

README.md

Lines changed: 5 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# QML: A Python Toolkit for Quantum Machine Learning
22
[![Build Status](https://travis-ci.org/qmlcode/qml.svg?branch=master)](https://travis-ci.org/qmlcode/qml)
33

4-
QML is a Python2/3-compatible toolkit for representation learning of properties of molecules and solids. QML is not a high-level framework where you can do `model.train()`, but supplies the building blocks to carry out efficient and accurate machine learning on chemical compounds. As such, the goal is to provide usable and efficient implementations of concepts such as representations and kernels, which can then be implemented in other machine learning codes.
4+
QML is a Python2/3-compatible toolkit for representation learning of properties of molecules and solids.
55

66
#### Current list of contributors:
77
* Anders S. Christensen (University of Basel)
8-
* Felix Faber (University of Basel)
8+
* Felix A. Faber (University of Basel)
99
* Bing Huang (University of Basel)
1010
* Lars A. Bratholm (University of Copenhagen)
1111
* O. Anatole von Lilienfeld (University of Basel)
@@ -16,69 +16,13 @@ Until the preprint is available from arXiv, please cite this GitHub repository a
1616

1717
AS Christensen, F Faber, B Huang, LA Bratholm, OA von Lilienfeld (2017) "QML: A Python Toolkit for Quantum Machine Learning" https://github.com/qmlcode/qml
1818

19-
## 2) Installation
2019

21-
Installing prerequisite modules (for most Linux systems):
20+
## 2) Get help:
2221

23-
```bash
24-
sudo apt-get install python-pip gfortran libblas-dev liblapack-dev git
22+
Documentation and installation instruction is found at: https://qmlcode.github.io
2523

26-
```
27-
These should already be installed on most systems. The Intel compilers and MKL math-libraries are supported as well (see section 1.3).
2824

29-
30-
### 2.1) Installing via `pip`:
31-
32-
The easiest way to install the stable version from the Python Package Index (PyPI) is using the official, built-in Python package manager, `pip`:
33-
34-
```bash
35-
pip install qml --user -U
36-
```
37-
38-
To use the Intel compiler, together with the MKL math library:
39-
40-
```bash
41-
pip install qml --user -U --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem"
42-
```
43-
44-
Alternatively, you can install the most recent stable development snapshot directly from GitHub:
45-
46-
```bash
47-
pip install git+https://github.com/qmlcode/qml --user -U
48-
```
49-
50-
Use `pip2 install ...` or `pip3 install ...` to get the Python2 or Python3 versions explicitly. QML supports both flavors.
51-
52-
To uninstall simply use `pip` again.
53-
54-
```bash
55-
pip uninstall qml
56-
```
57-
58-
### 2.2) Installing via `setup.py` with Intel compiler:
59-
60-
If you have Intel compilers installed (2016 and newer), you can compile QML with Ifort/MKL using the following options:
61-
62-
```bash
63-
pip install git+https://github.com/qmlcode/qml.git --user --upgrade --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem"
64-
```
65-
66-
### 2.3) Note on Apple/Mac support:
67-
68-
Installing QML requires a Fortran compiler. On Darwin you can install it using `brew`:
69-
70-
```bash
71-
brew install gcc
72-
```
73-
74-
Note the Clang Fortran compiler from brew unfortunately does not support OpenMP. Therefore parallelism via OpenMP is disabled as default for Darwin systems.
75-
76-
## 3) Get help:
77-
78-
Documentation in found in the file [`DOCUMENTATION.md`](../blob/master/DOCUMENTATION.md).
79-
80-
81-
## 4) License:
25+
## 3) License:
8226

8327
QML is freely available under the terms of the MIT license.
8428

docs/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ help:
1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21+
touch build/html/.nojekyll

docs/build/html/.nojekyll

Whitespace-only changes.

docs/source/citation.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Citing use of QML
2+
-----------------
3+
4+
QML is freely available under the terms of the MIT open-source license.
5+
However, we ask that you properly cite the relevant, underlying work in your published work.
6+
For convenience we provide a list of citations here.
7+
8+
Until the preprint is available from arXiv, please cite use of QML as:
9+
10+
::
11+
12+
AS Christensen, FA Faber, B Huang, LA Bratholm, A Tkatchenko, KR Müller, OA von Lilienfeld (2017) "QML: A Python Toolkit for Quantum Machine Learning" https://github.com/qmlcode/qml
13+
14+
15+

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
# Add any paths that contain custom static files (such as style sheets) here,
9797
# relative to this directory. They are copied after the builtin static files,
9898
# so a file named "default.css" will overwrite the builtin "default.css".
99-
html_static_path = ['_static']
99+
# html_static_path = ['_static']
100100

101101

102102
# -- Options for HTMLHelp output ------------------------------------------

docs/source/index.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,26 @@ Current list of contributors:
2727
- Klaus-Robert Müller (Technische Universität Berlin/Korea University)
2828
- O. Anatole von Lilienfeld (University of Basel)
2929

30-
1) Citing QML:
30+
Citing QML:
3131
--------------
3232

33-
Until the preprint is available from arXiv, please cite this GitHub
34-
repository as:
33+
Until the preprint is available from arXiv, please cite use of QML as:
3534

3635
::
3736

38-
AS Christensen, F Faber, B Huang, LA Bratholm, A Tkatchenko, KR Müller, OA von Lilienfeld (2017) "QML: A Python Toolkit for Quantum Machine Learning" https://github.com/qmlcode/qml
39-
40-
41-
2) Installation
42-
---------------
43-
44-
Please go to the QML github repository at https://github.com/qmlcode/qml/
37+
AS Christensen, FA Faber, B Huang, LA Bratholm, A Tkatchenko, KR Müller, OA von Lilienfeld (2017) "QML: A Python Toolkit for Quantum Machine Learning" https://github.com/qmlcode/qml
4538

4639

40+
For citation of the individual procedures of QML, please see: `citation`
4741

4842
.. toctree::
4943
:maxdepth: 2
5044
:caption: GETTING STARTED:
5145
:name: index
5246

5347
installation
48+
citation
49+
tutorial
5450
examples
5551

5652

@@ -61,7 +57,7 @@ Please go to the QML github repository at https://github.com/qmlcode/qml/
6157

6258
qml
6359

64-
3) License:
60+
License:
6561
-----------
6662

6763
QML is freely available under the terms of the MIT license.

docs/source/installation.rst

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
Installation
1+
Installing QML
22
---------------
33

4+
Installing prerequisite modules (for most Linux systems):
5+
6+
.. code:: bash
7+
8+
sudo apt-get install python-pip gfortran libblas-dev liblapack-dev git
9+
10+
These should already be installed on most systems. The Intel compilers
11+
and MKL math-libraries are supported as well (see section 1.3).
12+
13+
Installing via ``pip``:
14+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
416
The easiest way to install the stable version from the Python Package
517
Index (PyPI) is using the official, built-in Python package manager,
618
``pip``:
@@ -9,12 +21,64 @@ Index (PyPI) is using the official, built-in Python package manager,
921
1022
pip install qml --user -U
1123
24+
To use the Intel compiler, together with the MKL math library:
25+
26+
.. code:: bash
27+
28+
pip install qml --user -U --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem"
29+
1230
Alternatively, you can install the most recent stable development
1331
snapshot directly from GitHub:
1432

1533
.. code:: bash
1634
17-
pip install git+https://github.com/qmlcode/qml --user -U
35+
pip install git+https://github.com/qmlcode/qml@develop --user -U
36+
37+
Use ``pip2 install ...`` or ``pip3 install ...`` to get the Python2 or
38+
Python3 versions explicitly. QML supports both flavors.
39+
40+
To uninstall simply use ``pip`` again.
41+
42+
.. code:: bash
43+
44+
pip uninstall qml
45+
46+
Installing via with Intel compilers:
47+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48+
49+
If you have Intel compilers installed (2016 and newer), you can compile
50+
QML with Ifort/MKL using the following options:
51+
52+
.. code:: bash
53+
54+
pip install git+https://github.com/qmlcode/qml.git --user --upgrade --global-option="build" --global-option="--compiler=intelem" --global-option="--fcompiler=intelem"
55+
56+
Note on Apple/Mac support:
57+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58+
59+
Installing QML requires a Fortran compiler. On MacOS you can install it
60+
using ``brew``:
61+
62+
.. code:: bash
63+
64+
# Update brew
65+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
66+
67+
# Install GCC
68+
brew install gcc
69+
70+
Note the Clang Fortran compiler from brew unfortunately does not support
71+
OpenMP.
72+
Therefore parallelism via OpenMP is disabled as default for MacOS systems.
73+
74+
Additionally, we found that some users have multiple version of the ``as`` assembler - this might happen if you have GCC from e.g. brew and macports at the same time. Look for the following error:
75+
76+
77+
``FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!``
78+
79+
If you experience this problems the setting the following path might fix the problem:
80+
81+
.. code:: bash
1882
83+
export PATH=/usr/bin:$PATH
1984
20-
For more installation help, please see the github repository: https://github.com/qmlcode/qml/

docs/source/qml.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ qml\.math module
3737
:undoc-members:
3838
:show-inheritance:
3939

40-
qml\.compound module
40+
qml\.Compound class
4141
--------------------
4242

4343
.. automodule:: qml.compound
@@ -68,7 +68,6 @@ qml\.wrappers module
6868
:undoc-members:
6969
:show-inheritance:
7070

71-
7271
.. Module contents
7372
.. ---------------
7473

0 commit comments

Comments
 (0)