Book Image

Quantum Computing in Practice with Qiskit® and IBM Quantum Experience®

By : Hassi Norlen
5 (1)
Book Image

Quantum Computing in Practice with Qiskit® and IBM Quantum Experience®

5 (1)
By: Hassi Norlen

Overview of this book

IBM Quantum Experience® is a leading platform for programming quantum computers and implementing quantum solutions directly on the cloud. This book will help you get up to speed with programming quantum computers and provide solutions to the most common problems and challenges. You’ll start with a high-level overview of IBM Quantum Experience® and Qiskit®, where you will perform the installation while writing some basic quantum programs. This introduction puts less emphasis on the theoretical framework and more emphasis on recent developments such as Shor’s algorithm and Grover’s algorithm. Next, you’ll delve into Qiskit®, a quantum information science toolkit, and its constituent packages such as Terra, Aer, Ignis, and Aqua. You’ll cover these packages in detail, exploring their benefits and use cases. Later, you’ll discover various quantum gates that Qiskit® offers and even deconstruct a quantum program with their help, before going on to compare Noisy Intermediate-Scale Quantum (NISQ) and Universal Fault-Tolerant quantum computing using simulators and actual hardware. Finally, you’ll explore quantum algorithms and understand how they differ from classical algorithms, along with learning how to use pre-packaged algorithms in Qiskit® Aqua. By the end of this quantum computing book, you’ll be able to build and execute your own quantum programs using IBM Quantum Experience® and Qiskit® with Python.
Table of Contents (12 chapters)

Creating your IBM Quantum Experience® account

Your key to exploring quantum computer programming with IBM is your IBM Quantum Experience® account. This free account gives you access to the online IBM Quantum Experience® interface, and the programming tools that are available there. An IBM Quantum Experience® account is not technically required to test out IBM Quantum Experience® or to install Qiskit® but is required to run your programs on the freely available IBM quantum computers, which are, after all, probably why you are reading this book in the first place.

Getting ready

To set up your IBM Quantum Experience® account, you can log in with an IBMid, or with one of the following:

  • A Google account
  • A GitHub account
  • A LinkedIn account
  • A Twitter account
  • An email address

How to do it...

  1. In your browser (Google Chrome seems to work best), go to this link:
  2. Enter your IBMid credentials or select another login method.

    You can also skip the sign-in, which will give you access to IBM Quantum Experience® but with a limit of 3 qubits for your quantum circuits, and with simulator backends only.

  3. Once you have logged in, you now have an activated IBM Quantum Experience® account, and will find yourself at the main dashboard:
    Figure 1.1 – The IBM Quantum Experience® home page

    Figure 1.1 – The IBM Quantum Experience® home page

  4. From here, you have a couple of paths:

    Go to a composer to start building your quantum programs in a graphical user interface. Click the Circuit composer left-menu icon () and then go to Chapter 3, IBM Quantum Experience® – Quantum Drag and Drop.

    If you want to start writing your quantum programs in Python without first installing a local Qiskit® instance, you can go to the Qiskit® notebooks to start working on your quantum programs in a Jupyter Notebook Python environment. Click on the Quantum Lab left-menu icon (A picture containing drawing

Description automatically generated), click New Notebook, and then go to Chapter 4, Starting at the Ground Level with Terra.

    If you want to continue down the Qiskit® path for which this book was written, you can now log out of IBM Quantum Experience®, and continue with installing Qiskit® on your local machine.

See also

  • IBM Quantum Experience is quantum on the cloud:
  • Quantum computing: It's time to build a quantum community: