Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Colab and Binder badges to Supermarq notebooks #1040

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@
]
},
{
"cell_type": "markdown",
"id": "71b6a205",
"metadata": {},
"source": [
"You can run this notebook on our [JupyterHub](https://hub.super.tech/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FInfleqtion%2FSupermarQ&urlpath=tree%2FSupermarQ%2Fexamples%2FSupermarQ_HPCA_Tutorial.ipynb&branch=main) or [Binder](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FInfleqtion%252FSupermarQ%252Ftree%252Fmain%252Fexamples%26urlpath%3Dtree%252Fexamples%252FSupermarQ_HPCA_Tutorial.ipynb%26branch%3Dmain). The JupyterHub requires sign up while Binder does not."
]
},
"attachments": {},
"cell_type": "markdown",
"id": "approximate-aurora",
"metadata": {},
"source": [
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/HEAD?labpath=docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb)"
]
},
{
"cell_type": "markdown",
"id": "71b6a205",
"metadata": {},
"source": [
"You can run this notebook on [Colab](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb) or [Binder](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FInfleqtion%252FSupermarQ%252Ftree%252Fmain%252Fexamples%26urlpath%3Dtree%252Fexamples%252FSupermarQ_HPCA_Tutorial.ipynb%26branch%3Dmain). The Colab requires sign in while Binder does not."
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "71b6a205",
"id": "approximate-aurora",
"metadata": {},
"source": [
"You can run this notebook on our [JupyterHub](https://hub.super.tech/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FInfleqtion%2FSupermarQ&urlpath=tree%2FSupermarQ%2Fexamples%2FSupermarQ_HPCA_Tutorial.ipynb&branch=main) or [Binder](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FInfleqtion%252FSupermarQ%252Ftree%252Fmain%252Fexamples%26urlpath%3Dtree%252Fexamples%252FSupermarQ_HPCA_Tutorial.ipynb%26branch%3Dmain). The JupyterHub requires sign up while Binder does not."
]
},
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/HEAD?labpath=docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb)"
]
},
{
"cell_type": "markdown",
"id": "71b6a205",
"metadata": {},
"source": [
"You can run this notebook on [Colab](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/examples/Supermarq_HPCA_Tutorial_css.ipynb) or [Binder](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/main?urlpath=git-pull%3Frepo%3Dhttps%253A%252F%252Fgithub.com%252FInfleqtion%252FSupermarQ%252Ftree%252Fmain%252Fexamples%26urlpath%3Dtree%252Fexamples%252FSupermarQ_HPCA_Tutorial.ipynb%26branch%3Dmain). The Colab requires sign in while Binder does not."
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
24 changes: 24 additions & 0 deletions docs/source/apps/supermarq/qcvv/qcvv_css.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"# Quantum Characterisation, Verification and Validation"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "approximate-aurora",
"metadata": {},
"source": [
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/qcvv/qcvv_css.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/HEAD?labpath=docs/source/apps/supermarq/qcvv/qcvv_css.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -47,6 +56,21 @@
"from __future__ import annotations"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" import supermarq\n",
"except ImportError:\n",
" print(\"Installing supermarq...\")\n",
" %pip install --quiet supermarq\n",
" print(\"Installed supermarq.\")\n",
" print(\"You may need to restart the kernel to import newly installed packages.\")"
]
},
{
"cell_type": "code",
"execution_count": 5,
Expand Down
24 changes: 24 additions & 0 deletions docs/source/apps/supermarq/qcvv/qcvv_xeb_css.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"# Cross Entropy Benchmarking (XEB)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "approximate-aurora",
"metadata": {},
"source": [
"[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Infleqtion/client-superstaq/blob/main/docs/source/apps/supermarq/qcvv/qcvv_xeb_css.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Infleqtion/client-superstaq/HEAD?labpath=docs/source/apps/supermarq/qcvv/qcvv_xeb_css.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -16,6 +25,21 @@
"two qubit gates."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"try:\n",
" import supermarq\n",
"except ImportError:\n",
" print(\"Installing supermarq...\")\n",
" %pip install --quiet supermarq\n",
" print(\"Installed supermarq.\")\n",
" print(\"You may need to restart the kernel to import newly installed packages.\")"
]
},
{
"cell_type": "code",
"execution_count": 7,
Expand Down