# Comparing Two Numbers Using A Quantum Algorithm

## Quantum computing doesn’t need to be complicated

7 min readMar 14

--

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

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

In the previous post, we solved this problem for single-digit binary numbers.

We introduced the `bit_compare`

function that compares two bits and tells us which one is greater by flipping one…