{"id":71,"date":"2017-09-07T03:57:48","date_gmt":"2017-09-07T03:57:48","guid":{"rendered":"http:\/\/www.q-crypt.com\/blog\/?page_id=71"},"modified":"2018-11-29T08:16:14","modified_gmt":"2018-11-29T08:16:14","slug":"download-qcheck","status":"publish","type":"page","link":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/","title":{"rendered":"Download qCheck"},"content":{"rendered":"<h4>Download the EPR-Bell experiment software qCheck version 1.3<\/h4>\n<p><a href=\"\/download\/Epr.qcheck.tar.gz\">download version 1.3 in tar.gz format\u00a0<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/download\/Epr.qcheck.zip\">download version 1.3 in zip format<\/a><\/p>\n<p style=\"text-align: right;\"><a href=\"http:\/\/www.q-crypt.com\/index.php\/qcheck-tree\/\">Browse the distibution tree<\/a><\/p>\n<h2>README file<\/h2>\n<p>Qcheck version 1.3 , Linux and Windows VC versions<\/p>\n<p>Qcheck is 4 + 4 small C++ scripts , using floats or integers , which try to emulate a real EPR-Bell experiment.<\/p>\n<p>For Windows, qCheck solution is located in the vs folder. There are 8 projects, 4 for integers and 4 for doubles. To generate the commands, open the solution in Visual Studio Express, accept the Visual version conversion warnings if any and generate the whole solution. New commands will go in the bin folder. Outside the dos folder separator and the dot bat name, all scripts behave exactly the same and use the same syntax, even the shell one.<\/p>\n<p>DOS accept a maximum of 9 arguments. If more is needed, try to change de default value in the script.<\/p>\n<p>For Linux, the scripts have been copied in \/cpp. Go in console mode in the application folder and call the scripts bat.sh or else batdos.bat to produce results files in the data folder.<\/p>\n<p>There are small differences between the Windows and the Linux results, mainly because their variables types conversion implementation.<\/p>\n<p>&nbsp;<\/p>\n<h3>* In the folder cpp\/<\/h3>\n<p>&#8211; <strong>qgenHid.cpp<\/strong><br \/>\nwill generate the hidden and common random variables file<\/p>\n<p><strong>&#8211; qRotat.cpp<\/strong> , to run for each arm<br \/>\nwill generate the random rotations file<\/p>\n<p>&#8211; <strong>qPolarize.cpp<\/strong> , to run for each arm<br \/>\nwill generate the double channel polarizer output file<\/p>\n<p>&#8211; <strong>qStat.cpp <\/strong><\/p>\n<p>will do some sums and averages and output a csv file suitable for excel-like softwares<\/p>\n<p>This set uses float angles , rotations and hidden variables. Results are averaged in integer angles and angles differences.<\/p>\n<p>There is no include file, the scripts are short and easy to check , edit, extend.<\/p>\n<h3>* In the folder cpp-int\/<\/h3>\n<p>The same files but this set uses integer angles , rotations and hidden variables.<\/p>\n<p>After compilation, the integer command names are prefixed by &#8216;i&#8217;<\/p>\n<p>&nbsp;<\/p>\n<h3>Installation<\/h3>\n<p>Check the unix owner of the files.<\/p>\n<p>Hoping your system has a gnu C++ compiler , you can do a<\/p>\n<p>&gt;# make all<\/p>\n<p>Else check the Makefile to suit your environment. There is no need for a particular library.<\/p>\n<h3>Running Commands<\/h3>\n<p>bat.sh will collect your arguments or use the default and call the 4 scripts to output files in the data folder.<br \/>\nYou can also run individual commands.<\/p>\n<h3>* bat.sh syntax<\/h3>\n<p>bash bat.sh argument value &#8230;<br \/>\nif an argument is not specified, the default value is used<br \/>\nex : bash bat.sh largarc 20 section 5 doors 12 comma<\/p>\n<p>All the default values may be overridden.<br \/>\nYou can also edit bat.sh to set your favorite parameters as default values.<\/p>\n<p>V &#8220;&#8221; # float version ; use V i for the integer version or only i<br \/>\nnum_pat 10000000 # number of initial pairs<br \/>\nnum_test 1 # index of the test if you need to keep history<br \/>\narm1 alice # nick names of the arms<br \/>\narm2 bob<br \/>\nlargarc 16 # ring size in degrees around the angle<br \/>\nsection 7 # number of sections in this ring<br \/>\ndoors 20 # number of doors of the potential<br \/>\ncomma &#8220;comma&#8221; # use comma as decimal separator in the excel-like csv<br \/>\n# to reverse the comma default , use nocomma alone<br \/>\nR &#8220;4&#8221; # base of the restriction to 4 angles , ignore for all<\/p>\n<p>** for a copy\/paste\/edit :<br \/>\ninteger\u00a0 :<br \/>\nbash bat.sh V i num_pat 10000000 num_test 1 arm1 alice arm2 bob largarc 16 section 7 doors 20<\/p>\n<p>float :<br \/>\nbash bat.sh num_pat 10000000 num_test 1 arm1 alice arm2 bob largarc 16 section 7 doors 20<\/p>\n<p>&nbsp;<\/p>\n<h4>* qgenHid syntax<\/h4>\n<p>.\/bin\/qgenHid num_pat outfile<br \/>\nnum_pat , number of initial pairs<br \/>\noutfile , name of the output file<\/p>\n<p>5000000 hidden float random variables in data\/hidden.test1<br \/>\n.\/bin\/qgenHid 5000000 data\/hidden.test1<\/p>\n<p>3500000 hidden integer random variables in data\/hidden.test1<br \/>\n.\/bin\/iqgenHid 5000000 data\/hidden.test1<\/p>\n<h4>* qRotat syntax<\/h4>\n<p>This command must be run for Alice and then for Bob<br \/>\n.\/bin\/qRotat num_pat outfile<br \/>\nnum_pat , number of initial pairs<br \/>\noutfile , name of the output file<\/p>\n<p>5000000 float random rotations in r.alice.test1<br \/>\n.\/bin\/qRotat 5000000 data\/r.alice.test1<\/p>\n<p>5000000 float random rotations in r.bob.test1<br \/>\n.\/bin\/qRotat 5000000 data\/r.bob.test1<\/p>\n<p>3500000 integer random rotations in r.bob.test1<br \/>\n.\/bin\/iqRotat 3500000 data\/r.bob.test1<br \/>\netc<\/p>\n<h4>* qPolarize syntax<\/h4>\n<p>.\/bin\/qPolarize largarc section doors hiddenvarfile rotationfile outfile<br \/>\nhiddenvarfile , the hidden file shared by the 2 polarizers<br \/>\nrotationfile , the rotation file<br \/>\noutfile , name of the output file<br \/>\nlargarc section doors as decribed above<\/p>\n<p>.\/bin\/qPolarize 16 5 12 data\/hidden.test1 data\/r.bob.test1 data\/pol.bob.test1<\/p>\n<p>&nbsp;<\/p>\n<h4>* qStat syntax<\/h4>\n<p>.\/bin\/qStat alice_polarizer bob_polarizer outfile<br \/>\nalice_polarizer , the previous output of the Alice polarizer<br \/>\nbob_polarizer , the previous output of the Bob polarizer<br \/>\noutfile , name of the output file<\/p>\n<p>.\/bin\/qStat data\/pol.alice.test1 data\/pol.bob.test1 data\/alice-bob.test.result<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Download the EPR-Bell experiment software qCheck version 1.3 download version 1.3 in tar.gz format\u00a0 &nbsp; download version 1.3 in zip format Browse the distibution tree <a class=\"mh-excerpt-more\" href=\"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/\" title=\"Download qCheck\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-71","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Download qCheck - q-Crypt<\/title>\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\/download-qcheck\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Download qCheck - q-Crypt\" \/>\n<meta property=\"og:description\" content=\"Download the EPR-Bell experiment software qCheck version 1.3 download version 1.3 in tar.gz format\u00a0 &nbsp; download version 1.3 in zip format Browse the distibution tree [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/\" \/>\n<meta property=\"og:site_name\" content=\"q-Crypt\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-29T08:16:14+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=\"4 minutes\" \/>\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\\\/download-qcheck\\\/\",\"url\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/download-qcheck\\\/\",\"name\":\"Download qCheck - q-Crypt\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/#website\"},\"datePublished\":\"2017-09-07T03:57:48+00:00\",\"dateModified\":\"2018-11-29T08:16:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/download-qcheck\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/download-qcheck\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.q-crypt.com\\\/index.php\\\/download-qcheck\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.q-crypt.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Download qCheck\"}]},{\"@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":"Download qCheck - q-Crypt","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\/download-qcheck\/","og_locale":"en_US","og_type":"article","og_title":"Download qCheck - q-Crypt","og_description":"Download the EPR-Bell experiment software qCheck version 1.3 download version 1.3 in tar.gz format\u00a0 &nbsp; download version 1.3 in zip format Browse the distibution tree [...]","og_url":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/","og_site_name":"q-Crypt","article_modified_time":"2018-11-29T08:16:14+00:00","twitter_card":"summary_large_image","twitter_site":"@igael123","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/","url":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/","name":"Download qCheck - q-Crypt","isPartOf":{"@id":"https:\/\/www.q-crypt.com\/#website"},"datePublished":"2017-09-07T03:57:48+00:00","dateModified":"2018-11-29T08:16:14+00:00","breadcrumb":{"@id":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.q-crypt.com\/index.php\/download-qcheck\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.q-crypt.com\/"},{"@type":"ListItem","position":2,"name":"Download qCheck"}]},{"@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\/71","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=71"}],"version-history":[{"count":0,"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/pages\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.q-crypt.com\/index.php\/wp-json\/wp\/v2\/media?parent=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}