1717 include :
1818 - qutip-version : ' 4'
1919 qutip-branch : ' qutip-4.7.X'
20+ qip-branch : ' qutip-qip-0.4.X'
2021 - qutip-version : ' 5'
2122 qutip-branch : ' master'
23+ qip-branch : ' master'
2224
2325 - name : Setup Conda
2426 uses : conda-incubator/setup-miniconda@v3
5456 pip install -r requirements.txt
5557 pip install .
5658 cd ..
57- python -m pip install git+https://github.com/qutip/qutip-qip
59+ python -m pip install git+https://github.com/qutip/qutip-qip@${{ matrix.qip-branch }}
5860 python -m pip install --no-deps git+https://github.com/qutip/qutip-jax
5961 python -m pip install --no-deps git+https://github.com/qutip/qutip-qoc
6062
8183 find . -name '*.md' -exec jupytext --to notebook {} +
8284 find . -name '*.md' -delete
8385
86+ - name : Remove cuQuantum notebook from tests
87+ # Without GPU, this notebook can't be ran.
88+ if : ${{ matrix.qutip-version == '5' }}
89+ run : rm notebooks/miscellaneous/cuQuantum_backend.ipynb
90+
8491 - name : Check PEP8 formatting
8592 run : |
8693 pip install nbqa flake8
@@ -93,6 +100,12 @@ jobs:
93100 find . -name '*.ipynb' -exec pytest --nbmake --overwrite --nbmake-timeout=900 {} +
94101 rm template.ipynb
95102
103+ - name : Copy cuQuantum notebook
104+ # Without GPU, this notebook can't be ran.
105+ # Copy the already executed notebook after the tests.
106+ if : ${{ matrix.qutip-version == '5' }}
107+ run : cp tutorials-v5/miscellaneous/cuQuantum_backend.ipynb notebooks/miscellaneous/
108+
96109 - name : Create Notebook Artifact
97110 uses : actions/upload-artifact@v4
98111 with :
0 commit comments