{"id":95,"date":"2017-09-08T15:59:36","date_gmt":"2017-09-08T15:59:36","guid":{"rendered":"http:\/\/www.q-crypt.com\/blog\/?page_id=95"},"modified":"2019-02-10T17:16:06","modified_gmt":"2019-02-10T17:16:06","slug":"javascript-implementation","status":"publish","type":"page","link":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/","title":{"rendered":"Javascript Implementation"},"content":{"rendered":"<p>This lightened version is fast enough to run online simulation of classical EPR-Bell experiments in a brower. <a href=\"\/lese\/simulation_EPR.html\">Other distributions<\/a> require clouds and days. <a href=\"\/index.php\/download-qcheck\/\"> C++ check is here <\/a>.<\/p>\n<style type=\"text\/css\"> input[type=number] {  width: 60px;  font: 16px Helvetica, sans-serif;  padding: 0 0 0 0;}button {  font: 14px Helvetica, sans-serif;  padding: 8px 0 0 0;  text-align: center; background-color:#286228; color:#0BF50B}<\/style>\n<p><script type=\"text\/javascript\">function loading(){lemaindeC(1000000000,5,8,22.5);} window.onload=loading;<\/script><script src=\"\/sprintffromphpgroup.js\" ><\/script><script src=\"\/00qrnd7mark5210.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.common.core.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.common.dynamic.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.common.key.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.drawing.rect.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.line.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.pie.js\" ><\/script><script src=\"\/uh\/libraries\/RGraph.bar.js\" ><\/script><\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"4\" align=\"center\">\n<div style=\"border: 1px solid black; width: 678px; height: 464px;\"><canvas id=\"graph1\" width=\"676\" height=\"462\">[No canvas support]<\/canvas><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td id=\"thestarter\"><\/td>\n<td>N= <input id=\"ID_N\" name=\"ID_N\" type=\"number\" value=\"5\" onChange=\"doReset()\" \/><\/td>\n<td>M= <input id=\"ID_M\" name=\"ID_M\" step=\"0.25\" type=\"number\" value=\"6.25\" onChange=\"doReset()\" \/><\/td>\n<td>h amplitude = <input id=\"ww\" name=\"ww\" type=\"number\" value=\"90\" onChange=\"doReset()\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Click on <span style=\"color: #008000;\">Compute<\/span> when you are ready. Datas will come below.\u00a0To see the versality of this family of distributions, try N=5 to 9, notice that M grows faster than N. Optimal couples (n,m) are around (8,30),(7,21),(6,10),(5,6) . See the effects of taking h=4 , h=16, h=45, h=90, h=180 and h=360.<br \/>\nThere are also the 3 arm answers curves by angle ( +, &#8211; , 0 ). The + outcome is computed only with the detections to compare with the cos\u00b2 Malus law. To compare with +, the &#8211; is scaled too. The detection rates by angles difference are in the red\/green small charts.<br \/>\nYou can also browse <a href=\"\/lese\/simulation_EPR.html\">other simulations harder to compute with a navigator<\/a>.<\/p>\n<div id=\"titre_3_Anim\"><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>This lightened version is fast enough to run online simulation of classical EPR-Bell experiments in a brower. Other distributions require clouds and days. C++ check <a class=\"mh-excerpt-more\" href=\"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/\" title=\"Javascript Implementation\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-full.php","meta":{"footnotes":""},"class_list":["post-95","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Javascript Implementation - q-Crypt<\/title>\n<meta name=\"description\" content=\"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript Implementation - q-Crypt\" \/>\n<meta property=\"og:description\" content=\"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/\" \/>\n<meta property=\"og:site_name\" content=\"q-Crypt\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-10T17:16:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@igael123\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/javascript-implementation\\\/\",\"url\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/javascript-implementation\\\/\",\"name\":\"Javascript Implementation - q-Crypt\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/#website\"},\"datePublished\":\"2017-09-08T15:59:36+00:00\",\"dateModified\":\"2019-02-10T17:16:06+00:00\",\"description\":\"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/javascript-implementation\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/javascript-implementation\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/javascript-implementation\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.q-crypt.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Javascript Implementation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/#website\",\"url\":\"https:\\\/\\\/www.q-crypt.com\\\/\",\"name\":\"q-Crypt project\",\"description\":\"checking quantum computing investments\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.q-crypt.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript Implementation - q-Crypt","description":"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/","og_locale":"en_US","og_type":"article","og_title":"Javascript Implementation - q-Crypt","og_description":"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.","og_url":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/","og_site_name":"q-Crypt","article_modified_time":"2019-02-10T17:16:06+00:00","twitter_card":"summary_large_image","twitter_site":"@igael123","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/","url":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/","name":"Javascript Implementation - q-Crypt","isPartOf":{"@id":"https:\/\/www.q-crypt.com\/#website"},"datePublished":"2017-09-08T15:59:36+00:00","dateModified":"2019-02-10T17:16:06+00:00","description":"online simulation of classical EPR-Bell experiments with 3 parameters. It is the lite and fast version in javacript for browsers.","breadcrumb":{"@id":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.q-crypt.com\/index.php\/javascript-implementation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.q-crypt.com\/"},{"@type":"ListItem","position":2,"name":"Javascript Implementation"}]},{"@type":"WebSite","@id":"https:\/\/www.q-crypt.com\/#website","url":"https:\/\/www.q-crypt.com\/","name":"q-Crypt project","description":"checking quantum computing investments","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.q-crypt.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/pages\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":1,"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/pages\/95\/revisions"}],"predecessor-version":[{"id":923,"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/pages\/95\/revisions\/923"}],"wp:attachment":[{"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/media?parent=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}