/A-Practical-Guide-to-Quantum-Machine-Learning-and-Quantum-Optimization

A Practical Guide to Quantum Machine Learning and Quantum Optimization, published by Packt

Primary LanguageJupyter NotebookMIT LicenseMIT

A Practical Guide to Quantum Machine Learning and Quantum Optimisation

A Practical Guide to Quantum Machine Learning and Quantum Optimisation

This is the code repository for A Practical Guide to Quantum Machine Learning and Quantum Optimisation , published by Packt.

Hands-on Approach to Modern Quantum Algorithms

What is this book about?

This book introduces the main quantum algorithms that are currently used in optimization and machine learning. The approach is hands-on, with examples that can be run on simulators and actual quantum computers. The algorithms are explained in full detail, without sacrificing rigor, but, at the same time, keeping mathematical prerequisites to a minimum.

This book covers the following exciting features:

  • Review the basics of quantum computing
  • Gain a solid understanding of modern quantum algorithms
  • Understand how to formulate optimization problems with QUBO
  • Solve optimization problems with quantum annealing, QAOA, GAS, and VQE
  • Find out how to create quantum machine learning models
  • Explore how quantum support vector machines and quantum neural networks work using Qiskit and PennyLane
  • Discover how to implement hybrid architectures using Qiskit and PennyLane and its PyTorch interface

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, Chapter02.

The code will look like the following:

import dimod
J = {(0,1):1, (0,2):1}
h = {}
problem = dimod.BinaryQuadraticModel(h, J, 0.0, dimod.SPIN)
print("The problem we are going to solve is:")
print(problem)

Following is what you need for this book: This book is for professionals from a wide variety of backgrounds, including computer scientists and programmers, engineers, physicists, chemists, and mathematicians. Basic knowledge of linear algebra and some programming skills (for instance, in Python) are assumed, although all mathematical prerequisites will be covered in the appendices.

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

Software and Hardware List

Chapter Software required OS required
2-12 Anaconda Windows, Mac OS X, and Linux (Any)
2-12 Google Colab Windows, Mac OS X, and Linux (Any)

Errata

  • In Figure 1.2 of the digital version of the book (not of the print version), the ket 0 should be on the positive Z axis (i.e., on the top), and the ket 1 should be on the negative Z azis (i.e., on the bottom). Since we got the figure right in print, would the figure's correctness be in a state of superposition?

  • References to the "time-independent Schrodinger equation" (pages 14 and 126 of the print version) should be read as references to the "time-dependent Schrodinger equation".

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

Related products

Get to Know the Authors

Elías F. Combarro holds degrees from the University of Oviedo (Spain) in both Mathematics (1997, award for second highest grades in the country) and Computer Science (2002, award for highest grades in the country). After some research stays at the Novosibirsk State University (Russia), he obtained a Ph.D. in Mathematics (Oviedo, 2001) with a dissertation on the properties of some computable predicates under the supervision of Prof. Andrey Morozov and Prof. Consuelo Martínez. Since 2009, Elías F. Combarro has been an associate professor at the Computer Science Department of the University of Oviedo. He has published more than 50 research papers in international journals on topics such as Computability Theory, Machine Learning, Fuzzy Measures and Computational Algebra. His current research focuses on the application Quantum Computing to algebraic, optimisation and machine learning problems. From July 2020 to January 2021, he was a Cooperation Associate at CERN openlab. Currently, he is the Spain representative in the Advisory Board of CERN Quantum Technology Initiative, a member of the Advisory Board of SheQuantum and one of the founders of the QSpain, a quantum computing think tank based in Spain.

Samuel González-Castillo holds degrees from the University of Oviedo (Spain) in both Mathematics and Physics (2021). He is currently a mathematics research student at the National University of Ireland, Maynooth, where he works as a graduate teaching assistant.He completed his physics bachelor thesis under the supervision of Prof. Elías F. Combarro and Prof. Ignacio F. Rúa (University of Oviedo), and Dr. Sofia Vallecorsa (CERN). In it, he worked alongside other researchers from ETH Zürich on the application of Quantum Machine Learning to classification problems in High Energy Physis. In 2021, he was a summer student at CERN developing a benchmarking framework for quantum simulators. He has contributed to several conferences on quantum computing.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781804613832