Skip to content

Commit 9095265

Browse files
authored
Improvement before publishing (#2)
* 👷 update pypi push action * 💡 adjusted capitalization of project description * 📦 adjusted packaging * 💡 docu
1 parent 214c326 commit 9095265

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ jobs:
6060
with:
6161
name: artifact
6262
path: dist
63-
- uses: pypa/gh-action-pypi-publish@master
63+
- uses: pypa/gh-action-pypi-publish@release/v1
6464
with:
65-
user: __token__
6665
password: ${{ secrets.pypi_password }}
6766
skip_existing: true
6867
verbose: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Here, the solution to a Travelling Salesman Problem with 4 cities can be solved
4343
<img src="img/tsp.png" height=200px>
4444
</p>
4545

46-
MQT ProblemSolver will return the shortest path visiting all cities.
46+
MQT ProblemSolver will return the shortest path visiting all cities as a list.
4747

4848
# Repository Structure
4949

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "mqt.problemsolver"
10-
description = "MQT ProblemSolver - A MQT tool for solving problems using quantum computing"
10+
description = "MQT ProblemSolver - A MQT tool for Solving Problems Using Quantum Computing"
1111
readme = "README.md"
1212
authors = [
1313
{ name = "Nils Quetschlich", email = "nils.quetschlich@tum.de" },
@@ -23,7 +23,7 @@ dependencies = [
2323
"numpy~=1.23.3",
2424
"matplotlib~=3.5.1",
2525
"mqt.ddsim~=1.11.0",
26-
"networkx~=2.8.7",
26+
"networkx~=2.8.6",
2727
"python_tsp~=0.3.1",
2828
]
2929

src/mqt/problemsolver/csp_example.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"source": [
32-
"from csp import CSP\n",
32+
"from mqt.problemsolver.csp import CSP\n",
3333
"csp = CSP()\n",
3434
"csp.print()"
3535
]
@@ -190,7 +190,7 @@
190190
},
191191
{
192192
"cell_type": "code",
193-
"execution_count": 7,
193+
"execution_count": 6,
194194
"id": "63237a51",
195195
"metadata": {},
196196
"outputs": [

src/mqt/problemsolver/tsp_example.ipynb

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": 1,
13+
"execution_count": 3,
1414
"id": "a7fa5203",
1515
"metadata": {},
1616
"outputs": [
@@ -26,7 +26,7 @@
2626
}
2727
],
2828
"source": [
29-
"from tsp import TSP\n",
29+
"from mqt.problemsolver.tsp import TSP\n",
3030
"tsp = TSP()\n",
3131
"tsp.print()"
3232
]
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 10,
44+
"execution_count": 4,
4545
"id": "ce590382",
4646
"metadata": {},
4747
"outputs": [],
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "code",
67-
"execution_count": 11,
67+
"execution_count": 5,
6868
"id": "1a518ef9",
6969
"metadata": {},
7070
"outputs": [
@@ -74,7 +74,7 @@
7474
"['QPE']"
7575
]
7676
},
77-
"execution_count": 11,
77+
"execution_count": 5,
7878
"metadata": {},
7979
"output_type": "execute_result"
8080
}
@@ -94,15 +94,31 @@
9494
},
9595
{
9696
"cell_type": "code",
97-
"execution_count": 12,
97+
"execution_count": 6,
9898
"id": "b6a691d6",
9999
"metadata": {},
100100
"outputs": [
101101
{
102102
"name": "stdout",
103103
"output_type": "stream",
104104
"text": [
105-
"Algorithm: QPE\n",
105+
"Algorithm: QPE\n"
106+
]
107+
},
108+
{
109+
"name": "stderr",
110+
"output_type": "stream",
111+
"text": [
112+
"/Users/nils/miniforge3/envs/MQTProblemSolver39/lib/python3.9/site-packages/numpy/linalg/linalg.py:2154: RuntimeWarning: divide by zero encountered in det\n",
113+
" r = _umath_linalg.det(a, signature=signature)\n",
114+
"/Users/nils/miniforge3/envs/MQTProblemSolver39/lib/python3.9/site-packages/numpy/linalg/linalg.py:2154: RuntimeWarning: invalid value encountered in det\n",
115+
" r = _umath_linalg.det(a, signature=signature)\n"
116+
]
117+
},
118+
{
119+
"name": "stdout",
120+
"output_type": "stream",
121+
"text": [
106122
"[3, 1, 2, 4]\n"
107123
]
108124
}
@@ -124,7 +140,7 @@
124140
},
125141
{
126142
"cell_type": "code",
127-
"execution_count": 13,
143+
"execution_count": 7,
128144
"id": "6a1de27d",
129145
"metadata": {},
130146
"outputs": [
@@ -153,7 +169,7 @@
153169
},
154170
{
155171
"cell_type": "code",
156-
"execution_count": 14,
172+
"execution_count": 8,
157173
"id": "3435d9bc",
158174
"metadata": {
159175
"pycharm": {

0 commit comments

Comments
 (0)