Skip to content

Commit

Permalink
Update bell_inequality.py (quantumlib#4998)
Browse files Browse the repository at this point in the history
With the repetitions = 75, it is easy to get higher success rates than 85.3 if you re-run the code. It is therefore needed to mention that it is due to low repetitions and once increased to much higher values we get closer success rates to 85.3.
  • Loading branch information
Hosseinberg authored and 95-martin-orion committed Mar 2, 2022
1 parent a224793 commit 68416cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/bell_inequality.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
-pi/4 followed by controlled-rotation by angle pi/2 in X-basis for
Alice (Bob) based on input x (y).
Note that the higher repetitions, the more accurate the maximum success
probability (closer to 85.3%). Here, repetitions = 75 are chosen to follow
the bit by bit logic.
[1] https://en.wikipedia.org/wiki/Bell%27s_theorem
[2] R. de Wolf. Quantum Computing: Lecture Notes
(arXiv:1907.09415, Section 15.2)
Expand Down

0 comments on commit 68416cb

Please sign in to comment.