Skip to content

Commit 103a7fc

Browse files
authored
Merge pull request #47 from qctrl/DEVOPS-263
Update docs and licence info
2 parents 2b9db5a + 0b20740 commit 103a7fc

28 files changed

+993
-638
lines changed

LICENSE

Lines changed: 765 additions & 201 deletions
Large diffs are not rendered by default.

docs/index.rst

Lines changed: 3 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,6 @@
1-
2-
Q-CTRL Open Controls
3-
====================
4-
5-
Q-CTRL Open Controls is an open-source Python package that makes it easy to
6-
create and deploy established error-robust quantum control protocols from the
7-
open literature. The aim of the package is to be the most comprehensive library
8-
of published and tested quantum control techniques developed by the community,
9-
with easy to use export functions allowing users to deploy these controls on:
10-
11-
12-
* Custom quantum hardware
13-
* Publicly available cloud quantum computers
14-
* The `Q-CTRL product suite <https://q-ctrl.com/products/>`_
15-
16-
Anyone interested in quantum control is welcome to contribute to this project.
17-
18-
Installation
19-
------------
20-
21-
Q-CTRL Open Controls can be install through ``pip`` or from source. We recommend
22-
the ``pip`` distribution to get the most recent stable release. If you want the
23-
latest features then install from source.
24-
25-
Requirements
26-
^^^^^^^^^^^^
27-
28-
To use Q-CTRL Open Controls you will need an installation of Python. We
29-
recommend using the `Anaconda <https://www.anaconda.com/>`_ distribution of
30-
Python. Anaconda includes standard numerical and scientific Python packages
31-
which are optimally compiled for your machine. Follow the `Anaconda
32-
Installation <https://docs.anaconda.com/anaconda/install/>`_ instructions and
33-
consult the `Anaconda User
34-
guide <https://docs.anaconda.com/anaconda/user-guide/>`_ to get started.
35-
36-
We use interactive jupyter notebooks for our usage examples. The Anaconda
37-
python distribution comes with editors for these files, or you can `install the
38-
jupyter notebook editor <https://jupyter.org/install>`_ on its own.
39-
40-
Using PyPi
41-
^^^^^^^^^^
42-
43-
Use ``pip`` to install the latest version of Q-CTRL Open Controls.
44-
45-
.. code-block:: shell
46-
47-
pip install qctrl-open-controls
48-
49-
From Source
50-
^^^^^^^^^^^
51-
52-
The source code is hosted on
53-
`Github <https://github.com/qctrl/python-open-controls>`_. The repository can be
54-
cloned using
55-
56-
.. code-block:: shell
57-
58-
git clone [email protected]:qctrl/python-open-controls.git
59-
60-
Once the clone is complete, you have two options:
61-
62-
63-
#.
64-
Using setup.py
65-
66-
.. code-block:: shell
67-
68-
cd python-open-controls
69-
python setup.py develop
70-
71-
**Note:** We recommend installing using ``develop`` to point your installation
72-
at the source code in the directory where you cloned the repository.
73-
74-
#.
75-
Using Poetry
76-
77-
.. code-block:: shell
78-
79-
cd python-open-controls
80-
./setup-poetry.sh
81-
82-
**Note:** if you are on Windows, you'll need to install
83-
`Poetry <https://poetry.eustace.io>`_ manually, and use:
84-
85-
.. code-block:: shell
86-
87-
cd python-open-controls
88-
poetry install
89-
90-
Once installed via one of the above methods, test your installation by running
91-
``pytest``
92-
in the ``python-open-controls`` directory.
93-
94-
.. code-block:: shell
95-
96-
pytest
97-
98-
Usage
99-
-----
100-
101-
See the `Jupyter notebooks <https://github.com/qctrl/notebooks/tree/master/qctrl-open-controls>`_.
102-
103-
Reference
104-
---------
1+
Q-CTRL Open Controls Python package
2+
===================================
1053

