- #1
- 7
- 0
Brian Greene describe an experiment in his book "The fabric of the cosmos" pretending to illustrate the Bell test experiment. I spent hours trying to understand it until I decided to write a small simulation to finally realize that the experiment is completely flawed !
After doing some browsing, I also realized that few people faced similar frustration so I decided to share my few lines of code (using python 3.x).
I won't try to describe the experiment itself, look at the code, I believe it will be clearer than any attempt to explain it using words.
The result is:
I didn't do the math but clearly the probability of agreeing is similar in the two experiences: 2/3. The book incorrectly claims that the probability should be smaller in the case of a "quantic treatment".
I have no doubt that the proper Bell test experiment works and indeed shows that there is "something linking the two entangled particles".
I just wish that the illustration given in the book was correct !
btw, if anybody fancy giving an updated version of the code which actually illustrate the Bell test experiment, that would be fantastic !
After doing some browsing, I also realized that few people faced similar frustration so I decided to share my few lines of code (using python 3.x).
I won't try to describe the experiment itself, look at the code, I believe it will be clearer than any attempt to explain it using words.
The result is:
Code:
deterministic agreement=66.68952%
quantic agreement=66.668%
I didn't do the math but clearly the probability of agreeing is similar in the two experiences: 2/3. The book incorrectly claims that the probability should be smaller in the case of a "quantic treatment".
I have no doubt that the proper Bell test experiment works and indeed shows that there is "something linking the two entangled particles".
I just wish that the illustration given in the book was correct !
btw, if anybody fancy giving an updated version of the code which actually illustrate the Bell test experiment, that would be fantastic !
Code:
from random import *
# In this simplified experiemnt, a "particle" is describe by three bits, for instance: "001"
# In classical physics, three question can be asked to a particle: in the case of "001", the answer to the first
# and second question will be "0" and the answer to the third question will be "1"
# number of simulation
nbTest=10000000
# deterministic explanation of the experiment
nbSame=0
for particleId in range(0,nbTest):
# mulder and scully ask random question to the particle
mulder_question=randint(0,2)
scully_question=randint(0,2)
# classical version: the state is pre-determined
particle_state=[randint(0,1),randint(0,1),randint(0,1)]
mulder_observation=particle_state[mulder_question]
scully_observation=particle_state[scully_question]
# do they agree ?
if mulder_observation==scully_observation:
nbSame+=1
print("deterministic agreement={}%".format(100*nbSame/nbTest))
# quantic explanation of the experiment
nbSame=0
for particleId in range(0,nbTest):
# mulder and scully ask random question to the particle
mulder_question=randint(0,2)
scully_question=randint(0,2)
# the particle state is the same if "the question asked to the particle" is the same
if mulder_question==scully_question:
same_observation=randint(0,1)
mulder_observation=same_observation
scully_observation=same_observation
# otherwise, the particle state is random
else:
mulder_observation=randint(0,1)
scully_observation=randint(0,1)
# do they agree ?
if mulder_observation==scully_observation:
nbSame+=1
print("quantic agreement={}%".format(100*nbSame/nbTest))