Skip to content

Commit a2a27d8

Browse files
author
Axel Dahlberg
committed
Added back the old html files for now
1 parent 21da199 commit a2a27d8

127 files changed

Lines changed: 45272 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/html/CLib.html

Lines changed: 275 additions & 0 deletions
Large diffs are not rendered by default.

docs/html/CQCInterface.html

Lines changed: 710 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
5+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
6+
<head>
7+
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<title>Classical Communication &#8212; SimulaQron 3.0.4 documentation</title>
10+
<link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
11+
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
12+
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
13+
<script type="text/javascript" src="_static/jquery.js"></script>
14+
<script type="text/javascript" src="_static/underscore.js"></script>
15+
<script type="text/javascript" src="_static/doctools.js"></script>
16+
<script async="async" type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
17+
<link rel="index" title="Index" href="genindex.html" />
18+
<link rel="search" title="Search" href="search.html" />
19+
<link rel="next" title="Useful commands" href="UsefulCommands.html" />
20+
<link rel="prev" title="Using the Python library" href="PythonLib.html" />
21+
</head><body>
22+
<div class="related" role="navigation" aria-label="related navigation">
23+
<h3>Navigation</h3>
24+
<ul>
25+
<li class="right" style="margin-right: 10px">
26+
<a href="genindex.html" title="General Index"
27+
accesskey="I">index</a></li>
28+
<li class="right" >
29+
<a href="py-modindex.html" title="Python Module Index"
30+
>modules</a> |</li>
31+
<li class="right" >
32+
<a href="UsefulCommands.html" title="Useful commands"
33+
accesskey="N">next</a> |</li>
34+
<li class="right" >
35+
<a href="PythonLib.html" title="Using the Python library"
36+
accesskey="P">previous</a> |</li>
37+
<li class="nav-item nav-item-0"><a href="index.html">SimulaQron 3.0.4 documentation</a> &#187;</li>
38+
<li class="nav-item nav-item-1"><a href="PythonLib.html" accesskey="U">Using the Python library</a> &#187;</li>
39+
</ul>
40+
</div>
41+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
42+
<div class="sphinxsidebarwrapper">
43+
<h4>Previous topic</h4>
44+
<p class="topless"><a href="PythonLib.html"
45+
title="previous chapter">Using the Python library</a></p>
46+
<h4>Next topic</h4>
47+
<p class="topless"><a href="UsefulCommands.html"
48+
title="next chapter">Useful commands</a></p>
49+
<div role="note" aria-label="source link">
50+
<h3>This Page</h3>
51+
<ul class="this-page-menu">
52+
<li><a href="_sources/ClassicalCommunication.rst.txt"
53+
rel="nofollow">Show Source</a></li>
54+
</ul>
55+
</div>
56+
<div id="searchbox" style="display: none" role="search">
57+
<h3>Quick search</h3>
58+
<div class="searchformwrapper">
59+
<form class="search" action="search.html" method="get">
60+
<input type="text" name="q" />
61+
<input type="submit" value="Go" />
62+
<input type="hidden" name="check_keywords" value="yes" />
63+
<input type="hidden" name="area" value="default" />
64+
</form>
65+
</div>
66+
</div>
67+
<script type="text/javascript">$('#searchbox').show(0);</script>
68+
</div>
69+
</div>
70+
71+
<div class="document">
72+
<div class="documentwrapper">
73+
<div class="bodywrapper">
74+
<div class="body" role="main">
75+
76+
<div class="section" id="classical-communication">
77+
<h1>Classical Communication<a class="headerlink" href="#classical-communication" title="Permalink to this headline"></a></h1>
78+
<p>In the figure below there is a schematic overview of how the communication is realized between the nodes in a network simulated by SimulaQron.
79+
In this setup there are three nodes: Alice, Bob and Eve.
80+
Firstly, the applications in each node communicate with a CQC (classical-quantum-combiner) server that in turn talk to a SimulaQron server.
81+
CQC is an interface between the classical control information in the network and the hardware, here simulated by SimulaQron.
82+
The communication between the nodes needed to simulate the quantum hardware is handled by the SimulaQron servers, denoted SimulaQron internal communication in the figure.
83+
Note that such communication is needed since entanglement cannot be simulated locally.
84+
SimulaQron comes with a Python library that handles all the communication between the application and the CQC server.
85+
In this library, the object <code class="code docutils literal notranslate"><span class="pre">CQCConnection</span></code> takes care of this communication.
86+
Any operation applied to the qubits in this Python library is translated to a message sent to the CQC server, by the <code class="code docutils literal notranslate"><span class="pre">CQCConnection</span></code>.</p>
87+
<p>On top of the quantum network there will be classical communication between the applications, denoted Application communication in the figure.
88+
This communication include for example the case where Alice can sends Bob an encoded classical message or a measurement outcome.
89+
Such communication would also be present in a real implementation of a quantum network.
90+
There is a built-in feature in the Python library that realize this functionality, which have been developed for ease of use for someone not familiar with a client/server setup.</p>
91+
<div class="admonition note">
92+
<p class="first admonition-title">Note</p>
93+
<p class="last">To have classical communication between the applications, one is not forced to use the built-in functionality realized by the <code class="docutils literal notranslate"><span class="pre">CQCConnection</span></code>. You can just as well setup your own client/server communication using the method of your preference. More information and a template for setting up a client/server interaction can be found in <a class="reference internal" href="NativeModeTemplate.html"><span class="doc">Template for programming in native mode</span></a>:.</p>
94+
</div>
95+
<p>The built-in classical communication of the Python library is handled by the object <code class="code docutils literal notranslate"><span class="pre">CQCConnection</span></code>.
96+
Let assume that Alice wants to send a classical message to Bob and that Alice and Bob are instances of <code class="code docutils literal notranslate"><span class="pre">CQCConnection</span></code> at the respective nodes.
97+
This can be done by simply executing <code class="code docutils literal notranslate"><span class="pre">Alice.sendClassical(&quot;Bob&quot;,</span> <span class="pre">msg)</span></code>, where <code class="code docutils literal notranslate"><span class="pre">msg</span></code> is the message to be sent from Alice to Bob.
98+
The method <code class="code docutils literal notranslate"><span class="pre">sendClassical</span></code> tries to open a socket connection to Bob and to sent the message.
99+
Note that if this method is never called, a socket connection is never opened.
100+
The socket connection between Alice and Bob are closed after the message is sent.
101+
This classical communication is thus not built for efficiency but for easy of use for someone not familiar with client/server setup.</p>
102+
<div class="admonition note">
103+
<p class="first admonition-title">Note</p>
104+
<p class="last">CQC and the python library does not require SimulaQron to function. However if you want to use the built-in classical communication you need SimulaQron installed.</p>
105+
</div>
106+
<a class="reference internal image-reference" href="_images/servers.png"><img alt="Programming SimulaQrons Interfaces" class="align-center" src="_images/servers.png" style="width: 600px;" /></a>
107+
</div>
108+
109+
110+
</div>
111+
</div>
112+
</div>
113+
<div class="clearer"></div>
114+
</div>
115+
<div class="related" role="navigation" aria-label="related navigation">
116+
<h3>Navigation</h3>
117+
<ul>
118+
<li class="right" style="margin-right: 10px">
119+
<a href="genindex.html" title="General Index"
120+
>index</a></li>
121+
<li class="right" >
122+
<a href="py-modindex.html" title="Python Module Index"
123+
>modules</a> |</li>
124+
<li class="right" >
125+
<a href="UsefulCommands.html" title="Useful commands"
126+
>next</a> |</li>
127+
<li class="right" >
128+
<a href="PythonLib.html" title="Using the Python library"
129+
>previous</a> |</li>
130+
<li class="nav-item nav-item-0"><a href="index.html">SimulaQron 3.0.4 documentation</a> &#187;</li>
131+
<li class="nav-item nav-item-1"><a href="PythonLib.html" >Using the Python library</a> &#187;</li>
132+
</ul>
133+
</div>
134+
<div class="footer" role="contentinfo">
135+
&#169; Copyright 2017, Stephanie Wehner and Axel Dahlberg.
136+
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.1.
137+
</div>
138+
</body>
139+
</html>

0 commit comments

Comments
 (0)