Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn Quantum Computing with Python and IBM Quantum
Learn Quantum Computing with Python and IBM Quantum

Learn Quantum Computing with Python and IBM Quantum: Write your own practical quantum programs with Python , Second Edition

Arrow left icon
Profile Icon Robert Loredo
Arrow right icon
$31.99 $35.99
eBook Feb 2025 420 pages 2nd Edition
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Robert Loredo
Arrow right icon
$31.99 $35.99
eBook Feb 2025 420 pages 2nd Edition
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$31.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learn Quantum Computing with Python and IBM Quantum

Creating Quantum Circuits with IBM Quantum Composer

In this chapter, you will learn how to use the IBM Quantum Composer and what each of its component functions are with respect to creating and running experiments. The Composer will help you to visually create a quantum circuit via its built-in UI, which in turn will help you to visually conceptualize some of the basic principles of quantum mechanics used to optimize your experiments. You will also learn how to preview the results of each experiment and create your first quantum circuit.

The following topics will be covered in this chapter:

  • Getting started with the Quantum Composer
  • Creating a quantum circuit with the Quantum Composer

By the end of this chapter, you will know how to create a quantum circuit using the Composer, and create experiments that simulate classic gates and quantum gates. You will also have learned where to examine the various results of your experiments, such as state vectors and their probabilities. This will help you understand how some quantum gate operations affect each qubit.

Technical requirements

In this chapter, some basic knowledge of computing is assumed, such as understanding the basic gates of a classic computing system.

Here is the full source code used throughout the book: https://github.com/PacktPublishing/Learning-Quantum-Computing-with-Python-and-IBM-Quantum-Second-Edition

Getting started with the IBM Quantum Composer

In this section, we will review the IBM Quantum Composer (hereafter referred to as simply the Composer) layout so that you can understand its functionality and behavior when creating or editing quantum circuits. Here, you will also create a few circuits, leveraging the visualization features from the Composer to make it easy for you to understand how quantum circuits are created. So, let’s start at the beginning: by launching the Composer.

Launching the Composer

