Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

A collection of Jupyter notebooks showing how to use the Qiskit SDK

License

NotificationsYou must be signed in to change notification settings

Qiskit/qiskit-tutorials

Repository files navigation

License

⚠️This repository is archived: The content in this repositorywas moved to other locations. If you have issues or PR, please submit them to their new location.

Contents

Welcome to theQiskit Tutorials!

In this repository, we've put together a collection of Jupyter notebooks aimed at teaching people who want to use Qiskit for writing quantum computing programs, and executing them on one of several backends (online quantum processors, online simulators, and local simulators). The online quantum processors are theIBM Quantum systems.

For our community-contributed tutorials, please check out theqiskit-community-tutorials repository.

Contribution Guidelines

If you'd like to contribute to Qiskit Tutorials, please take a look at ourcontribution guidelines. This project adheres to Qiskit'scode of conduct. By participating you are expected to uphold this code.

Tutorial limitations

Because the tutorials are executed as part of the build process, and eventually turned into RST documentation, there are several limitations to be aware of:

  1. There is currently a three minute per cell execution time limit. Cells that go over this limit will raise an exception.

  2. Tutorials cannot make calls to the IBM Quantum Experience, e.g. noIBMQ.load_account().

  3. It is important to maintain strict header compliance. All notebooks should start with, and contain only one, top level (h1) header:

    # I am a top level header

    Additionally, the nesting of headers should make sense:

    # I am a top level header## I am a secondary header### I am a tertiary header## I am another secondary header## I am another secondary header
  4. All math equations expressed using$$ ... $$ need to be surrounded on top and bottom by white space.

  5. In order for a tutorial to show up in the Qiskit documentation, after successful merging, an additional PR needs to be made in theQiskit meta-repo to trigger the rebuilding of the documentation.

Adding a gallery image

To add a gallery image to a notebook, select a cell with an output image and addnbsphinx-thumbnail as a cell tag. To see the cell tags go to:View -> Cell Toolbar -> Tags in the notebook menu. Adding gallery images from images not generated inside of the notebooks themselves should be avoided if possible as this gets messy in the present build system.

Building documentation

In addition to serving up standalone notebooks, this repository also includes the infrastructure needed to build the tutorials into HTML documentation usingSphinx.

We useTox, which you will need to install globally (e.g. usingpipx).

  1. Fork and clone the forked repository.
  2. tox -e docs

Sometimes Sphinx's caching can get in a bad state. First, try runningtox -e docs-clean, which will remove Sphinx's cache. If you are still having issues, try runningtox -e docs -r.-r tells Tox to reinstall the dependencies.

Authors and Citation

Qiskit Tutorials is the work ofmany people who contribute to the project at different levels. If you use Qiskit, please cite as per the includedBibTeXfile.

License

Apache License 2.0


[8]ページ先頭

©2009-2025 Movatter.jp