rocheers / qiskit-textbook

A university quantum algorithms/computation course supplement based on Qiskit

Home Page:http://qiskit.org/textbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stable: Build Status master: Build Status

Qiskit Textbook Source Code

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.

Installing the qiskit_textbook Package

The Qiskit Textbook provides some tools and widgets specific to the Textbook. This is not part of Qiskit and is available through the qiskit_textbook package. The quickest way to install this with Pip and Git is through the command:

pip install git+https://github.com/qiskit-community/qiskit-textbook.git#subdirectory=qiskit-textbook-src

Alternatively, you can download the folder qiskit-textbook-src and run:

pip install ./qiskit-textbook-src

from the directory that contains this folder.

Contributors Guide

General Guidelines

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.

How to Edit the Textbook

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.

Tags in Qiskit Textbook Notebooks

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.

License

The materials and associated source code of this open-source textbook are licensed under Apache License 2.0.

Contact

For any issues, please contact Francis Harkins (francis.harkins@ibm.com) and Abraham Asfaw (abraham.asfaw@ibm.com).

About

A university quantum algorithms/computation course supplement based on Qiskit

http://qiskit.org/textbook

License:Apache License 2.0


Languages

Language:Jupyter Notebook 98.5%Language:CSS 0.7%Language:Python 0.3%Language:HTML 0.2%Language:JavaScript 0.1%Language:Ruby 0.1%Language:Shell 0.0%Language:Makefile 0.0%Language:TeX 0.0%