|
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 | +=================================== |
105 | 3 |
|
106 | 4 | .. toctree:: |
107 | | - :maxdepth: 2 |
108 | | - :caption: Contents: |
109 | | - |
| 5 | + installation |
110 | 6 | 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` |
0 commit comments