Chuyển đến nội dung

Bài 38 · Projects and Practice

Project: Simulating a Bell Test

Sample measurement outcomes of an entangled pair, estimate the CHSH value with error bars, and find how much noise a Bell-test violation can tolerate.

A Bell experiment never delivers the exact quantum value 2√2. It delivers a finite list of ±1 outcomes, taken with imperfect sources and detectors, and the experimenter must decide whether |S| is significantly above 2. In this project you build that experiment in software. You will sample the outcomes that quantum mechanics predicts for a singlet pair, estimate S and its statistical error, and then add noise to find out how good a source must be.

The theory from Entanglement and Bell's Inequality is all we need. In summary: Alice and Bob each choose between two settings (a, a' and b, b'). Each measurement gives ±1. For the singlet the correlation between settings at angle difference Δ is E = -cos Δ, and each side alone gives +1 or -1 with probability 1/2. Given E, the two outcomes agree with probability (1 + E)/2.

Step 1: sample the data

For each of the four setting pairs, we generate n pairs of outcomes: Alice's outcome A is a fair coin; Bob's outcome B equals A with probability (1 + E)/2 and -A otherwise. Then the estimate of each correlation is the mean of the product A·B. For n independent trials, each correlation has a standard error

Text
σ_E = √((1 - E²)/n)

and since the four settings use different pairs, the four errors add in quadrature: σ_S = √(Σ σ_E²). A result |S| - 2 of several σ_S is considered a significant violation. Particle physicists usually require 5σ.

Python Sample a singlet Bell test and estimate S with its error

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 2: noise and visibility

A real source is never a perfect singlet. A common simple model is the Werner state

Text
ρ = V |ψ⁻⟩⟨ψ⁻| + (1 - V) I/4

a mixture of the singlet with probability V and completely random noise otherwise. The number V between 0 and 1 is the visibility (the contrast of the correlation fringes). Every correlation is multiplied by V: E = -V cos Δ, so

Text
S = -2√2 · V

and a violation |S| > 2 requires

Text
V > 1/√2 ≈ 0.7071

Below that, the noisy state is entangled for a wide range of V (the Werner state is entangled for V > 1/3), but its correlations can be reproduced by a local hidden-variable model for these CHSH settings. In other words, a state can be entangled yet fail the simplest Bell test.

The statistical question is how many pairs are needed to prove a violation. With |E| = V/√2 for each term, σ_S = 2 √((1 - V²/2)/n), and requiring |S| - 2 ≥ z σ_S gives

Text
n ≥ 4 z² (1 - V²/2) / (2√2 V - 2)²       (pairs per setting combination)
Python Visibility threshold and the number of pairs needed

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers show two lessons. First, source quality matters strongly: as V approaches 0.707 the number of pairs needed grows without bound, since the margin 2√2 V - 2 goes to zero. Second, significance requires statistics. A few hundred pairs may be enough for a perfect source, but a visibility of 0.72 needs millions.

What the simulation leaves out

This sampling was for the ideal setup. Real experiments have extra issues that we deliberately skipped:

  • Detection loophole. If many pairs are lost, and the lost ones are not a fair sample, a local model can fake a violation. Experiments need high enough detection efficiency (somewhere between about 2/3 and 83%, depending on the state and the test used).
  • Locality loophole. The settings must be chosen, and the outcomes recorded, so quickly and at such a distance that no light-speed signal can connect them.
  • Freedom of choice. The setting choices should be independent of the source, which is why experiments use random number generators, and even light from distant stars.
  • Coincidence identification. Pairs have to be matched in time.

Loophole-free experiments in 2015 closed the detection and locality loopholes in one run, and later tests have used distant quasars and human choices for the settings.

Extension: test your own local model

The most instructive follow-up is to try to cheat. Write your own local hidden-variable model, a function that takes a setting and a shared random number and returns ±1 for each side, and measure its S with the code above. You will not get past |S| = 2, but you will see how close different strategies come. The deterministic enumeration in the Bell lesson shows why: no assignment of fixed answers can exceed 2.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. In the simulation, how does the standard error of each estimated correlation scale with the number of pairs n?

    The mean of n independent ±1 products has standard deviation √((1 - E²)/n).
  2. 2. For a Werner state with visibility V, CHSH violation requires:

    S = -2√2 V, and |S| > 2 needs V > 2/(2√2) = 1/√2.
  3. 3. If the visibility is 0.72, why does certifying a violation need very many pairs?

    At V = 0.72 the ideal |S| is about 2.04. The error bar must shrink well below 0.04, requiring huge numbers of pairs.
  4. 4. A noisy entangled state with V = 0.5 fails the CHSH test. Does that prove it is unentangled?

    The Bell test is a sufficient but not a necessary condition for entanglement.

Summary

  • A Bell test samples ±1 outcomes for four setting pairs and estimates S = E(a,b) - E(a,b') + E(a',b) + E(a',b') with a statistical error falling like 1/√n.
  • With a perfect singlet |S| = 2√2; a Werner state with visibility V gives |S| = 2√2 V.
  • A violation needs V > 1/√2, and the number of pairs required diverges as V approaches that threshold.
  • Real experiments must also close the detection, locality and freedom-of-choice loopholes.
  • Entangled states can fail this Bell test; violation is sufficient evidence of entanglement, not a necessary one.

Next: Practice Set: Advanced Quantum Mechanics Problems

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.