qiskit-documentation/tutorials
Frank Harkins 91500802ea Update code for runtime 0.24.1 (#1580)
This PR bumps the `qiskit_ibm_runtime` version to the most recent, and
updates our code examples to work with that version.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-06-20 16:46:06 +00:00
..
build-repetition-codes Tutorial housekeeping: Grovers (#1531) 2024-06-12 19:20:56 +00:00
chsh-inequality Update code for runtime 0.24.1 (#1580) 2024-06-20 16:46:06 +00:00
combine-error-mitigation-options-with-the-estimator-primitive Update code for runtime 0.24.1 (#1580) 2024-06-20 16:46:06 +00:00
explore-composer Remove invalid link (#1445) (#1452) 2024-05-29 12:41:57 +00:00
grovers-algorithm Update code for runtime 0.24.1 (#1580) 2024-06-20 16:46:06 +00:00
quantum-approximate-optimization-algorithm Update code for runtime 0.24.1 (#1580) 2024-06-20 16:46:06 +00:00
repeat-until-success Tutorial housekeeping: Grovers (#1531) 2024-06-12 19:20:56 +00:00
submitting-transpiled-circuits Remove "warning suppression" code (#1307) 2024-05-10 18:52:25 +00:00
variational-quantum-eigensolver Update code for runtime 0.24.1 (#1580) 2024-06-20 16:46:06 +00:00
README.md add information about changing tutorial title (#1544) 2024-06-13 16:39:47 +00:00
learning-api.conf.yaml Update URL (#1377) 2024-05-14 18:10:52 +00:00

README.md

Tutorials content

This folder contains the content for our tutorials, which appear on IBM Quantum Learning.

Edit existing tutorials and deploy

To deploy changes to tutorials, run the Deploy tutorials workflow. This will push the notebooks on the main branch to the environment you select.

You should always start with deploying to "Learning platform (staging)". This will deploy to https://learning.www-dev.quantum.ibm.com/catalog/tutorials. Check that your tutorial renders properly.

Once you are happy with staging, rerun the Deploy tutorials workflow, but this time choose "Learning platform (production)". Warning: this will update every non-network tutorial to use the version from the main branch. That means that if another author had a tutorial that was merged to main but not yet ready to go live to production, you might accidentally deploy their tutorial. So, before deploying to production, check with the team that it is okay to deploy.

After deploying to production, check https://learning.quantum.ibm.com/catalog/tutorials to ensure your tutorial is working correctly.

Gotcha: tutorial headings ignored

One potential gotcha is that the learning platform ignores the top-level heading of the notebook. These headings are only included in the notebook for writers' convenience. If you want to change the title of a notebook, find the page on https://learning-api.quantum.ibm.com/admin and change its title there. Make sure to update the title in the notebook too. Because the title determines the URL, inform someone on the infrastructure team well in advance so they can create a redirect.

Add new tutorials and deploy

Each tutorial has its own folder in tutorials/. Within that folder is the content notebook (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 + in the top-right corner). Enter all the information, but leave the content field blank. This will create the tutorial in "draft" mode.

Once you've added the tutorial, copy the tutorial's URL relative to content (that is, the URL after https://learning-api.quantum.ibm.com/admin/content/). The copied URL should be of the form tutorials/<UUID>. Next, make a new entry in the learning-api.conf.yaml file in this folder. Set the path attribute to the name of the tutorial folder in this repo, and urlProduction to the tutorial ID you copied earlier. Repeat the same process for the staging environment (https://learning-api-dev.quantum.ibm.com/admin/).

Next, you will need to add the tutorial to our API token permissions. To do that, contact Abdón Rodríguez and ask to add the tutorial IDs to the Qiskit/documentation API keys.

To push content from this repo to the learning platform, run the Deploy tutorials workflow. This will push the content of all tutorials from the main branch. Once your content is uploaded, you can go back to the admin panel for that tutorial and publish the lesson to take it out of draft mode.