To create a quantum circuit, let’s first start by opening the Composer. To open the Composer view, click on the Composer button located at the top of the IBM Quantum Learning (https://learning.quantum.ibm.com) application as shown in the following screenshot:

Figure 2.1: Launch the Composer

Now that you have the Composer open, let’s take a tour of what each component of the Composer editor provides you with.

Familiarizing yourself with the Composer components

In this section, we will get familiar with each of the components that make up the Composer. These allow you to do things such as visually inspect the results of your experiments in a variety of ways. Visualizing the construction of the quantum circuit will help you conceptualize how each quantum gate affects a qubit.

Understanding the Composer

In this section, we will review the various functionalities available to ensure you have a good understanding of all the different features available to you.

In Figure 2.2, you can see the landing page of the Composer view:

A screenshot of a computer

Description automatically generated

Figure 2.2: The IBM Quantum Composer view

From the preceding screenshot, you can see the Composer view, containing three qubits (q[0], q[1], and q[2]). This might not look the same when you launch the Composer for the first time. If you would like to add or remove qubits, you can simply select a qubit, for example q[1], by clicking on it, and selecting the plus icon or the trash icon, which will appear over the specific qubit.

If any of the views are not visible, this just means they have not been enabled. You can enable them by selecting the View pull-down menu located across the top of the Composer, hovering over Panels, and selecting the views that are not visible: for example, the Statevector view.

To reproduce the views used throughout this chapter, simply add or remove the qubits until you only have three qubits left. You can add/remove by clicking on the qubit label. The default is three.

Now that you have your views set up, let’s continue to the Composer view itself. In the following screenshot, you can see a series of gates and operations:

Graphical user interface, application, Teams

Description automatically generated

Figure 2.3: Gates and operations

Each of the components shown has a specific function or operation that acts upon the qubit(s), which we will cover in detail in Chapter 6, Understanding Quantum Logic Gates.

As we can see in the following screenshot, we also have the circuit editor itself, which is the part of the Composer where we will create our quantum circuit by placing various gates and operations:

Application

Description automatically generated with low confidence

Figure 2.4: Circuit editor

As you can see from the preceding screenshot, the default circuit includes three qubits (though this might change over time) each of which is labeled with a q, and the index appended in order from left to right (in this case, q[2], q[1], and q[0]). This will be significant when we want to map the results from our quantum circuit. Each qubit is initialized to an initial state of 0 before running the experiment.

The last line is the classical bits, which are what we will map each qubit to so that when we complete running our quantum circuit, the results are then passed to the classical bits according to the mapping. By default, the mapping from qubit to bit is done based on the index of the qubit. For example, q0 measurement results will be mapped to c0 via the measurement operator, which we will see when we run our quantum circuit. You can add or remove classical bits in the same manner as qubits.

Next to the qubit you will see a line, which looks like a wire running out from each qubit, in the circuit editor:

Chart

Description automatically generated with low confidence

Figure 2.5: Qubits and circuit wires

These lines are where you will be creating a circuit by placing various gates, operations, and barriers on them. This circuit has three wires, each of which pertains to one of the three qubits on the quantum computer. The reason it is called a Composer is primarily that these lines look very similar to a music staff used by musicians to compose their music. In our case, the notes on the music staff are represented by the gates and operations used to ultimately create a quantum algorithm.

In the next section, we will review the various options you have available to customize the views of the Composer. This will allow you to ensure that you can only see what you want to see while creating your quantum circuit.

Customizing your views

Continuing with our Composer tour, at the top of the Composer view are the circuit menu options that allow you to save your circuit, clear the circuit, or share your quantum circuit:

Figure 2.6: The Composer menu options

First, we will cover how to save your circuit. To do this, simply click on the default text at the top left of the Composer where it currently reads Untitled circuit, and type in any title you wish. Ideally, select a name that is associated with the experiment. In this case, let’s call it MyFirstCircuit and save it by either hitting the Enter key or clicking the checkmark icon to the right of the title, as shown below:

A screenshot of a phone

Description automatically generated

Figure 2.7: Renaming the circuit

Across the top of the Composer, you will see a list of drop-down menu options. The menu items in the preceding screenshot have the following options:

  • File provides options to create and open circuits, as well as copy, export, share, or delete the current circuit.
  • Edit allows you to manage your circuit and clear gates and operators.
  • View enables the various view options, which we look at in the following sections.

Let’s now look at each of the various views in the following sections.

The Graphical Editor view

The Graphical Editor view contains a few components used to create quantum circuits:

Graphical user interface, text, application, email

Description automatically generated

Figure 2.8: The Graphical Editor view options

The components include the following:

  • Circuit Composer: UI components used to create quantum circuits.
  • Operations: A list of available drag-and-drop gates and operators to generate a quantum circuit.
  • Options: The ability to set up the alignment and turn on the Inspect feature, which allows you to step through each gate and operation as you would to debug your code on an IDE or browser.
  • Disk: A disk that is located at the end of the circuit to serve as a visual representation of each qubit as you add gates and operations.

Now that we know where we can create a quantum circuit, let’s move on to displays, which provide various ways to visualize the results of our quantum circuit.

The Statevector view

The Statevector view allows you to preview the state vector results, which is to say the quantum state result of your quantum circuit. The state vector view presents the computational basis states of the quantum circuit in a few different ways. To simplify the view, I have removed all but one qubit so it is easier to read the values.

You can do the same if you wish, otherwise your x axis may have more than just the two states of 0 and 1, as shown in the following figures:

Chart

Description automatically generated

Figure 2.9: The Statevector view

First, we see the Amplitude bar graph, which represents the amplitude of the computational basis states. In this case, as mentioned earlier, for simplicity we have reduced the number of qubits to just one qubit, for which there are two computational basis states, 0 and 1. These are represented along the x axis. The value of the amplitude of each basis state is represented along the y axis. In this case, since we do not have any gates or operators on our circuit, the state vector representation is that of the initial (ground) state. The initial state indicates that all qubits are set to the 0 (zero) state, indicated by an amplitude value of 1.

At the bottom of the Statevector view we see the Output state representing the complex value of each computational basis state. In this case since we are in the initial state, we see the 0 state at 1 + 0j and the 1 state at 0 + 0j.

To the bottom left is the phase wheel. The phase wheel is a color visual representation of the phase for each basis state, which has a range between 0 and 2π. Since we have not applied any phase gates, we see the default phase of 0 represented by the color blue. As you apply phase shifts to each qubit, the color of the bar will update according to the color representation of the phase.

We will cover what phases are in more detail in later chapters, but for now just know where they are and how they are indicated, both by value in the state vector results and in the phase wheel by color.

The state vector information is just one of the visual representations of your quantum circuit. There are a couple of others we want to visit before moving on.

The Probabilities view

The next view is the Probabilities view. This view presents the expected probability result of the quantum circuit (with the addition of a single measurement operator to the qubit). As mentioned in the previous description, and illustrated in the following screenshot, since we do not have any operators on the circuit, the results shown are all in the initial state of 0:

Chart, bar chart

Description automatically generated

Figure 2.10: The Probabilities view

The probability view is a general representation of the results based on expected values, not the actual results you will get from a quantum system. This view currently represents what the Composer is calculating classically as we have not yet run this circuit on an actual quantum computer. The results you will see as we create this circuit are computed by the classical system and not by a quantum system. The results from a quantum system are received after we send the completed circuit to run.

The Q-sphere view

Finally, the last of the state visualizations we must review is the Q-sphere view. The Q-sphere looks similar to a Bloch sphere, which is used to represent the statevector of the current state of a qubit. However, the Bloch sphere does have some limitations, particularly that it can only represent the state of a single qubit. On the other hand, the Q-sphere can be used to visually represent the state information of a single qubit or multiple qubits at once in one sphere, including the phase information. The following screenshot shows a representation of a circuit with three qubits, all of which are in the initial state:

Diagram

Description automatically generated

Figure 2.11: The Q-sphere view

The Q-sphere view has two components; the first is the Q-sphere itself, which represents the state vector of the multi-qubit state, represented by a vector that originates at the center of the sphere. At the end of the vector is a smaller sphere, which represents the probability of the state by the radius of the top that lies on the surface of the Q-sphere. The states represented by these small spheres are visible when hovered over. The previous screenshot illustrates the three qubits in an initial state of , with a probability of 1, and a phase angle of 0.

Those fancy symbols around the numbers are referred to as Kets; we will learn about them later in this book. For now, just think of them as labels to differentiate between the number 0 and the quantum state |0⟩, for example.

The second component is located at the bottom left, which is the legend that describes the phase of the states. Since the small sphere represents the phase angle of 0, the color of the sphere is blue, which is the same as what the legend indicates for the phase of 0. If the state had a phase value of π, then the color of the sphere would be red.

There are various options here; on the top right you can see an ellipsis that you can select, providing various options to download visualizations in different image formats, and to move the view to the left or right. At the bottom right you can select whether to enable the state or phase angle information of the Q-sphere.

OK, we went through all of the various views and components that make up the Composer view, so now let’s go to the fun part and start creating our first quantum circuit!

Creating a quantum circuit with the Quantum Composer

Now that we know where everything is in the Composer, we will create our first quantum circuit. This will help you to get a better understanding of how all these components work together, and it will show you how these components provide insights such as the current state and its probabilistic estimation as you build your first quantum experiment.

Building a quantum circuit with classical bit behaviors

We are all familiar with some of the basic classic bit gates such as NOT, AND, OR, and XOR. The behavior that these classic gates perform on a bit can be reproduced on a quantum circuit using quantum gates. Our first experiment will cover these basic building blocks, which will help you to understand the correlation between quantum and classical algorithms.

Our first experiment will be to simulate a classical gate, specifically a NOT gate. The NOT gate is used to change the value of the qubit, in this case from the |0⟩ state to the |1⟩ state, and vice versa. We will cover details on how this gate operates on qubits in Chapter 6, Understanding Quantum Logic Gates.

To simulate a NOT gate on a quantum circuit, follow these steps:

  1. From the open Composer editor that you previously created and titled MyFirstCircuit, reduce the number of qubits and classical bits down to just one of each if you have not already. This will simplify the visualization of the results for us. You may have to reopen the other views such as qsphere. to get the updated changes.
  2. Next, click and drag the NOT gate, which is visually represented by the symbol, from the list of gates down onto the first qubit, as shown in the following screenshot:
Graphical user interface, application

Description automatically generated

Figure 2.12: Add an X (NOT) gate to the first qubit

  1. Next, click and drag the measurement operation onto the first qubit, q0, just after the NOT gate:
Graphical user interface, application, Word

Description automatically generated

Figure 2.13: Add a measurement operator to the first qubit

  1. By taking a measurement of the qubit and having its value sent out to the pertaining classic bit, we are essentially reading the state of the qubit. You can see this by the connecting arrow between the measurement operator and the classical bit. It also includes the index of the classical bit, the result of which the measurement operator will write out, which in this case is the bit in position 0.

Note that the result bits, similar to the qubits, will be ordered from left to right: c2c1c0, for example.

A measurement occurs when you want to observe the state of the qubit. What this means is that we will collapse the state of the qubit to either a 0 or a 1. In this example, it is straightforward that when we measure the qubit after the NOT gate, the reading will be 1. This is because since the initial state is set to 0, applying a NOT gate will flip it from 0 to 1.

Before we run this experiment, let’s note a few things. First, note that the classic bits are all on one line. This is mostly to save space. Next is to note that all the views are updated as we add gates and operators. As mentioned earlier, this is the system computing these classically to provide us with an ideal result. We have not yet specified which quantum computer to run this circuit on, hence the results you are seeing are what the classical system is computing and not real-time results from a quantum computer.

  1. Select the Setup and run button located at the top right of the Composer view. This will display the run settings, illustrated as follows:

    A screenshot of a computer

Description automatically generated

    Figure 2.14: The run settings view

  2. The run dialog prompts you to take two steps:
    • First, select which quantum system you would like to run the experiment on. Select any of the options you wish to run. In this example, we’ll select ibm_brisbane.
    • The second step first allows you to select the Provider. There are different providers—ibm-q/open/main is for open free quantum devices, and if you are a member of the IBM Quantum Network then you’ll have a provider that assigns you to the available premium quantum devices.

    For now, leave it at the default setting. This step also prompts you to select a number of Shots of the quantum circuit you wish to run. What this means is how many times you wish the quantum circuit to run during your experiment to obtain a reliable overall result. For now, let’s set it to 8000.

  3. Now that you have selected your run options, let’s run the circuit. Click Run on ibm_brisbane. If you selected a different device, it will indicate it accordingly.

Once your experiment begins, you should see an entry of this experiment in the Composer jobs view in the left panel on the Composer view, indicating that your experiment is Pending. While the job is Pending, it will display the status of the job, accordingly.

Note that depending on how busy the selected device is, you may have to wait for some time for your job to complete.

Once completed, you will see the status for the specified job as Completed, illustrated as follows:

Graphical user interface, text, application, chat or text message

Description automatically generated

Figure 2.15: The Composer jobs view displaying the job status for the selected circuit

  1. Upon completion, open your experiment from the list by clicking on the job. This opens the Jobs results view:
Graphical user interface, text, application

Description automatically generated

Figure 2.16: The Jobs results view

  1. Once you have the job opened, you can see some basic information about the job, such as the job ID across the top, followed by the date and time the job was completed, the backend it was run on, and three views that contain details about the job itself, such as the status, details, and results. You will also see a button at the top right that will provide the same information in the views, only in a separate window. Let’s review the views next.

First, we have the Status timeline view, as illustrated in Figure 2.17:

A screenshot of a phone

Description automatically generated

Figure 2.17: The jobs status timeline view

Here you can see the timeline that represents the time it took to complete your circuit. Each step represents the different processes that your circuit completes as it is executed on the quantum system:

Creatinged: The date and time the job instance was added to the queue to run on a specific quantum system.

In queue: The length of time your job was in the queue prior to running on the quantum system.

Running: The time it takes from moving out of the queue and running on a quantum system before returning the results back. Time in system is the actual time that the circuit is running on a quantum system, separate from the time it is on the classical components. For example, transforming the circuit from digital to analog and analog to digital is not included in the time in system value.

Completed: The date and time the job had completed running on the quantum system.

Next is the Details view, as seen in the following figure, which provides you with the details of the job; in this case it was sent from MyFirstCircuit. It also provides information such as the program, the number of shots, the number of circuits, and the instance. The instance is the provision of the quantum system; since we are using open free devices, this is categorized as an open system.

If you are a premium user, you will likely run in a mode specific to your provider, details of which you can obtain from your administrative provider.

A screenshot of a computer

Description automatically generated

Figure 2.18: The Details view

Finally, the Result – histogram view, illustrated in Figure 2.19, shows you the results of your experiment as rendered on a histogram.

A screenshot of a graph

Description automatically generated

Figure 2.19: Job results – histogram view

In this view, the x axis represents the frequency of each state that resulted after each shot of your circuit. The y axis represents each state that had a result.

All these views can be seen on a separate page altogether by clicking the See more details button, located at the top right of the report. This will provide the same details regarding your experiment, plus it will include the transpiled circuit diagram. The transpiled diagram will show you the same circuit, only it will use the basis gates of the specified quantum system. We will cover what basis gates are and how they are transpiled into the circuit in a later chapter. For now, think of it as a circuit using gates that are specific to the quantum system, as illustrated in the following screenshot:

A screenshot of a computer

Description automatically generated

Figure 2.20: The Details view with the original circuit (left) and the transpiled circuit (right)

The diagram of the circuits is just one of the three representations of the circuit. The other two tabs will display the Qasm and Qiskit representations. Keep in mind that depending on the size of the device that you ran this on, you may see all qubits listed (which could range over 100 qubits). In this case I truncated the view so you only see a few qubits to save space.

Now that we have the results from running our first quantum circuit, let’s take a closer look at our results and see what we got back.

Reviewing your results

The histogram result in Figure 2.19 provides information about the outcome of our experiment. Some parts might seem straightforward, but let’s review the details. It may seem trivial now, but later when we work on more elaborate quantum algorithms, understanding the results will prove invaluable.

There are two axes to the results. Along the y axis, we have all the possible states (or measurement outcomes) of our circuit. This is what the measurement operation observed when measuring the qubit. Recall that we measured the first qubit, so from the least significant bit (on the far right), q0 is in the right-most position within each possible state result. Therefore, as we add more qubits, they are appended to the left of the previous qubit. For example, a three-qubit system would be set in the following order, q2, q1S, q0. We know that our likely result of is correct due to the fact that we placed a NOT gate on the first qubit, which changes its state from 0 to 1. If we were to add two more qubits, then the second and third qubit would simply take a measurement that equates to measuring the initial state, which we know to be 0, creating a likely result of .

The x axis provides the results for each of the possible states. Since we ran the experiment 8000 times, the results show that we a have very high chance of the first qubit resulting in the state of 1. The reason why the result is not 100% is due to noise from the quantum device. We will cover the topic of noise in later chapters, but for now we can be confident of a high probability, based on our results, that the NOT gate worked.

In this section, we simulated a simple NOT gate operation on a qubit and ran the circuit on a quantum device.

Summary

In this chapter, you learned about the IBM Quantum Composer and its many components. You created an experiment that simulated a classic NOT gate. You then viewed the results on a histogram, and read the probabilities based on the results.

This has provided you with the skills to experiment with other gates to see what effect each operation has on each qubit and what information might be determined or used based on the results of the operation. This will be helpful when we look at some of the quantum algorithms and how these operations are leveraged to solve certain problems.

In the next set of chapters, we will move away from the click-and-drag work of the UI and instead create experiments using Jupyter Notebook, as well as beginning to program quantum circuits using Python.

Questions

  1. From the Composer, where would you find the time it took to run your circuit on a quantum computer?
  2. How would you remove or add a qubit to your circuit on the Composer?
  3. On which view would you specify which quantum system to run your circuit?
  4. Which sphere would be ideal to view the quantum state of three qubits in a single sphere?

Join us on Discord

Join our community’s Discord space for discussions with the author and other readers:

https://packt.link/3FyN1

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Understand the difference between classical computers and quantum computers
  • Work with key quantum computational principles such as superposition, interference, and entanglement, and observe how they are leveraged on the IBM Quantum systems
  • Run your own quantum experiments and applications by integrating with Qiskit and Python

Description

The IBM Quantum Platform was built to enable developers to learn the basics of quantum computing by providing access to high performant quantum computers and provide documentation and courses to help get up to speed with the latest features in quantum computing. Updated with new examples and changes to the platform, this edition begins with an introduction to the IBM Quantum Platform and the Quantum Information Science Kit (Qiskit) SDK. You will become well versed in the IBM Quantum Composer interface as well as running your quantum circuits on a real quantum computer. Along the way, you’ll learn some of the fundamental principles regarding quantum mechanics, qubits, quantum gates, quantum circuits, and the error mitigation techniques that are used to perform operations on qubits. As you build on your knowledge, you’ll understand the functionality of IBM Qiskit and the developer-focused resources so you can create your own quantum algorithms. You’ll learn how to monitor and optimize your quantum circuits. Lastly, you’ll look at the fundamental quantum algorithms and understand how they can be applied effectively. By the end of this quantum computing book, you'll know how to build quantum algorithms and will have gained a practical understanding of quantum computation that you can apply to your research or business.

Who is this book for?

This book is for Python developers who are looking to learn quantum computing from the ground up and put their knowledge to use in practical situations with the help of the IBM Quantum Platform and Qiskit. Some background in computer science and high school-level physics and math is required.

What you will learn

  • Get familiar with the features within the IBM Quantum Platform
  • Create and visualize quantum gates and circuits
  • Operate quantum gates on qubits using the IBM Quantum Composer
  • Install and run your quantum circuits on an IBM Quantum computer
  • Discover Qiskit and its many features such as the Qiskit Runtime
  • Get to grips with fundamental quantum algorithms and error mitigation techniques to help you get started
  • Understand the new era of quantum utility and how this moves us closer towards quantum advantage

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 25, 2025
Length: 420 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803240923
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 25, 2025
Length: 420 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803240923
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Table of Contents

15 Chapters
Exploring the IBM Quantum Tools Chevron down icon Chevron up icon
Creating Quantum Circuits with IBM Quantum Composer Chevron down icon Chevron up icon
Introducing and Installing Qiskit Chevron down icon Chevron up icon
Understanding Basic Quantum Computing Principles Chevron down icon Chevron up icon
Understanding the Qubit Chevron down icon Chevron up icon
Understanding Quantum Logic Gates Chevron down icon Chevron up icon
Programming with Qiskit Chevron down icon Chevron up icon
Optimizing and Visualizing Quantum Circuits Chevron down icon Chevron up icon
Simulating Quantum Systems and Noise Models Chevron down icon Chevron up icon
Suppressing and Mitigating Quantum Noise Chevron down icon Chevron up icon
Understanding Quantum Algorithms Chevron down icon Chevron up icon
Applying Quantum Algorithms Chevron down icon Chevron up icon
Understanding Quantum Utility and Qiskit Patterns Chevron down icon Chevron up icon
Other Book You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.