Esail wrote:Here is a spec for a program calculating conditional probabilities:
HV model for the singlet state
- Code: Select all
Program for Spin1:
1. Theory
• Boundary conditions: photon pairs 0 ° / 90 ° and 90 ° / 0 ° in equal shares.
• Photons A and B of a pair have the same property Lambda
• Set polarizer PA to alpha and polarizer PB to beta
• (alpha and beta between 0 and 180°)
• Polarizer A selects A-photons with p-state alpha
• This selection means a selection of the associated B-photons in p-state alpha+pi/2
• Polarizer B selects B-photons with p-state and polarization beta.
2. CountA := countB := 0
3. n:=1000
4. deltaA := beta – alpha -pi/2
photon pair 0°/90°
5. deltaB := beta – pi/2
6. For i= 0,n,1
7. Lambda := i/n
8. Call Hit(ResultB,deltaB,lambda,countB,1)
9. If ResultB=1 then
10. Call Hit(ResultA,deltaA,lambda,countA,1)
11. End loop 6
photon pair 90°/0°
12. deltaB := beta
13. For i= 0,n,1
14. Lambda := i/n
15. Call Hit(ResultB,deltaB,lambda,countB,-1)
16. If ResultB=1 then
17. Call Hit(ResultA,deltaA,lambda,countA,-1)
18. End Loop 13
19. Conditional Probability P = CountA / CountB
Program for Spin1/2:
20. Theory
• Boundary conditions:
particle pairs with spin 0 ° / 180 ° and 180 ° / 0 ° in equal shares.
• Particles A and B of a pair have the same property Lambda
• Set SGA (Stern Gerlach A) to alpha and SGB to beta
• (alpha and beta between 0 and 180°)
• SGA selects A-particles with p-state alpha
• This selection means a selection of the associated B-particles in p-state alpha+pi
• SGB selects B-particles with p-state and spin beta.
21. CountA := CountB := 0
22. n:=1000
23. deltaA := beta/2 – alpha/2 -pi/2
particle pair spin 0°/180°
24. deltaB := beta/2 - pi/2
25. For i= 0,n,1
26. Lambda := i/n
27. Call Hit(ResultB,deltaB,lambda,countB,1)
28. If ResultB=1 then
29. Call Hit(ResultA,deltaA,lambda,countA,1)
30. End loop 25
particle pair spin 180°/0°
31. deltaB := beta/2
32. For i= 0,n,1
33. Lambda := i/n
34. Call Hit(ResultB,deltaB,lambda,countB,-1)
35. If ResultB=1 then
36. Call Hit(ResultA,deltaA,lambda,countA,-1)
37. End Loop 32
38. Conditional Probability P = CountA / CountB
a. Subroutine: Hit(Result,delta,lambda,count,ind)
b. Result=-1
c. If delta <0 then delta = delta+pi
d. If ind=1 then
e. If 0<delta<pi/2 or pi<delta<3/2pi then
f. If lambda <cos2 (delta) Then set Result := 1 and count := count + 1
g. Exit
h. Else
i. If lambda >sin2 (delta) Then set Result := 1 and count := count + 1
j. Exit
k. If ind= -1 then
l. If 0<delta<pi/2 or pi<delta<3/2pi then
m. If lambda > cos2 (delta) Then set Result := 1 and count := count + 1
n. Exit
o. Else
p. If lambda <sin2 (delta) Then set Result := 1 and count := count + 1
q. Exit
r. end
That doesn't look exactly like what you have in your paper. Lambda is not really random in the code above.
.