Skip to content

tankersleyj/bell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bell: CHSH tests of Bell's theorem with local hidden variables in JavaScript

This computer experiment violates Bell's Inequalities with Realistic and Karma Peny math.

For information on the computer experiment in related paper.

Code is compatible with modern browsers, generating 2,400 particle pairs per minute, and results are repeatable using random seeds.

A choice of 3 PRNGs (Pseudo Random Number Generators) are provided, see Set Random Seeds below.

Documentation

Instructions

Run code on any device (phone, tablet, netbook, laptop or desktop) with a modern browser (for example: Google Chrome, Apple Safari or Mozilla Firefox)

Select Mode

  • Quanum Theory
  • Karma Peny (default, passes CHSH & Eberhart tests)
  • Realistic
  • Perfect
  • Real Perfect
  • Custom: user defined settings

Quantum Theory and Quantum Anti-Correlated modes model particles with no polarization angles until measured, then particles communicate and correlate polarizations. All other modes are Non-Quantum Theory models where particles do not communicate and are created with opposite hidden polarizaton angles. See paper for calculation details.

Set Random Seeds Source, Polarizer A, Polarizer B

  • 0: Math.random (no seed)
  • integer: 31 bit Lehmer LCG (31 bit non-zero integer seed)
  • decimal: 53 bit PCG (64 bit decimal seed) recommended

Set Rate

  • slow: 15 photon pairs per minute
  • medium: 60 photon pairs per minute
  • fast: 2400 photon pairs per minute recommended

Allow the experiment to run for at least a few minutes at fast rate.

An explanation of experiment theory, setup and expected results may be found in related paper

Project Status

Development Priorities.

  • Completed Features:

    • Violations: Violated Bell's in-equalities with local hidden variables
    • Quality: S values of 2.83 achieved in multiple modes
    • Customize: Select Calculation mix and Polarizer Angles
  • Wanted Features:

    • Validation: Validate Eberhard photon loss calculations
    • Quality: Violation with photon loss below 20%
  • Possible Enhancements

    • R: Simplified numeric only translation to R for academic use
    • 3D: Visual simulation in 2.5D or 3D

Caveats and Attributions

Significant contributions and/or guidance from Karma Peny, Chantal Roth and Richard Gill.

53-bit PCG PRNG (https://github.com/thomcc/pcg-random) Copyright 2014 Thom Chiovoloni, under MIT license

License

The MIT License (MIT)

Copyright (c) 2019-2020 James Tankersley Jr

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Non-QM Tests of Bell's Inequalities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages