You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} if(H < V) { // More photons in the V mode, return 1
return 1;
} else {
/* due to entanglement, the same number of photons are in both modes however
The randomness is in which mode will enter which beamsplitter - there is no way to know or influence which one. It is the perfect 50/50 coin toss as it were.
the h and v modes are in a state of superposition until 1 is detected.
Even though we are not detecting single photons, we can run the function recursively until a random bit can be generated.