stable: | master: |
---|
This is the repository for the interactive open-source Learn Quantum Computation using Qiskit textbook. The textbook is intended for use as a university quantum algorithms course supplement as well as a guide for self-learners who are interested in learning quantum programming.
The Jupyter notebooks corresponding to each section of the textbook can be found in the content
folder. The code in these notebooks will constantly be updated to the latest version of Qiskit.
The notebooks are compiled into html and exported to the website.
We love contributions and need them to ensure the textbook is a high-quality resource. If you notice any mistakes and want to fix them, then feel free to go ahead and make a pull request. If you want to contribute original content, there are a few things you can do to make sure your efforts have the biggest impact:
- Please open an issue explaining your proposed additions. Here we can discuss where your contribution will fit in, as well as making sure it fits the style and format of the rest of the textbook.
- Create a pull request while your chapter is in progress, this way we can review it in the process of writing instead of asking for large changes after you have already written it.
- Try to follow the formatting and tone of the existing notebooks to ensure everything renders correctly and the textbook is coherent.
The textbook uses jupyter book to generate the site from jupyter notebooks. To edit the pages you will first need to install jupyter and Qiskit, you can use the links below to help you do this:
If you are unfamiliar with git, you can follow this guide to making contributions:
You will need to fork the textbook, make changes in your own branch, then submit a pull request which we will review before merging. You must use jupyter notebook to edit the pages. If you change any code, please re-run the notebook (you can do this using the โญ button at the top of the notebook editor) to update the cell outputs.
Important: The notebooks to edit are inside the content
folder.
After writing your chapter, you must add a few tags to your cells (You can see the tags using view > tags
).
- If you include the chapter's title in your notebook, move this to its own cell and add a
remove-cell
tag to avoid duplicate titles on the website. This is only for the title that will appear in the sidebar. - If you intentionally raise an exception in a cell, add a
raises-exception
tag to that code cell so our checking script knows this is intentional. - Any code cell that uses IBM hardware, or relies on the results from such a cell needs a
uses-hardware
tag to alert the user this cannot be run on the website through thebelab. - Finally, after adding these tags, go to
view > none
and save your notebook to stop the tags from showing automatically when a reader opens the notebook.
For a list of contributors, see the .bib file.
The materials and associated source code of this open-source textbook are licensed under Apache License 2.0.
For any issues, please contact Francis Harkins ([email protected]) and Abraham Asfaw ([email protected]).