Quantum Computing in Practice with Qiskit and IBM Quantum Experience: Practical recipes for quantum computer coding at the gate and algorithm level with Python

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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.

Author(s): Hassi Norlen
Edition: 1
Publisher: Packt
Year: 2020

Language: English
Tags: Qantum computing; IBM quantum experience; Qiskit; Python

Cover
Title page
Copyright and Credits
Dedication
About Packt
Contributors
Table of Contents
Preface
Chapter 1: Preparing Your Environment
Technical requirements
Creating your IBM Quantum Experience® account
Getting ready
How to do it...
See also
Installing Qiskit®
Getting ready
How to do it...
There's more…
See also
Downloading the code samples
Getting ready
How to do it...
How it works...
Installing your API key and accessing your provider
Getting ready
How to do it...
How it works...
There's more…
Keeping your Qiskit® environment up to date
Getting ready
How to do it...
How it works...
Chapter 2: Quantum Computing and Qubits with Python
Technical requirements
Comparing a bit and a qubit
Getting ready
How to do it...
How it works...
See also
Visualizing a qubit in Python
Getting ready
How to do it...
There's more…
See also
A quick introduction to quantum gates
Getting ready
How to do it...
How it is works…
There's more…
See also
Chapter 3: IBM Quantum Experience® – Quantum Drag and Drop
Technical requirements
Introducing IBM Quantum Experience®
Results
Circuit Composer
Quantum Lab
Building quantum scores with Circuit Composer
How to do it...
There's more
Tossing a quantum coin
How to do it...
There's more
Moving between worlds
Getting ready
How to do it...
How it works...
There's more
See also
Chapter 4: Starting at the Ground Level with Terra
Technical requirements
Listing the required classes, modules, and functions
Working with quantum registers and classical registers
Understanding your quantum circuit
Selecting a backend to run on
Running your circuit as a job
Receiving the results of your job
Quantum coin toss revisited
Getting ready
How to do it...
How it works...
Getting some statistics – tossing many coins in a row
Getting ready
How to do it...
How it works...
There's more...
Implementing an upside-down coin toss
Getting ready
How to do it...
How it works...
There's more...
Tossing two coins simultaneously
Getting ready
How to do it...
How it works...
There's more...
Quantum-cheating in a coin toss? Introducing the Bell state
Getting ready
How to do it...
How it works...
There's more...
See also
More ways to quantum-cheat – tweaking the odds
Getting ready
How to do it...
There's more...
Adding more coins – straight and cheating
Getting ready
How to do it...
How it works...
There's more...
Tossing some real coins
Getting ready
How to do it
How it works...
There's more...
Chapter 5: Touring the IBM Quantum® Hardware with Qiskit®
Technical requirements
What are the IBM Quantum® machines?
Getting ready
How to do it...
How it works...
See also
Locating the available backends
Getting ready
How to do it...
There's more…
See also
Comparing backends
Getting ready
How to do it…
There's more
Finding the least busy backend
Getting ready
How to do it...
Visualizing the backends
Getting ready
How to do it...
There's more...
See also
Exploring a selected backend using Qiskit®
Getting ready
How to do it...
There's more...
Chapter 6: Understanding the Qiskit® Gate Library
Technical requirements
Visualizing quantum gates
Getting ready
How to do it...
How it works...
See also
Flipping with the Pauli X, Y, and Z gates
How to do it...
There's more...
Creating superpositions with the H gate
How to do it...
There's more...
See also
Fixed z rotations with phase shift gates S, , T, and 
How to do it...
There's more...
Free rotation around the axes with Rx, Ry, and Rz
How to do it...
There's more...
Building our circuits with the basis gates – U1, U2, U3, and ID
The U3 gate
The U2 gate
The U1 gate
Getting ready
How to do it...
There's more...
Using gates on 2 qubits
Getting ready
How to do it...
How it works...
There's more...
See also
Using gates on more than 2 qubits
How to do it...
There's more...
What your quantum circuit really looks like
Getting ready
How to do it…
There's more...
Chapter 7: Simulating Quantum Computers with Aer
Technical requirements
Understanding the usage of quantum simulators
Getting ready
How to do it...
There's more...
See also
Comparing the Qiskit Aer simulator with an IBM quantum computer
Getting ready
How to do it...
How it works...
There's more...
See also
Adding noise profiles of IBM Quantum® backends to local simulators
Getting ready
How to do it...
See also
Understanding your circuits by using the unitary simulator
Getting ready
How to do it…
Running diagnostics with the state vector simulator
How to do it...
There's more...
Chapter 8: Cleaning Up Your Quantum Act with Ignis
Technical requirements
Exploring your qubits to understand T1, T2, errors, and gates
Getting ready
How to do it...
How it works...
There's more
Comparing the qubits on a chip
Getting ready
How to do it...
There's more...
See also
Estimating the number of gates you have time for
Getting ready
How to do it...
There's more
See also
Correcting for the expected with readout correction
Getting ready
How to do it…
Mitigating the unexpected with quantum error correction
Getting ready
How to do it…
How it works…
There's more
See also
Chapter 9: Grover's Search Algorithm
Technical requirements
Exploring quantum phase kickback
Getting ready
How to do it...
A quick interlude on classical search
Getting ready
How to do it…
Building Grover's search algorithm
Getting ready
How to do it...
There's more…
See also
Searching with a three qubit Grover
How to do it...
Adding more qubits to the Grover search
Getting ready
How to do it...
There's more…
Using the Grover circuit in your own code
Getting ready
How to do it…
There's more…
Chapter 10: Getting to Know Algorithms with Aqua
Technical requirements
Running Grover's algorithm as an Aqua function
Getting ready
How to do it...
How it works...
There's more…
Running Shor's algorithm as an Aqua function
Getting ready
How to do it…
There's more…
See also
Exploring more Aqua algorithms
Getting ready
How to do it…
There's more
See also
Thank you!
Other Books You May Enjoy
Index