Skip to content

Commit b516495

Browse files
authored
Merge pull request #55 from ChitambarLab/update-qnetvo-version
updating pennylane version
2 parents 435517b + 728572f commit b516495

18 files changed

Lines changed: 77 additions & 57 deletions

.github/workflows/build_documentation.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,23 @@ jobs:
77
docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
11-
- uses: ammaraskar/sphinx-action@master
10+
- name: Cancel Previous Runs
11+
uses: styfle/cancel-workflow-action@0.4.1
1212
with:
13-
docs-folder: "docs/"
13+
access_token: ${{ github.token }}
14+
- uses: actions/checkout@v2
15+
- name: Set up Python 3.11
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.11
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install .
23+
pip install -r docs/requirements.txt
24+
- name: Build Documentation
25+
run: |
26+
sphinx-build -b html docs/source/ docs/build/html
1427
- name: Commit documentation changes
1528
run: |
1629
git clone https://github.com/ChitambarLab/qNetVO.git --branch gh-pages --single-branch gh-pages

.github/workflows/check_documentation.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ jobs:
77
docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v1
11-
- uses: ammaraskar/sphinx-action@master
12-
with:
13-
docs-folder: "docs/"
10+
- uses: actions/checkout@v2
11+
- name: Set up Python 3.11
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.11
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install .
19+
pip install -r docs/requirements.txt
20+
- name: Build Documentation
21+
run: |
22+
sphinx-build -b html docs/source/ docs/build/html

.github/workflows/formatting_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: 3.11
2020

2121
- name: Install dependencies
2222
run: pip install black

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727

2828
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2929
- uses: actions/checkout@v2
30-
- name: Set up Python 3.8
30+
- name: Set up Python 3.11
3131
uses: actions/setup-python@v2
3232
with:
33-
python-version: 3.8
33+
python-version: 3.11
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# qNetVO: The Quantum Network Variational Optimizer
1+
# qNetVO: Quantum Network Variational Optimizer
22

33
*Simulate and optimize quantum communication networks using quantum computers.*
44

@@ -32,7 +32,7 @@ $ pip install qnetvo
3232
Install PennyLane:
3333

3434
```
35-
$ pip install pennylane==0.33
35+
$ pip install pennylane==0.37
3636
```
3737

3838
Import packages:
@@ -48,7 +48,7 @@ Note
4848
</p>
4949
<p>
5050
For optimal use, qNetVO should be used with PennyLane.
51-
QNetVO is currently compatible with PennyLane v0.33.
51+
QNetVO is currently compatible with PennyLane v0.37.
5252
</p>
5353
</div>
5454

docs/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.
2-
sphinx>=3.0
2+
sphinx
33
Pygments>=2.7.4
4-
m2r2==0.3.3
5-
sphinxcontrib-email==0.3.5
4+
sphinx-mdinclude>=0.6
5+
sphinxcontrib-email==0.3.6
66
furo
7-
pennylane==0.28
7+
pennylane==0.37

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"sphinx.ext.mathjax",
4040
"sphinx.ext.napoleon",
4141
"sphinx.ext.viewcode",
42-
"m2r2",
42+
"sphinx_mdinclude",
4343
"sphinxcontrib.email",
4444
]
4545
source_suffix = [".rst", ".md"]

environment.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ channels:
33
- defaults
44
dependencies:
55
- python=3.11
6-
- black
76
- sphinx
7+
- black
88
- pytest
99
- notebook
1010
- matplotlib
1111
- pip
1212
- pip:
1313
- -r requirements.txt
14-
- furo
15-
- m2r2==0.3
16-
- sphinxcontrib-email==0.3.5
14+
- -r docs/requirements.txt

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
pennylane~=0.33
2-
qiskit==0.34
3-
pennylane-qiskit==0.20
1+
pennylane==0.37
2+
qiskit>=1
3+
pennylane-qiskit==0.37
44
tensorflow>=2.0,<3.0
55
dask[delayed]==2022.5
66
tensornetwork>=0.3,<0.4
7-
flaky==3.7
7+
pytest-rerunfailures

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ classifiers =
1818
package_dir =
1919
= src
2020
packages = find:
21-
python_requires = >=3.8
21+
python_requires = >=3.9
2222
install_requires =
23-
pennylane~=0.33
23+
pennylane==0.37
2424

2525
[options.packages.find]
2626
where = src

0 commit comments

Comments
 (0)