Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learn Quantum Computing with Python and IBM Quantum
  • Toc
  • feedback
Learn Quantum Computing with Python and IBM Quantum

Learn Quantum Computing with Python and IBM Quantum

By : Robert Loredo
close
Learn Quantum Computing with Python and IBM Quantum

Learn Quantum Computing with Python and IBM Quantum

By: Robert Loredo

Overview of this book

IBM Quantum Lab is a platform that enables developers to learn the basics of quantum computing by allowing them to run experiments on a quantum computing simulator and on several real quantum computers. Updated with new examples and changes to the platform, this edition begins with an introduction to the IBM Quantum dashboard and Quantum Information Science Kit (Qiskit) SDK. You will become well versed with the IBM Quantum Composer interface as well as the IBM Quantum Lab. You will learn the differences between the various available quantum computers and simulators. Along the way, you’ll learn some of the fundamental principles regarding quantum mechanics, quantum circuits, qubits, and the gates that are used to perform operations on qubits. As you build on your knowledge, you’ll understand the functionality of IBM Quantum and the developer-focused resources it offers to address key concerns like noise and decoherence within a quantum system. 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 programs and will have gained a practical understanding of quantum computation that you can apply to your business.
Table of Contents (18 chapters)
close
14
Other Book You May Enjoy
15
Index

Chapter 6 – Understanding Quantum Logic Gates

Question 1

For the multi-qubit gates, try flipping the Source and Target. Do you see a difference when you decompose the circuit?

Answer

No, there is no difference that can be seen, only that the source is now assigned to the opposite qubits.

Question 2

Decompose all the gates for both single- and multi-qubit circuits. What do you notice about how the universal gates are constructed?

Answer

The single gates are now displayed by their respective basis gate, including rotation values, if any. Multi-qubit gates, such as the Toffoli gate, are also broken down into specific gates that are used to construct the operation of the Toffoli gate between the assigned qubits.

Question 3

Implement the Toffoli gate where the target is the center qubit of a three-qubit circuit.

Answer

Use the following code to implement the Toffoli gate where the target is the center qubit of a three-qubit circuit:

...
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete