/
_README.patch
63 lines (44 loc) · 2.91 KB
/
_README.patch
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
--- README.rst 2019-10-10 20:24:45.000000000 -0400
+++ _README.rst 2019-10-10 20:24:04.000000000 -0400
@@ -36,11 +36,11 @@
This implementation follows the original implementation in the `QDYN Fortran library`_.
-The ``krotov`` package is built on top of `QuTiP`_.
+The :mod:`krotov` package is built on top of `QuTiP`_.
Development happens on `Github`_. You can read the full documentation at `ReadTheDocs`_ or `download a PDF version`_.
-If you use the ``krotov`` package in your research, please `cite it <https://krotov.readthedocs.io/en/stable/01_overview.html#citing-the-krotov-package>`_.
+If you use the :mod:`krotov` package in your research, please `cite it <https://krotov.readthedocs.io/en/stable/01_overview.html#citing-the-krotov-package>`_.
.. _QDYN Fortran library: https://www.qdyn-library.net
.. _QuTiP: http://qutip.org
@@ -119,14 +119,14 @@
Installation
------------
-To install the latest released version of ``krotov`` into your current (conda)
+To install the latest released version of :mod:`krotov` into your current (conda)
environment, run this command in your terminal:
.. code-block:: console
$ python -m pip install krotov
-This is the preferred method to install the ``krotov`` package, as it will always install the most recent stable release.
+This is the preferred method to install the :mod:`krotov` package, as it will always install the most recent stable release.
You may also do
@@ -144,7 +144,7 @@
.. _Python Packaging User Guide: https://packaging.python.org/tutorials/installing-packages/
-To install the latest development version of ``krotov`` from `Github`_:
+To install the latest development version of :mod:`krotov` from `Github`_:
.. code-block:: console
@@ -164,17 +164,11 @@
Then,
1. define the necessary quantum operators and states using `QuTiP`_.
-2. create a list of objectives, as instances of
- |krotov.Objective|_.
-3. call |krotov.optimize_pulses|_ to perform an optimization of an arbitrary
+2. create a list of objectives, as instances of :class:`krotov.Objective <krotov.objectives.Objective>`.
+3. call :func:`krotov.optimize_pulses <krotov.optimize.optimize_pulses>` to perform an optimization of an arbitrary
number of control fields over all the objectives.
-.. |krotov.Objective| replace:: ``krotov.Objective``
-.. _krotov.Objective: https://krotov.readthedocs.io/en/stable/API/krotov.objectives.html#krotov.objectives.Objective
-.. |krotov.optimize_pulses| replace:: ``krotov.optimize_pulses``
-.. _krotov.optimize_pulses: https://krotov.readthedocs.io/en/stable/API/krotov.optimize.html#krotov.optimize.optimize_pulses
-
-See `Using Krotov with QuTiP <https://krotov.readthedocs.io/en/stable/08_qutip_usage.html#using-krotov-with-qutip>`_ and `Examples <https://krotov.readthedocs.io/en/stable/09_examples.html>`_ for details.
+See :ref:`using-krotov-with-qutip` and :ref:`krotov-example-notebooks` for details.
.. _Jupyter notebook: http://jupyter.org