Skip to content

Commit d11841e

Browse files
authored
Merge branch 'main' into cga
2 parents 4dccfd5 + d5ff028 commit d11841e

17 files changed

+326
-197
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build a binary wheel and a source tarball
3434
run: python3 -m cibuildwheel --output-dir dist
3535
- name: Store the distribution packages
36-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3737
with:
3838
name: python-package-distributions
3939
path: dist/
@@ -52,7 +52,7 @@ jobs:
5252

5353
steps:
5454
- name: Download all the dists
55-
uses: actions/download-artifact@v3
55+
uses: actions/download-artifact@v4
5656
with:
5757
name: python-package-distributions
5858
path: dist/

.github/workflows/build_documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- uses: actions/setup-python@v4
1414
name: Install Python
@@ -42,7 +42,7 @@ jobs:
4242
# -T : display a full traceback if a Python exception occurs
4343
4444
- name: Upload built files
45-
uses: actions/upload-artifact@v3
45+
uses: actions/upload-artifact@v4
4646
with:
4747
name: qutip_qoc_html_docs
4848
path: doc/_build/html/*

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
python-version: "3.12"
4848

4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
- name: Set up Python
5252
uses: actions/setup-python@v4
5353
with:
@@ -92,7 +92,7 @@ jobs:
9292
runs-on: ubuntu-latest
9393

9494
steps:
95-
- uses: actions/checkout@v3
95+
- uses: actions/checkout@v4
9696
- name: Set up Python
9797
uses: actions/setup-python@v4
9898
with:

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ To install the package, use
2626
pip install qutip-qoc
2727
```
2828

29+
By default, the dependencies required for JOPT and for the RL (reinforcement learning) algorithm are omitted.
30+
They can be included by using the targets `qutip-qoc[jopt]` and `qutip-qoc[rl]`, respectively (or `qutip-qoc[full]` for all dependencies).
31+
2932
## Documentation and tutorials
3033

31-
The documentation of `qutip-qoc` updated to the latest development version is hosted at [qutip-qoc.readthedocs.io](https://qutip-qoc.readthedocs.io/en/latest/).
34+
The documentation of `qutip-qoc` updated to the latest development version is hosted at [qutip-qoc.readthedocs.io](https://qutip-qoc.readthedocs.io/latest/).
3235
Tutorials related to using quantum optimal control in `qutip-qoc` can be found [_here_](https://qutip.org/qutip-tutorials/#optimal-control).
3336

3437
## Installation from source
@@ -40,7 +43,7 @@ pip install --upgrade pip
4043
pip install -e .
4144
```
4245

43-
which makes sure that you are up to date with the latest `pip` version. Contribution guidelines are available [_here_](https://qutip-qoc.readthedocs.io/en/latest/contribution-code.html).
46+
which makes sure that you are up to date with the latest `pip` version. Contribution guidelines are available [_here_](https://qutip-qoc.readthedocs.io/latest/contribution/code.html).
4447

4548
To build and test the documentation, additional packages need to be installed:
4649

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def qutip_qoc_version():
6262

6363
html_theme = "sphinx_rtd_theme"
6464
html_static_path = []
65+
html_js_files = [
66+
'https://code.jquery.com/jquery-3.6.0.min.js',
67+
]
68+
6569

6670
# -- Options for numpydoc ---------------------------------------
6771

doc/contribution/code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Contributing to the source code
77
Build up an development environment
88
===================================
99

10-
Please follow the instruction on the `QuTiP contribution guide <https://qutip.org/docs/latest/development/contributing.html#building>`_ to
10+
Please follow the instruction on the `QuTiP contribution guide <https://qutip.readthedocs.io/en/latest/development/contributing.html>`_ to
1111
build a conda environment.
1212

1313
You don't need to build ``qutip`` in the editable mode unless you also want to contribute to `qutip`.

doc/installation.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,19 @@ In particular, the following packages are necessary for running ``qutip-qoc``:
2323

2424
.. code-block:: bash
2525
26-
numpy scipy jax jaxlib cython qutip qutip-jax qutip-qtrl
26+
numpy scipy cython qutip qutip-qtrl
27+
28+
The following packages are required for using the JOPT algorithm:
29+
30+
.. code-block:: bash
31+
32+
jax jaxlib qutip-jax
33+
34+
The following packages are required for the RL (reinforcement learning) algorithm:
35+
36+
.. code-block:: bash
37+
38+
gymnasium stable-baselines3
2739
2840
The following package is used for testing:
2941

doc/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ matplotlib>=3.6.1
99
docutils==0.18.1
1010
alabaster==0.7.12
1111
Babel==2.9.1
12-
certifi==2020.12.5
12+
certifi==2024.7.4
1313
chardet==4.0.0
1414
colorama==0.4.4
15-
idna==2.10
15+
idna==3.7
1616
imagesize==1.4.1
17-
Jinja2==3.0.1
17+
Jinja2==3.1.6
1818
MarkupSafe==2.0.1
1919
packaging==23.2
2020
Pygments==2.17.2
2121
pyparsing==2.4.7
2222
pytz==2021.1
23-
requests==2.25.1
23+
requests==2.32.2
2424
snowballstemmer==2.1.0
2525
Sphinx==6.1.3
2626
sphinx-gallery==0.12.2
@@ -32,4 +32,4 @@ sphinxcontrib-htmlhelp==2.0.1
3232
sphinxcontrib-jsmath==1.0.1
3333
sphinxcontrib-qthelp==1.0.3
3434
sphinxcontrib-serializinghtml==1.1.5
35-
urllib3==1.26.4
35+
urllib3==1.26.19

requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
cython>=1.0
22
numpy>=1.16.6,<2.0
33
scipy>=1.10.1
4-
jax==0.4.28
5-
jaxlib==0.4.28
64
qutip>=5.0.1
75
qutip-qtrl
8-
qutip-jax
96
pre-commit
10-
gymnasium>=0.29.1
11-
stable-baselines3>=2.3.2

setup.cfg

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@ package_dir=
2828
packages = find:
2929
include_package_data = True
3030
install_requires =
31-
jax
32-
jaxlib
3331
packaging
3432
qutip
3533
qutip-qtrl
36-
qutip-jax
3734
numpy>=1.16.6,<2.0
38-
gymnasium>=0.29.1
39-
stable-baselines3>=2.3.2
4035
setup_requires =
4136
cython>=1.0
4237
packaging
@@ -45,7 +40,16 @@ setup_requires =
4540
where = src
4641

4742
[options.extras_require]
43+
jopt =
44+
jax
45+
jaxlib
46+
qutip-jax
47+
rl =
48+
gymnasium>=0.29.1
49+
stable-baselines3>=2.3.2
4850
tests =
4951
pytest>=6.0
5052
full =
53+
%(jopt)s
54+
%(rl)s
5155
%(tests)s

0 commit comments

Comments
 (0)