-
Notifications
You must be signed in to change notification settings - Fork 29
/
_README.patch
66 lines (46 loc) · 2.92 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
64
65
66
--- _README.rst 2021-01-09 12:03:18.000000000 -0500
+++ _README.rst 2021-01-09 12:03:18.000000000 -0500
@@ -37,14 +37,14 @@
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 `online`__ or `download a PDF version`_.
.. _Documentation: https://qucontrol.github.io/krotov
__ Documentation_
-If you use the ``krotov`` package in your research, please `cite it <https://qucontrol.github.io/krotov/v1.2.1/01_overview.html#citing-the-krotov-package>`_.
+If you use the :mod:`krotov` package in your research, please :ref:`cite it <CitingKrotov>`.
.. _QDYN Fortran library: https://www.qdyn-library.net
.. _QuTiP: http://qutip.org
@@ -122,14 +122,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:: shell
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
@@ -147,7 +147,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:: shell
@@ -167,17 +167,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://qucontrol.github.io/krotov/v1.2.1/API/krotov.objectives.html#krotov.objectives.Objective
-.. |krotov.optimize_pulses| replace:: ``krotov.optimize_pulses``
-.. _krotov.optimize_pulses: https://qucontrol.github.io/krotov/v1.2.1/API/krotov.optimize.html#krotov.optimize.optimize_pulses
-
-See `Using Krotov with QuTiP <https://qucontrol.github.io/krotov/v1.2.1/08_qutip_usage.html#using-krotov-with-qutip>`_ and `Examples <https://qucontrol.github.io/krotov/v1.2.1/09_examples.html>`_ for details.
+See :ref:`using-krotov-with-qutip` and :ref:`krotov-example-notebooks` for details.
.. _Jupyter notebook: https://jupyter.org