/myqlm-tuto

myQLM tutorial

Primary LanguageJupyter NotebookCreative Commons Zero v1.0 UniversalCC0-1.0

Introduction to Quantum Computing - Getting Start

Binder

Before starting: know your environment

If you are running this tutorial in mybinder.org, be aware that they have a small tolerance for idle machines. As a consequence, a session that is considered "idle" for more than 10 minutes is shutdown and you have to relaunch it again.

To avoid such problems, please try the following:

  • keep the tutorial pages always in the foreground
  • from the "main" page (click on the logo at the top-left), open a terminal (on the right, look for "New" button and choose "New->Terminal"

With these two hints you shall not have many problems. If your session is deleted, just recreate it again (exercices are made to be sufficiently short).

Also, if your Python kernel fails (sometimes it happens), just try to relaunch it, no worries.

Now, have a nice tutorial sections, that starts with a bit of lecture.

Alternative environments

Besides mybinder.org, you can run this tutorial in your own computer. This can be done by:

  • installing myQLM -> follow the instructions on myQLM website
  • run a docker container --> docker run -p 8080:8080 lsteffenel/myqlm-tuto

Tutorial Program

  1. Introduction to Quantum Computing - before start coding, this section gives you more elements to understand what is quantum computing from the viewpoint of a software developer.
  2. Writing a Quantum Program - in this section, you will be presented with the basic program structure using Python and myQLM libraries.
  3. Example EPR Pair - this section presents a complete (but simple) example.
  4. Advanced elements - a few more details on advanced programming elements: gates, control, measurement, circuit export.
  5. Simulation - once you have a program, it's time to simulate the quantum circuit.
  6. Run analysis - a rapid overview on how to analyse the results from your simulation.
  7. Exercices - Hands-on exercices to start developing your own programs

In addition, you can check our Cheat Sheet and also the list of available gates.

Credits:

These documents were developed for the tutorial session on quantum computing introduction at the 4th HPC Summer School 2021. The material will remain available at github.

Part of the material is based on myQLM tutorial and the excellent article from Michel Vanhoutte.

Authors

  • Jean-François Couturier (Université de Reims Champagne Ardenne)
  • Luiz Angelo Steffenel (Université de Reims Champagne Ardenne)
  • Carlos Jaime Barrios Hernandez (Universidad Industrial de Santander)
  • Gilberto Javier Diaz Toro (Universidad Industrial de Santander/Université de Reims Champagne Ardenne)