From 566f3973ad419514bbd3ce4ec4c6c8a4093da7aa Mon Sep 17 00:00:00 2001 From: thepineapplepirate <91963008+thepineapplepirate@users.noreply.github.com> Date: Wed, 4 Oct 2023 15:57:32 -0400 Subject: [PATCH 1/3] new interactive tool for Qiskit in Galaxy --- ...nteractivetool_qiskit_jupyter_notebook.xml | 313 ++++++++++++++++++ 1 file changed, 313 insertions(+) create mode 100644 tools/interactive/interactivetool_qiskit_jupyter_notebook.xml diff --git a/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml new file mode 100644 index 00000000000..99c1741aa9c --- /dev/null +++ b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml @@ -0,0 +1,313 @@ + + interactive tool + + thepineapplepirate/qiskit_galaxy:latest + + + + 8888 + ipython/lab + + + + $__history_id__ + $__galaxy_url__ + 8080 + $__galaxy_url__ + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + preferences -> manage information). Instructions for + specifying the quantum backend can be found at https://qiskit.org/ecosystem/ibm-runtime/how_to/backends.html. + + The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, + visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, + machine learning, and much more. + + Galaxy offers you the use of Jupyter Notebooks directly in Galaxy accessing and interacting with Galaxy datasets as you like. A very common use-case is to + do the heavy lifting and data reduction steps in Galaxy and the plotting and more `interactive` part on smaller datasets in Jupyter. + + You can start with a new Jupyter notebook from scratch or load an already existing one, e.g. from your colleague and execute it on your dataset. + You can specify any number of user-defined inputs using the repeat input, providing `name` value, selecting the type of input, and then providing values. + + You can make the Qiskit JupyTool reusable in a workflow, by allowing the user to specify input values for the defined input blocks. + Inputs can be accessed by `name` from the automatically provided `GALAXY_INPUTS` dictionary. + Outputs can be written automatically to the user's history by writing to the `outputs` directory for one individual file or to the `outputs/collection` directory for multiple files. + Using collection tools, you can parse out the individual elements from the collection, as needed. + + For backwards compatibility, you can import data into the notebook via a predefined `get()` function and write results back to Galaxy with a `put()` function. + + .. image:: https://upload.wikimedia.org/wikipedia/commons/5/51/Qiskit-Logo.svg + ]]> + From 46d53d14c80f457055d9eb984ddf36ce5f006e3f Mon Sep 17 00:00:00 2001 From: Raubenolt Date: Mon, 11 Dec 2023 20:47:25 -0500 Subject: [PATCH 2/3] made suggested changes --- tools/interactive/interactivetool_qiskit_jupyter_notebook.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml index 99c1741aa9c..7d423d84827 100644 --- a/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml +++ b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml @@ -1,7 +1,8 @@ interactive tool - thepineapplepirate/qiskit_galaxy:latest + thepineapplepirate/qiskit_galaxy:1.0.0 + ## files for this docker image can be found at https://github.com/thepineapplepirate/qiskit-jupyter-galaxy_docker.git ## From 48417b0409b8cb2176095f5d1ddae6e29d84fc3e Mon Sep 17 00:00:00 2001 From: thepineapplepirate <91963008+thepineapplepirate@users.noreply.github.com> Date: Tue, 12 Dec 2023 14:09:27 -0500 Subject: [PATCH 3/3] Update tools/interactive/interactivetool_qiskit_jupyter_notebook.xml Co-authored-by: Nicola Soranzo --- tools/interactive/interactivetool_qiskit_jupyter_notebook.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml index 7d423d84827..1b0ca237364 100644 --- a/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml +++ b/tools/interactive/interactivetool_qiskit_jupyter_notebook.xml @@ -2,7 +2,7 @@ interactive tool thepineapplepirate/qiskit_galaxy:1.0.0 - ## files for this docker image can be found at https://github.com/thepineapplepirate/qiskit-jupyter-galaxy_docker.git ## +