Self-testing with untrusted random number generators

This paper demonstrates that all pure bipartite partially entangled states can be self-tested even when the random number generator used for Bell test settings is untrusted, provided it satisfies a residual randomness constraint weaker than full independence, thereby enabling semi-device-independent certification of the randomness source's independence from the quantum device.

Moisés Bermejo Morán, Ravishankar Ramanathan

Published Thu, 12 Ma
📖 5 min read🧠 Deep dive

Imagine you are trying to verify that a magic trick is real, but you have a strict rule: you cannot trust the magician, and you cannot trust the person picking the cards.

In the world of quantum physics, this is called Self-Testing. It's a way to prove that a mysterious "black box" device is actually doing quantum magic (like generating entangled particles) just by looking at the input and output numbers, without ever opening the box to see how it works.

For a long time, scientists had a big problem: To prove the magic was real, they assumed the person picking the settings (the "Random Number Generator" or RNG) was perfectly independent. They assumed the RNG had no secret connection to the magic box. If the RNG and the box were secretly whispering to each other, the whole test could be faked.

This paper says: "We don't need perfect independence anymore. We just need a tiny bit of leftover randomness."

Here is the breakdown using simple analogies:

1. The Old Rule: The "Perfect Stranger"

Imagine you are testing a new video game console. To prove it's a real console and not a fake one, you ask a friend to randomly press buttons.

  • The Old Assumption: Your friend must be a "perfect stranger." They must have absolutely no idea what the console is doing, and the console must have no way of predicting which buttons your friend will press.
  • The Problem: In the real world, we use computers to generate random numbers. What if the computer generating the numbers is secretly linked to the console? If they are linked, the console could cheat and fake the results.

2. The New Discovery: The "Leaky Bucket"

The authors of this paper found a loophole. They realized you don't need your friend to be a perfect stranger. You just need them to be unpredictable enough.

  • The Analogy: Imagine your friend is holding a bucket of water (the random numbers).
    • Old Rule: The bucket must be completely sealed. No water can leak out to the console, and the console can't see inside.
    • New Rule: The bucket can have a tiny hole. As long as the water (randomness) doesn't completely stop flowing, and the console can't perfectly predict exactly which drop will fall next, the test still works!

They call this "Residual Randomness." Even if the source of the random numbers is slightly "tainted" or correlated with the device, as long as there is some randomness left that the device can't predict, the test holds up.

3. The Magic Trick: "Hardy Tests" vs. "Bell Scores"

The paper makes a fascinating distinction between two ways of testing the device:

  • The "Score" Method (Bell Inequalities): This is like asking, "How many points did you get?"
    • The Result: If the random number generator is even slightly correlated with the device, this method fails. The device can cheat the score. It's like a student cheating on a math test because they know the teacher's schedule.
  • The "Impossible Event" Method (Hardy Tests): This is like asking, "Did you do something that is physically impossible?"
    • The Result: This method succeeds even with a leaky bucket.
    • The Metaphor: Imagine a magician claims they can make a coin vanish. If they do it, it's magic. But if they claim they can make a coin vanish and make it appear in your pocket at the same time, that's a logical contradiction.
    • The paper shows that if the device produces a result that is logically impossible (like a coin being in two places at once), it must be doing real quantum magic, even if the person picking the settings is slightly suspicious. The "impossibility" is so strong that it breaks through the correlation.

4. The Big Win: Testing "Partially Entangled" States

In quantum physics, particles can be "entangled" (linked).

  • Maximally Entangled: Like two coins that are always exactly opposite (Heads/Tails).
  • Partially Entangled: Like two coins that are mostly opposite, but sometimes both land on Heads.

For years, scientists could only "self-test" the perfectly linked coins if the settings were perfectly random. This paper proves you can now test any partially linked state, even if the randomness source is untrusted, as long as that "leaky bucket" of randomness exists.

Why Does This Matter?

Think of Device-Independent Cryptography as a super-secure lock.

  • Before: You could only use this lock if you were 100% sure the key-maker (the random number generator) was honest and uncorrelated with the lock. This is hard to guarantee in the real world.
  • Now: You can use this lock even if the key-maker is a bit shady, as long as they aren't completely in the lock's pocket.

In a nutshell:
The authors found a way to verify quantum devices using "impossible" logic puzzles (Hardy tests) that are so robust, they work even when the random number generator isn't perfectly independent. It turns a strict "all-or-nothing" requirement into a more realistic "mostly independent" one, making secure quantum technology much more practical for the real world.