Simulating Bell inequalities with Qibo

This paper presents educational material and Qibo-based software tools organized into three modules of increasing difficulty to help students simulate Bell inequality violations, thereby exploring fundamental quantum concepts like entanglement and non-locality while gaining practical experience with statistical analysis and hardware noise.

Original authors: Isabella Masina, Giuseppe Lo Presti, Matteo Robbiati, Michele Grossi

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Isabella Masina, Giuseppe Lo Presti, Matteo Robbiati, Michele Grossi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a class of students about the weirdest, most mind-bending rules of the universe: Quantum Mechanics. Specifically, you want to show them how two tiny particles can be so deeply connected that what happens to one instantly affects the other, even if they are on opposite sides of the galaxy. This is called "entanglement."

For decades, scientists have debated whether this connection is real or if the particles are just carrying secret "instruction manuals" (hidden variables) that tell them what to do before they even separate. In 1964, a physicist named John Bell came up with a mathematical test—a set of rules called Bell Inequalities—to settle the argument. If the particles follow the "instruction manual" theory, they must obey these rules. If they follow the weird rules of quantum mechanics, they will break them.

This paper is essentially a teacher's toolkit designed to help students run these tests themselves using a computer program called Qibo. Instead of just reading about the math, students can build a virtual lab, run simulations, and see the "magic" happen on their screens.

Here is how the paper breaks it down, using simple analogies:

1. The Three-Module Lesson Plan

The authors organized their teaching material into three steps, getting harder as you go, like levels in a video game.

  • Level 1: The Bell-Wigner Inequality (The "Sock" Analogy)
    Imagine you have a pair of socks. If you put a left sock in one box and a right sock in another, and you send them to different cities, you know exactly what's in the other box once you open one. This is the "local hidden variable" idea: the socks were always left or right; you just didn't know yet.

    The paper starts here because the math is simple. It asks: "If the particles are like these pre-determined socks, what are the odds of them matching in specific ways?" The simulation shows that if the particles were just "socks," they would follow a strict rule. But when the students run the simulation with quantum particles, the particles break the rule. They act as if they are talking to each other instantly, rather than just following a pre-written list.

  • Level 2: The Original Bell Inequality (The "Perfect Mirror")
    This level gets a bit more complex. It looks at how the particles correlate. Imagine two dancers who are perfect mirrors of each other. If one spins left, the other spins right.

    The paper explains that in a "normal" world, there's a limit to how perfectly they can mirror each other across different angles. But in the quantum world, the dancers are so perfectly synchronized that they exceed this limit. The simulation lets students tweak the angles of the "dance floor" and watch the numbers jump over the limit, proving that the "mirror" isn't just a reflection of a pre-set plan, but something more dynamic.

  • Level 3: The CHSH Inequality (The "Four-Direction" Challenge)
    This is the most famous and robust version of the test. Imagine the dancers are now being watched by four different judges standing in different directions. The judges ask the dancers to perform specific moves based on where they are standing.

    The paper shows that if the dancers are following a "script" (hidden variables), their combined scores can never exceed a certain number (2). But when the students run the quantum simulation, the score jumps to 2.82 (which is 222\sqrt{2}). This is the "smoking gun" that proves the universe is not local; the particles are truly connected in a way that defies our everyday logic.

2. The Virtual Lab (Qibo)

The paper emphasizes that you don't need a real physics lab with lasers and vacuum chambers to see this. The authors used Qibo, which is like a "flight simulator" for quantum computers.

  • The Code: They provide Python code (a type of computer language) that students can copy and paste.
  • The Process: The code creates two "qubits" (quantum bits, which are like super-powered coins that can be heads, tails, or both at once). It entangles them, spins them in different directions (simulating measurements), and counts the results.
  • The Result: The students see graphs where the quantum results clearly violate the "classical" limits.

3. The Real-World Messiness (Noise and Statistics)

The paper also teaches a very practical lesson: Real life is messy.
In a perfect computer simulation, the results are smooth. But if you run this on a real quantum computer (like the ones at CERN or in labs), the results get "noisy."

  • The Analogy: Imagine trying to hear a whisper in a quiet room (perfect simulation) versus trying to hear it at a rock concert (real hardware). The "noise" from the hardware can hide the signal.
  • The Lesson: The authors show students how to calculate how many times they need to run the experiment (shots) to get a clear answer. If they run it too few times, the random "static" makes it look like the rule wasn't broken. If they run it enough times, the true quantum nature shines through.

4. Why This Matters for Education

The authors argue that this tool is a game-changer for teaching.

  • For Physics Students: It turns abstract, scary math into something they can touch and see. They can "play" with the angles and see the violation happen in real-time.
  • For Computer Science Students: It gives them a chance to learn deep physics concepts without needing a PhD in theoretical physics first. They can focus on the code and the logic.

Summary

In short, this paper presents a digital playground where students can prove that the universe is stranger than we think. By using the Qibo software, they can simulate the famous Bell tests, watch the "classical rules" break, and understand that quantum entanglement is a real, measurable phenomenon—not just a theory. It bridges the gap between "reading about magic" and "performing the magic trick" on a computer screen.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →