Sitemap
Lokesh P D

Lokesh P D

Stay Hungry, Stay Curious

๐Ÿš€ ๐Ÿฏ๐Ÿฌ ๐——๐—ฎ๐˜†๐˜€ โ€ข ๐Ÿฏ๐Ÿฌ ๐—–๐—ผ๐—ป๐—ฐ๐—ฒ๐—ฝ๐˜๐˜€ ๐—ผ๐—ณ ๐—ค๐˜‚๐—ฎ๐—ป๐˜๐˜‚๐—บ ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ถ๐—ป๐—ด | ๐——๐—ฎ๐˜† ๐Ÿฎ๐Ÿฌ

3 min readAug 1, 2026

--

Hello everyone!

Welcome back to Day 20 of the 30 Days โ€ข 30 Concepts of Quantum Computing series.

In the previous blog, we explored the Deutschโ€“Jozsa Algorithm, the first quantum algorithm to demonstrate an advantage over classical computing.

Today, letโ€™s look at one of the most practical and famous quantum algorithms:

๐—š๐—ฟ๐—ผ๐˜ƒ๐—ฒ๐—ฟโ€™๐˜€ ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต ๐—”๐—น๐—ด๐—ผ๐—ฟ๐—ถ๐˜๐—ต๐—บ

This algorithm answers a simple question:

โ€œCan a quantum computer find something in a huge unsorted database faster than a classical computer?โ€

The answer is Yes!

๐—ง๐—ต๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ฏ๐—น๐—ฒ๐—บ

Imagine you have 1 million lockers, but only one contains a golden key.

The lockers are completely random.

There are no labels.

No sorting.

Just one correct locker.

How would you find it?

๐—–๐—น๐—ฎ๐˜€๐˜€๐—ถ๐—ฐ๐—ฎ๐—น ๐—”๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต

A classical computer has no shortcut.

It checks one locker after another until it finds the key.

On average, it would search about 500,000 lockers.

In the worst case, it may need to check all 1 million.

๐—ค๐˜‚๐—ฎ๐—ป๐˜๐˜‚๐—บ ๐—”๐—ฝ๐—ฝ๐—ฟ๐—ผ๐—ฎ๐—ฐ๐—ต

Groverโ€™s Algorithm begins by placing the qubits into superposition, allowing them to represent all possible lockers simultaneously.

It then repeatedly performs two quantum operations:

โœ… Oracle โ€” Marks the correct answer.

โœ… Amplitude Amplification โ€” Increases the probability of measuring the correct answer while reducing the probabilities of the incorrect ones.

After several iterations, measuring the qubits is much more likely to reveal the correct locker.

Get Lokesh P Dโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

Instead of checking every possibility one by one, the algorithm amplifies the right answer until it stands out.

Press enter or click to view image in full size

๐—ช๐—ต๐˜† ๐—œ๐˜€ ๐—œ๐˜ ๐—™๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ?

Suppose there are:

๐Ÿ“ฆ 1,000,000 possible answers

A classical search may require about:

๐Ÿ”น 1,000,000 checks (worst case)

Groverโ€™s Algorithm requires only about:

๐Ÿ”น โˆš1,000,000 = 1,000 iterations

Thatโ€™s a dramatic reduction.

Although it isnโ€™t exponentially faster like Shorโ€™s Algorithm, a quadratic speedup is still a major advantage for large search problems.

Press enter or click to view image in full size

๐—ช๐—ต๐—ฒ๐—ฟ๐—ฒ ๐—–๐—ผ๐˜‚๐—น๐—ฑ ๐—œ๐˜ ๐—•๐—ฒ ๐—จ๐˜€๐—ฒ๐—ฑ?

Groverโ€™s Algorithm has applications in:

๐Ÿ”น Database Search

๐Ÿ”น Password Cracking

๐Ÿ”น Optimization Problems

๐Ÿ”น Artificial Intelligence

๐Ÿ”น Route Planning

๐Ÿ”น Pattern Matching

Any search problem with many possibilities could benefit.

๐—ข๐—ป๐—ฒ ๐—œ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜๐—ฎ๐—ป๐˜ ๐—ก๐—ผ๐˜๐—ฒ

Groverโ€™s Algorithm doesnโ€™t search every answer simultaneously and instantly know the result.

Instead, it uses superposition, interference, and amplitude amplification to make the correct answer increasingly likely to appear when the qubits are measured.

Thatโ€™s the true source of its power.

๐ŸŽ‰ ๐—ง๐—ต๐—ฎ๐˜โ€™๐˜€ ๐—œ๐˜ ๐—ณ๐—ผ๐—ฟ ๐——๐—ฎ๐˜† ๐Ÿฎ๐Ÿฌ!

Groverโ€™s Algorithm showed that quantum computers can solve search problems far more efficiently than classical computers.

Rather than checking possibilities one by one, it uses quantum mechanics to amplify the probability of the correct answer, making it stand out from millions of possibilities.

Thank you for reading till the end โค๏ธ
See you in Day 20..

๐Ÿ’ญ ๐—ง๐—ต๐—ผ๐˜‚๐—ด๐—ต๐˜ ๐—ผ๐—ณ ๐˜๐—ต๐—ฒ ๐——๐—ฎ๐˜†

โ€œQuantum speed isnโ€™t about checking every possibility โ€” itโ€™s about making the right possibility impossible to ignore.โ€

--

--

Lokesh P D
Lokesh P D

Written by Lokesh P D

Stay Hungry, Stay Curious