# A Beginner-Friendly Quantum Algorithm

Do you want to get started with Quantum Machine Learning? Have a look at **Hands-On Quantum Machine Learning With Python****.**

Quantum computing can be pretty tough. Even simple problems appear overwhelming at first sight.

But learning quantum computing doesn’t need to be complicated — in fact, you don’t need to know an abundance of math and physics.

That’s why 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.

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.

## You have two integers! Write a quantum algorithm that tells you which one is greater.

Previously, we solved the problem using the single bit-comparator. Then, we extended this algorithm to compare entire bitstrings.

The bit-comparator uses two auxiliary qubits, each corresponding to one of the qubits being greater than the other, as depicted in the following figure.