Skip to content

Commit

Permalink
Merge branch 'main' into quantum-time-evo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariusz Lasecki committed Dec 7, 2021
2 parents 5831cad + 2af1016 commit 405cdc4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion qiskit/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class BaseTestCase(testtools.TestCase):
assertRaises = unittest.TestCase.assertRaises
assertEqual = unittest.TestCase.assertEqual


else:

class BaseTestCase(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ipywidgets>=7.3.0
jupyter
matplotlib>=3.3
pillow>=4.2.1
black==21.4b2
black[jupyter]==21.12b0
pydot
astroid==2.5.6
pylint==2.8.3
Expand Down
8 changes: 5 additions & 3 deletions test/ipynb/mpl_tester.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"metadata": {},
"outputs": [],
"source": [
"#Testing Circuits\n",
"import warnings; warnings.simplefilter('ignore')\n",
"# Testing Circuits\n",
"import warnings\n",
"\n",
"warnings.simplefilter(\"ignore\")\n",
"%run \"mpl/circuit/test_circuit_matplotlib_drawer.py\""
]
},
Expand All @@ -19,7 +21,7 @@
"metadata": {},
"outputs": [],
"source": [
"#Testing Graphs\n",
"# Testing Graphs\n",
"%run \"mpl/graph/test_graph_matplotlib_drawer.py\""
]
},
Expand Down
1 change: 1 addition & 0 deletions test/python/notebooks/test_backend_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"source": [
"import os\n",
"import sys\n",
"\n",
"cwd = os.getcwd()\n",
"qiskit_dir = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(cwd))))\n",
"sys.path.append(qiskit_dir)"
Expand Down
9 changes: 6 additions & 3 deletions test/python/notebooks/test_pbar_status.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"source": [
"import os\n",
"import sys\n",
"\n",
"cwd = os.getcwd()\n",
"qiskit_dir = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(cwd))))\n",
"sys.path.append(qiskit_dir)"
Expand Down Expand Up @@ -49,7 +50,7 @@
},
"outputs": [],
"source": [
"sim_backend = BasicAer.get_backend('qasm_simulator')"
"sim_backend = BasicAer.get_backend(\"qasm_simulator\")"
]
},
{
Expand All @@ -64,6 +65,8 @@
"outputs": [],
"source": [
"import time\n",
"\n",
"\n",
"def func(_):\n",
" time.sleep(0.1)\n",
" return 0"
Expand Down Expand Up @@ -184,7 +187,7 @@
"qc.measure(q, c)\n",
"\n",
"HTMLProgressBar()\n",
"qobj = transpile([qc]*20, backend=sim_backend)"
"qobj = transpile([qc] * 20, backend=sim_backend)"
]
},
{
Expand All @@ -205,7 +208,7 @@
},
"outputs": [],
"source": [
"job_sim2 = execute([qc]*10, backend=sim_backend)\n",
"job_sim2 = execute([qc] * 10, backend=sim_backend)\n",
"job_monitor(job_sim2)"
]
}
Expand Down

0 comments on commit 405cdc4

Please sign in to comment.