Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit da31541

Browse files
committed
Move job assets into separate folder
1 parent 61b4b10 commit da31541

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

notebooks/hd_tomography.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36913,9 +36913,8 @@
3691336913
"outputs": [],
3691436914
"source": [
3691536915
"def run_on_backend(backend, circuit, shots: int, maps=None, use_cached=True) -> qiskit.result.Result:\n",
36916-
" assets_path = Path.cwd().parent / \"assets\"\n",
36917-
" if not assets_path.exists():\n",
36918-
" assets_path.mkdir()\n",
36916+
" assets_path = Path.cwd().parent / \"assets\" / \"jobs\"\n",
36917+
" assets_path.mkdir(parents=True, exist_ok=True)\n",
3691936918
" if not assets_path.is_dir():\n",
3692036919
" raise TypeError(f\"is not a directory: {assets_path}\")\n",
3692136920
"\n",
@@ -39590,7 +39589,7 @@
3959039589
"ibm_shots_arr = sorted(\n",
3959139590
" {\n",
3959239591
" int(m.group(1))\n",
39593-
" for item in (Path.cwd().parent / \"assets\").iterdir()\n",
39592+
" for item in (Path.cwd().parent / \"assets\" / \"jobs\").iterdir()\n",
3959439593
" if (m := re.match(pattern, str(item.name)))\n",
3959539594
" }\n",
3959639595
") # ibm_shots_arr = np.linspace(2e3, 1.7e4, 16).astype(int)\n",
@@ -42251,7 +42250,7 @@
4225142250
"ibm_shots_arr = sorted(\n",
4225242251
" {\n",
4225342252
" int(m.group(1))\n",
42254-
" for item in (Path.cwd().parent / \"assets\").iterdir()\n",
42253+
" for item in (Path.cwd().parent / \"assets\" / \"jobs\").iterdir()\n",
4225542254
" if (m := re.match(pattern, str(item.name)))\n",
4225642255
" }\n",
4225742256
")\n",

0 commit comments

Comments
 (0)