From 3780f217029fe8983cf0bfb07c69f45dbf30c3c2 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:18:17 -0400 Subject: [PATCH 1/2] Rename tutorial notebooks to be unique --- tutorials/README.md | 2 +- .../{notebook.ipynb => build-repitition-codes.ipynb} | 0 .../chsh-inequality/{notebook.ipynb => chsh-inequality.ipynb} | 0 .../explore-composer/{notebook.ipynb => explore-composer.ipynb} | 0 tutorials/grovers-algorithm/{notebook.ipynb => grovers.ipynb} | 0 .../{notebook.ipynb => qaoa.ipynb} | 0 .../{notebook.ipynb => repeat-until-success.ipynb} | 0 .../{notebook.ipynb => submitting-transpiled-circuits.ipynb} | 0 .../{notebook.ipynb => vqe.ipynb} | 0 9 files changed, 1 insertion(+), 1 deletion(-) rename tutorials/build-repitition-codes/{notebook.ipynb => build-repitition-codes.ipynb} (100%) rename tutorials/chsh-inequality/{notebook.ipynb => chsh-inequality.ipynb} (100%) rename tutorials/explore-composer/{notebook.ipynb => explore-composer.ipynb} (100%) rename tutorials/grovers-algorithm/{notebook.ipynb => grovers.ipynb} (100%) rename tutorials/quantum-approximate-optimization-algorithm/{notebook.ipynb => qaoa.ipynb} (100%) rename tutorials/repeat-until-success/{notebook.ipynb => repeat-until-success.ipynb} (100%) rename tutorials/submitting-transpiled-circuits/{notebook.ipynb => submitting-transpiled-circuits.ipynb} (100%) rename tutorials/variational-quantum-eigensolver/{notebook.ipynb => vqe.ipynb} (100%) diff --git a/tutorials/README.md b/tutorials/README.md index bb3359db73a..450b5088365 100644 --- a/tutorials/README.md +++ b/tutorials/README.md @@ -36,7 +36,7 @@ there. Make sure to update the title in the notebook too. ## Adding new tutorials Each tutorial has its own folder in `tutorials/`. Within that folder is the content notebook -(named `notebook.ipynb`) and an optional `images` folder. +(ending in `.ipynb`) and an optional `images` folder. To add a new tutorial to the learning platform, go to https://learning-api.quantum.ibm.com/admin/ and choose "Create item" (the blue diff --git a/tutorials/build-repitition-codes/notebook.ipynb b/tutorials/build-repitition-codes/build-repitition-codes.ipynb similarity index 100% rename from tutorials/build-repitition-codes/notebook.ipynb rename to tutorials/build-repitition-codes/build-repitition-codes.ipynb diff --git a/tutorials/chsh-inequality/notebook.ipynb b/tutorials/chsh-inequality/chsh-inequality.ipynb similarity index 100% rename from tutorials/chsh-inequality/notebook.ipynb rename to tutorials/chsh-inequality/chsh-inequality.ipynb diff --git a/tutorials/explore-composer/notebook.ipynb b/tutorials/explore-composer/explore-composer.ipynb similarity index 100% rename from tutorials/explore-composer/notebook.ipynb rename to tutorials/explore-composer/explore-composer.ipynb diff --git a/tutorials/grovers-algorithm/notebook.ipynb b/tutorials/grovers-algorithm/grovers.ipynb similarity index 100% rename from tutorials/grovers-algorithm/notebook.ipynb rename to tutorials/grovers-algorithm/grovers.ipynb diff --git a/tutorials/quantum-approximate-optimization-algorithm/notebook.ipynb b/tutorials/quantum-approximate-optimization-algorithm/qaoa.ipynb similarity index 100% rename from tutorials/quantum-approximate-optimization-algorithm/notebook.ipynb rename to tutorials/quantum-approximate-optimization-algorithm/qaoa.ipynb diff --git a/tutorials/repeat-until-success/notebook.ipynb b/tutorials/repeat-until-success/repeat-until-success.ipynb similarity index 100% rename from tutorials/repeat-until-success/notebook.ipynb rename to tutorials/repeat-until-success/repeat-until-success.ipynb diff --git a/tutorials/submitting-transpiled-circuits/notebook.ipynb b/tutorials/submitting-transpiled-circuits/submitting-transpiled-circuits.ipynb similarity index 100% rename from tutorials/submitting-transpiled-circuits/notebook.ipynb rename to tutorials/submitting-transpiled-circuits/submitting-transpiled-circuits.ipynb diff --git a/tutorials/variational-quantum-eigensolver/notebook.ipynb b/tutorials/variational-quantum-eigensolver/vqe.ipynb similarity index 100% rename from tutorials/variational-quantum-eigensolver/notebook.ipynb rename to tutorials/variational-quantum-eigensolver/vqe.ipynb From 4296b4cd97f8c4c7788ddc9e8c46214ed94811ae Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:44:34 -0400 Subject: [PATCH 2/2] Fix notebook ignores --- scripts/nb-tester/test-notebook.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/nb-tester/test-notebook.py b/scripts/nb-tester/test-notebook.py index 3d2f1de5448..21dfa975024 100644 --- a/scripts/nb-tester/test-notebook.py +++ b/scripts/nb-tester/test-notebook.py @@ -32,13 +32,13 @@ ] NOTEBOOKS_THAT_SUBMIT_JOBS = [ "docs/start/hello-world.ipynb", - "tutorials/build-repitition-codes/notebook.ipynb", - "tutorials/chsh-inequality/notebook.ipynb", - "tutorials/grovers-algorithm/notebook.ipynb", - "tutorials/quantum-approximate-optimization-algorithm/notebook.ipynb", - "tutorials/repeat-until-success/notebook.ipynb", - "tutorials/submitting-transpiled-circuits/notebook.ipynb", - "tutorials/variational-quantum-eigensolver/notebook.ipynb", + "tutorials/build-repitition-codes/build-repitition-codes.ipynb", + "tutorials/chsh-inequality/chsh-inequality.ipynb", + "tutorials/grovers-algorithm/grovers.ipynb", + "tutorials/quantum-approximate-optimization-algorithm/qaoa.ipynb", + "tutorials/repeat-until-success/repeat-until-success.ipynb", + "tutorials/submitting-transpiled-circuits/submitting-transpiled-circuits.ipynb", + "tutorials/variational-quantum-eigensolver/vqe.ipynb", ]