Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Programming Guide — 8Q Processor 2020 documentation</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="8Q Processor 2020 documentation" href="index.html"/>
<link rel="next" title="Board Information" href="board.html"/>
<link rel="prev" title="Architecture" href="architecture.html"/>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> 8Q Processor
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="architecture.html">Architecture</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Programming Guide</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#architecture-incompatibility">Architecture Incompatibility</a></li>
<li class="toctree-l2"><a class="reference internal" href="#q-pre-processing-why">8Q Pre-processing: Why?</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="board.html">Board Information</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">8Q Processor</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li>Programming Guide</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/programming.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="programming-guide">
<h1>Programming Guide<a class="headerlink" href="#programming-guide" title="Permalink to this headline">¶</a></h1>
<p>The 8Q Programming Guide is designed to assist in the transition from digital only to digital/quantum programming.</p>
<div class="section" id="architecture-incompatibility">
<h2>Architecture Incompatibility<a class="headerlink" href="#architecture-incompatibility" title="Permalink to this headline">¶</a></h2>
<p>Thanks to modern programming languages, we are fairly well spoiled when it comes to things like cross-platform compatibility, unfortunately with quantum computing, this isn’t the case. Every quantum processor manufacturer has their own personalized architecture. This has long been a source of pain in the digital world, and only recently have we begun moving towards universally compatible hardware, but unfortunately due to the differences in how bosonic, photonic, atomic, ionic, etc. quantum processors work, each needs its’ own specialized instruction set to ensure smooth operation. For this reason we tend to make abstractions, from machine code to assembly, assembly to compiler, compiler to interpreter. Currently there are a few different assembly languages competing for adoption, but we’ve designed our first 8 qubit quantum processor with an eye towards a slightly reduced version of OpenQASM.</p>
</div>
<div class="section" id="q-pre-processing-why">
<h2>8Q Pre-processing: Why?<a class="headerlink" href="#q-pre-processing-why" title="Permalink to this headline">¶</a></h2>
<p>8Q is different from the non-quantum processors you may be used to working with in that we use probabilistic gates, the biggest drawback is each gate introduces a possibility of losing a qubit. The way we get around this is by running a given program multiple times, collecting the results, and then testing the results via a classical processor to find the answer. To that end, the processor has a built-in pre-processor which calculates the success rate of a given algorithm and determine the time required to generate a correct answer, this pre-processor can be enabled/disabled as needed by setting the pre-processor flag to 1.</p>
</div>
</div>
</div>
<div class="articleComments">
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="board.html" class="btn btn-neutral float-right" title="Board Information" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="architecture.html" class="btn btn-neutral" title="Architecture" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2020, Noah G. Wood.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'2020',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>2486cbb12This file is pinned to the selected release. Download the original to open it in your design tool.