1064
.. toctree::
107-
:maxdepth: 2
108-
:caption: Contents:
109-
5+
installation
1106
qctrlopencontrols
111-
112-
Licence
113-
-------
114-
115-
.. toctree::
116-
117-
licence
118-
119-
Indices and tables
120-
==================
121-
122-
* :ref:`genindex`
123-
* :ref:`modindex`
124-
* :ref:`search`

docs/installation.rst

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
Installation
2+
============
3+
4+
Q-CTRL Open Controls can be install through ``pip`` or from source. We recommend
5+
the ``pip`` distribution to get the most recent stable release. If you want the
6+
latest features then install from source.
7+
8+
Requirements
9+
------------
10+
11+
To use Q-CTRL Open Controls you will need an installation of Python. We
12+
recommend using the `Anaconda <https://www.anaconda.com/>`_ distribution of
13+
Python. Anaconda includes standard numerical and scientific Python packages
14+
which are optimally compiled for your machine. Follow the `Anaconda
15+
Installation <https://docs.anaconda.com/anaconda/install/>`_ instructions and
16+
consult the `Anaconda User
17+
guide <https://docs.anaconda.com/anaconda/user-guide/>`_ to get started.
18+
19+
We use interactive jupyter notebooks for our usage examples. The Anaconda
20+
python distribution comes with editors for these files, or you can `install the
21+
jupyter notebook editor <https://jupyter.org/install>`_ on its own.
22+
23+
From PyPi
24+
---------
25+
26+
Use ``pip`` to install the latest version of the Q-CTRL ppen controls Python package.
27+
28+
.. code-block:: shell
29+
30+
pip install qctrl-open-controls
31+
32+
From Source
33+
-----------
34+
35+
The source code is hosted on
36+
`Github <https://github.com/qctrl/python-open-controls>`_. The repository can be
37+
cloned using
38+
39+
.. code-block:: shell
40+
41+
git clone [email protected]:qctrl/python-open-controls.git
42+
43+
Once the clone is complete, you have two options:
44+
45+
46+
#.
47+
Using setup.py
48+
49+
.. code-block:: shell
50+
51+
cd python-open-controls
52+
python setup.py develop
53+
54+
**Note:** We recommend installing using ``develop`` to point your installation
55+
at the source code in the directory where you cloned the repository.
56+
57+
#.
58+
Using Poetry
59+
60+
.. code-block:: shell
61+
62+
cd python-open-controls
63+
./setup-poetry.sh
64+
65+
**Note:** if you are on Windows, you'll need to install
66+
`Poetry <https://poetry.eustace.io>`_ manually, and use:
67+
68+
.. code-block:: shell
69+
70+
cd python-open-controls
71+
poetry install
72+
73+
Once installed via one of the above methods, test your installation by running
74+
``pytest``
75+
in the ``python-open-controls`` directory.
76+
77+
.. code-block:: shell
78+
79+
pytest

docs/licence.rst

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/qctrlopencontrols.base.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/qctrlopencontrols.driven_controls.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/qctrlopencontrols.dynamic_decoupling_sequences.rst

Lines changed: 0 additions & 38 deletions
This file was deleted.

docs/qctrlopencontrols.exceptions.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/qctrlopencontrols.globals.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/qctrlopencontrols.rst

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
qctrlopencontrols package
2-
=========================
3-
4-
Subpackages
5-
-----------
6-
7-
.. toctree::
8-
9-
qctrlopencontrols.base
10-
qctrlopencontrols.driven_controls
11-
qctrlopencontrols.dynamic_decoupling_sequences
12-
qctrlopencontrols.exceptions
13-
qctrlopencontrols.globals
14-
15-
Module contents
16-
---------------
1+
Q-CTRL Open Controls Python package
2+
===================================
173

184
.. automodule:: qctrlopencontrols
195
:members:

0 commit comments

Comments
 (0)