Over the last episodes we have digged deeper into quantum repeaters and satillites (check here). One of the most exciting and promising applications of quantum technologies is the ability to communicate securely in a completely new way, where any attempt to secretly intercept the communication can be detected.

In our everyday digital communication, security works like this: we have a message, we encrypt it using a mathematical algorithm, and we rely on the assumption that nobody can break that encryption.

The security comes from making the problem extremely difficult for an attacker to solve.

Quantum communication takes a very different approach. Instead of only relying on mathematics, it uses the fundamental laws of physics.

The process has two steps.

First, we create a secret key between two people without them ever physically meeting.

Second, we use that secret key to encrypt and protect the actual message in a way that is impossible for an eavesdropper to secretly break.

The second step is actually quite simple and does not require any quantum technology. The real challenge is the first step:

how do two people who are far apart create a secret key that nobody else knows?

If two friends are sitting in the same room, this problem is easy. They can simply create a random secret key together, write it down, and make sure nobody else sees it. But in today's connected world, people communicate across oceans through the internet. How can two strangers create a shared secret without physically meeting?

That is exactly where quantum technology enters the picture.

This technique is called Quantum Key Distribution, or QKD.

Now, let us see how it works. But instead of starting with equations and complicated terminology, I am going to explain it as a story.

The Violet Paper

Alice and Bob are two people who wants to share a secret message. The key magic ingredients is the Violet paper.

Alice uses that to share the secret key with Bob. Each violet paper hides exactly one bit—either 0 or 1.

Before sending every paper, Alice flips two imaginary coins.

The first coin decides the language she'll use.

  • Red

  • Blue

The second coin decides the bit.

  • 0

  • 1

Suppose Alice flips Red and then 1.

She prepares a Red 1.

But then she takes the remaining color—blue, in this case—along with a random bit, either 0 or 1, and encodes that as well, ensuring that no one else can tell what was chosen. The combination of red and blue produces violet—that's the crucial idea. From the outside, however, the paper looks identical to every other sheet.

Nobody—not even Bob—can tell whether Alice prepared a Red 1, Red 0, Blue 1, or Blue 0 just by looking at it.

Reading the Paper

Bob now receives the violet paper. He has only one way to discover the hidden bit.

He must shine either a Red laser or a Blue laser.

Suppose Alice prepared Red 1.

If Bob shines the Red laser, the paper reveals

1

and immediately burns into ash. Everything worked perfectly.

Now imagine Bob instead shines the Blue laser.

The paper still burns. But because Bob asked the wrong question, the paper does not reveal Alice's secret. Instead, Nature simply returns a random answer.

Maybe Bob sees

0

Maybe he sees

1

Both outcomes are equally likely.

The important point is that this answer has nothing to do with what Alice actually prepared.

And because the paper has already burned, Bob cannot say,

"Let me try again with the Red laser."

The original information has disappeared forever.

Why Bob Can Still Build a Secret Key

Alice doesn't send just one paper. She sends thousands. For every paper, she randomly chooses the language and the bit. Bob also randomly chooses which laser to use. Sometimes they accidentally choose the same language.

Sometimes they don't.

Imagine eight papers.

Paper

Alice Prepared

Bob Uses

Bob Reads

1

Red 1

Red

1

2

Blue 0

Blue

0

3

Red 0

Blue

1 (random)

4

Blue 1

Red

0 (random)

5

Red 1

Red

1

6

Blue 0

Red

0 (random)

7

Blue 1

Blue

1

8

Red 0

Red

0

Notice something interesting.

Whenever Bob happened to choose the same language as Alice, he recovered the correct bit. Whenever he chose the wrong language, he received some random number.

Throwing Away Half the Papers

After all the papers have been exchanged, Alice and Bob communicate over a normal public channel.

They never reveal the bits.

Instead, Alice says,

"Paper 1 was Red. Paper 2 was Blue. Paper 3 was Red..."

Bob replies,

"I used Red, Blue, Blue..."

Whenever they used the same language, they keep that bit.

Whenever they used different languages, they throw that paper away because Bob's answer was only random.

Even though nearly half the papers are discarded, the remaining bits form a long secret key known only to Alice and Bob.

Eve Thinks She Can Steal the Key

Now imagine a hacker called Eve. She wants to know the secret message. So Eve secretly intercepts every violet paper before Bob receives it.

Can she learn the secret? Unfortunately for Eve, every paper looks identical.

She has no idea whether Alice prepared a Red 0, Red 1, Blue 0, or Blue 1.

So Eve has no choice. She use a red or blue laser at random. Suppose Alice actually prepared Red 1.

If Eve also chooses the Red laser, she reads 1, burns the paper, and can prepare an identical replacement for Bob. No problem.

But suppose Eve instead chooses the Blue laser. The paper burns. It gives Eve a completely random answer—perhaps 0, perhaps 1.

Crucially, Eve has not learned Alice's original secret. The original paper has already been destroyed. Now Eve has to send something to Bob. But what should she send? She doesn't know.

All she has is a random answer produced by measuring in the wrong language. So whatever replacement she prepares has a good chance of being wrong. Later, when Bob measures that replacement, errors begin appearing in the final key.

Alice and Bob don't need to know who the spy is. They simply compare a small random sample of their final key.

If they find significantly more errors than expected, they know someone must have interfered with the quantum transmission.

The Beautiful Part

Think about ordinary information. Someone can copy your PDF, your password file or your photographs perfectly without changing the original.

The violet paper refuses to behave that way. Ask the right question and you get the correct answer. Ask the wrong question and Nature gives you a random answer while destroying the original forever.

That single rule is enough to expose anyone trying to secretly listen during the creation of the key.

Quantum Key Distribution does something remarkable. It lets the laws of physics themselves reveal that someone has been eavesdropping.

Build your own!

Here is a cool guide that helps you 3D print your own QKD setup! Check out the links below:

Related paper:

For Readers Familiar with Quantum Mechanics

The Red and Blue languages are a storytelling analogy for the two measurement bases used in the BB84 protocol (commonly called the X and Z bases). The violet paper represents a quantum state prepared in one of those bases. Measuring in the correct basis reveals the encoded bit with certainty, while measuring in the other basis produces a random outcome and disturbs the original state, which is the key idea that allows eavesdropping to be detected.

Keep Reading