You have two integers! Write a quantum algorithm that tells you which one is greater.
This seemingly simple challenge reveals why quantum computing is not a beginner-friendly topic! Most lectures, scientific papers, books, and even blog posts treat quantum computing as an extension of quantum physics.
By contrast, I’ve made it my mission to explain quantum computing and quantum machine learning in an accessible way. In a way that developers, programmers, and interested students of any discipline with at least some programming experience can understand. Of course, it is desirable to understand the mathematics and theory underlying quantum computing. But it is much more important to understand what the concepts mean in practice. You need to know what you can do and how you can do it. But you don’t need to know how it works physically.
This is the approach I take in my two-volume book Hands-On Quantum Machine Learning With Python. And this is how we can understand how to write a quantum algorithm that compares two integers.
So let’s unravel this algorithm piece by piece.
Do you want to get started with Quantum Machine Learning? Have a look at Hands-On Quantum Machine Learning With Python.
Get the first three chapters for free here.
The brand-new Volume 2: Combinatorial Optimization is all about how to solve optimization problems using the Variational Quantum Eigensolver and the Quantum Approximate Optimization Algorithm.