Skip to content

PacktPublishing/Mastering-Quantum-Computing-with-IBM-QX

Repository files navigation

Mastering Quantum Computing with IBM QX

Mastering Quantum Computing with IBM QX

This is the code repository for Mastering Quantum Computing with IBM QX, published by Packt.

Learn quantum computing by implementing quantum programs on IBM QX and be at the forefront of the next revolution in computation

What is this book about?

Quantum computing is set to disrupt the industry. IBM Research has made quantum computing available to the public for the first time, providing cloud access to IBM QX from any desktop or mobile device. Complete with cutting-edge practical examples, this book will help you understand the power of quantum computing in the real world.

This book covers the following exciting features:

  • Study the core concepts and principles of quantum computing
  • Uncover the areas in which quantum principles can be applied
  • Design programs with quantum logic
  • Understand how a quantum computer performs computations
  • Work with key quantum computational algorithms including Shor's algorithm and Grover's algorithm Develop the ability to analyze the potential of quantum computing in your industry

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter01.

The code will look like the following:

from qiskit.tools.visualization import plot_histogram
plot_histogram(job_exp.result().get_counts(qc))

To setup book code and Python virtual environment

Run the following commands step wise to set up Python virtual environment:

  • git clone https://github.com/PacktPublishing/Mastering-Quantum-Computingwith-IBM-QX.git
  • cd Mastering-Quantum-Computing-with-IBM-QX
  • python3 -m venv book
  • source book/bin/activate
  • pip install -r requirements.txt
  • pip install ipykernel
  • ipython kernel install --user --name=bookkernel

Note: if Python is a version of Python 3 on your system, you may need to/want to type Python instead of Python3 above

To run a jupyter notebook from commandline, exporting results to Markdown

Use the following command to run Jupyter Notebook:

jupyter notebook

Navigate to your notebook in the browser. Then go to Kernel | bookkernel in the notebook's UI.

Following is what you need for this book: If you're a developer or data scientist interested in learning quantum computing, this book is for you. You're expected to have basic understanding of the Python language, but knowledge of physics, quantum mechanics, or advanced mathematics is not required.

With the following software and hardware list you can run all code files present in the book (Chapter 1-).

Software and Hardware List

Chapter Software required OS required
All Python 3.4+ Cross platform
All qiskit 0.7.0 Cross platform
All numpy 1.16.0 Cross platform
All matplotlib 3.0.2 Cross platform
8 pygame 1.9.4 Cross platform

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Errata

*Page 22 (Paragraph 5, line 1) Storing the equivalent of a qubit of information should be Storing a qubit of information
*Page 23 (Paragraph 5, line 5) That way, you'll be able to get started coding without having to understand the math, but still be able to follow other descriptions of quantum computing, which assume you know the math inside and out. should be That way, you'll have the option to begin coding without understanding the math, yet have the option to pursue different depictions of quantum processing, which expect you know the math completely.
*Page 27 (Paragraph 6, line 3) you'll continue to to see me always should be you'll continue to see me always
*Page 28 (Paragraph 1, line 3) They defined in words/algebra as follows: should be They are defined in words/algebra as follows:
*Page 34 (Paragraph 1, line 3) we we can generate a bunch of different should be we can generate a bunch of different
*Page 215 (Paragraph 3, line 1) The indented items all depend on the result computed one indentation in. should be The indented items all depend on the result computed in one indentation.
*Page 227 (Paragraph 4, line 2) GCD of the random number we chose a and the number we wish to factor N isn't one and N isn't one. should be GCD of the random number a and the number we wish to factor N isn't one.
*Page 228 (Paragraph 1, line 1) One example run should be Running the example for the first time
*Page 230 (Paragraph 1, line 1) Let's trace through the an example should be Let us trace this through an example
*Page 232 (Paragraph 7, line 1) (mod 35).,all should be (mod 35), all
*Page 3 ( Preface What this book covers section) The assessment link is inactive as it is not there. Author encourages readers to solve the questions by their own.

Related products

Get to Know the Author

Dr. Christine Corbett Moran is a researcher and engineer at NASA JPL, specializing in cybersecurity. She also serves as a guest scientist at Caltech, specializing in astrophysics. Her research spans fundamental physics and computer science, and she has published peer-reviewed papers on astrophysics, astronomy, artificial intelligence, and quantum computing, garnering thousands of citations. Her software products range from iOS applications to quantum computing simulators and have received millions of downloads. She has a PhD and master's in Astrophysics from the University of Zurich, and a B.S. in Computer Science and Engineering, and a B.S. in Physics from MIT. She can be found on Twitter at @corbett.

Suggestions and Feedback

Click here if you have any feedback or suggestions.

About

Mastering Quantum Computing with IBM QX, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages