diff --git a/.gitignore b/.gitignore
index 36b41bdb..0f9152e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,21 +1,21 @@
.idea/*
protocol/__pycache__/__init__.cpython-37.pyc
protocol/__pycache__/protocols.cpython-37.pyc
-components/__pycache__/
+qunetsim/components/__pycache__/
tests/__pycache__/*
-backends/__pycache__/*
-objects/__pycache__/*
+qunetsim/backends/__pycache__/*
+qunetsim/objects/__pycache__/*
**/__pycache__/
build_docs.sh
venv/
venv2/
-objects/__pycache__/
+qunetsim/objects/__pycache__/
.project
.cproject
-backends/__pycache__/
-components/__init__.pyc
+qunetsim/backends/__pycache__/
+qunetsim/components/__init__.pyc
tests/backends/__pycache__/
integration_tests/__pycache__/test_multi_hop.cpython-36.pyc
integration_tests/__pycache__/test_single_hop.cpython-36.pyc
diff --git a/components/__init__.py b/components/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/docs/_build/.buildinfo b/docs/_build/.buildinfo
index 454f074c..35b22926 100644
--- a/docs/_build/.buildinfo
+++ b/docs/_build/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 653c825270597944af704d1dc16a3da2
+config: 5906c28230ec10a5e65a06a5cad72534
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/_build/.doctrees/backends.doctree b/docs/_build/.doctrees/backends.doctree
index 263256b9..f2ea90a5 100644
Binary files a/docs/_build/.doctrees/backends.doctree and b/docs/_build/.doctrees/backends.doctree differ
diff --git a/docs/_build/.doctrees/components.doctree b/docs/_build/.doctrees/components.doctree
index 3b5c0bd7..b9f064ea 100644
Binary files a/docs/_build/.doctrees/components.doctree and b/docs/_build/.doctrees/components.doctree differ
diff --git a/docs/_build/.doctrees/components/host.doctree b/docs/_build/.doctrees/components/host.doctree
index 7de361dd..70f40e11 100644
Binary files a/docs/_build/.doctrees/components/host.doctree and b/docs/_build/.doctrees/components/host.doctree differ
diff --git a/docs/_build/.doctrees/components/network.doctree b/docs/_build/.doctrees/components/network.doctree
index 434d051b..3da71ea5 100644
Binary files a/docs/_build/.doctrees/components/network.doctree and b/docs/_build/.doctrees/components/network.doctree differ
diff --git a/docs/_build/.doctrees/components/protocols.doctree b/docs/_build/.doctrees/components/protocols.doctree
index e467e110..15d9f003 100644
Binary files a/docs/_build/.doctrees/components/protocols.doctree and b/docs/_build/.doctrees/components/protocols.doctree differ
diff --git a/docs/_build/.doctrees/design.doctree b/docs/_build/.doctrees/design.doctree
index e0150116..673fe0c5 100644
Binary files a/docs/_build/.doctrees/design.doctree and b/docs/_build/.doctrees/design.doctree differ
diff --git a/docs/_build/.doctrees/environment.pickle b/docs/_build/.doctrees/environment.pickle
index 87f3e576..7d88de16 100644
Binary files a/docs/_build/.doctrees/environment.pickle and b/docs/_build/.doctrees/environment.pickle differ
diff --git a/docs/_build/.doctrees/examples.doctree b/docs/_build/.doctrees/examples.doctree
index 76a2ae7b..5e869e77 100644
Binary files a/docs/_build/.doctrees/examples.doctree and b/docs/_build/.doctrees/examples.doctree differ
diff --git a/docs/_build/.doctrees/examples/QKD.doctree b/docs/_build/.doctrees/examples/QKD.doctree
index 99b2ba4f..17990dcf 100644
Binary files a/docs/_build/.doctrees/examples/QKD.doctree and b/docs/_build/.doctrees/examples/QKD.doctree differ
diff --git a/docs/_build/.doctrees/examples/anonymous_transfer.doctree b/docs/_build/.doctrees/examples/anonymous_transfer.doctree
index 006b0443..d86f1e0d 100644
Binary files a/docs/_build/.doctrees/examples/anonymous_transfer.doctree and b/docs/_build/.doctrees/examples/anonymous_transfer.doctree differ
diff --git a/docs/_build/.doctrees/examples/chsh.doctree b/docs/_build/.doctrees/examples/chsh.doctree
index 72fcd714..f39f8ef2 100644
Binary files a/docs/_build/.doctrees/examples/chsh.doctree and b/docs/_build/.doctrees/examples/chsh.doctree differ
diff --git a/docs/_build/.doctrees/examples/entanglement_routing.doctree b/docs/_build/.doctrees/examples/entanglement_routing.doctree
index c609c4f9..03db3fb8 100644
Binary files a/docs/_build/.doctrees/examples/entanglement_routing.doctree and b/docs/_build/.doctrees/examples/entanglement_routing.doctree differ
diff --git a/docs/_build/.doctrees/examples/packet_sniffing.doctree b/docs/_build/.doctrees/examples/packet_sniffing.doctree
index 1adf07cf..4a95c708 100644
Binary files a/docs/_build/.doctrees/examples/packet_sniffing.doctree and b/docs/_build/.doctrees/examples/packet_sniffing.doctree differ
diff --git a/docs/_build/.doctrees/examples/quantum_coin_flipping.doctree b/docs/_build/.doctrees/examples/quantum_coin_flipping.doctree
index fb7dcd03..64e2f0c9 100644
Binary files a/docs/_build/.doctrees/examples/quantum_coin_flipping.doctree and b/docs/_build/.doctrees/examples/quantum_coin_flipping.doctree differ
diff --git a/docs/_build/.doctrees/examples/quantum_money.doctree b/docs/_build/.doctrees/examples/quantum_money.doctree
index afed6873..cda8a8fa 100644
Binary files a/docs/_build/.doctrees/examples/quantum_money.doctree and b/docs/_build/.doctrees/examples/quantum_money.doctree differ
diff --git a/docs/_build/.doctrees/examples/send_data.doctree b/docs/_build/.doctrees/examples/send_data.doctree
index 1632744c..9dd184f6 100644
Binary files a/docs/_build/.doctrees/examples/send_data.doctree and b/docs/_build/.doctrees/examples/send_data.doctree differ
diff --git a/docs/_build/.doctrees/examples/send_epr.doctree b/docs/_build/.doctrees/examples/send_epr.doctree
index c3a70ddf..35f1bb0c 100644
Binary files a/docs/_build/.doctrees/examples/send_epr.doctree and b/docs/_build/.doctrees/examples/send_epr.doctree differ
diff --git a/docs/_build/.doctrees/index.doctree b/docs/_build/.doctrees/index.doctree
index fc33b613..002d8a7c 100644
Binary files a/docs/_build/.doctrees/index.doctree and b/docs/_build/.doctrees/index.doctree differ
diff --git a/docs/_build/.doctrees/install.doctree b/docs/_build/.doctrees/install.doctree
index a9e0762f..8a32a9d6 100644
Binary files a/docs/_build/.doctrees/install.doctree and b/docs/_build/.doctrees/install.doctree differ
diff --git a/docs/_build/.doctrees/install/linux_mac.doctree b/docs/_build/.doctrees/install/linux_mac.doctree
index 7f2fd59a..3c483ed8 100644
Binary files a/docs/_build/.doctrees/install/linux_mac.doctree and b/docs/_build/.doctrees/install/linux_mac.doctree differ
diff --git a/docs/_build/.doctrees/install/windows.doctree b/docs/_build/.doctrees/install/windows.doctree
index 0cbd89fd..f37066df 100644
Binary files a/docs/_build/.doctrees/install/windows.doctree and b/docs/_build/.doctrees/install/windows.doctree differ
diff --git a/docs/_build/.doctrees/intro.doctree b/docs/_build/.doctrees/intro.doctree
index 338876d9..a31eb98c 100644
Binary files a/docs/_build/.doctrees/intro.doctree and b/docs/_build/.doctrees/intro.doctree differ
diff --git a/docs/_build/.doctrees/objects.doctree b/docs/_build/.doctrees/objects.doctree
index 76f03790..bf703972 100644
Binary files a/docs/_build/.doctrees/objects.doctree and b/docs/_build/.doctrees/objects.doctree differ
diff --git a/docs/_build/.doctrees/objects/classical_storage.doctree b/docs/_build/.doctrees/objects/classical_storage.doctree
index b52c9ec8..4875f12f 100644
Binary files a/docs/_build/.doctrees/objects/classical_storage.doctree and b/docs/_build/.doctrees/objects/classical_storage.doctree differ
diff --git a/docs/_build/.doctrees/objects/message.doctree b/docs/_build/.doctrees/objects/message.doctree
index 04219b07..ce336116 100644
Binary files a/docs/_build/.doctrees/objects/message.doctree and b/docs/_build/.doctrees/objects/message.doctree differ
diff --git a/docs/_build/.doctrees/objects/packet.doctree b/docs/_build/.doctrees/objects/packet.doctree
index 20d2af3b..1199cab6 100644
Binary files a/docs/_build/.doctrees/objects/packet.doctree and b/docs/_build/.doctrees/objects/packet.doctree differ
diff --git a/docs/_build/.doctrees/objects/quantum_storage.doctree b/docs/_build/.doctrees/objects/quantum_storage.doctree
index d06616b8..c9d1036a 100644
Binary files a/docs/_build/.doctrees/objects/quantum_storage.doctree and b/docs/_build/.doctrees/objects/quantum_storage.doctree differ
diff --git a/docs/_build/.doctrees/objects/qubit.doctree b/docs/_build/.doctrees/objects/qubit.doctree
index 8f6e4caf..46ddde3d 100644
Binary files a/docs/_build/.doctrees/objects/qubit.doctree and b/docs/_build/.doctrees/objects/qubit.doctree differ
diff --git a/docs/_build/.doctrees/objects/routing_packet.doctree b/docs/_build/.doctrees/objects/routing_packet.doctree
index 24960fe6..75766d52 100644
Binary files a/docs/_build/.doctrees/objects/routing_packet.doctree and b/docs/_build/.doctrees/objects/routing_packet.doctree differ
diff --git a/docs/_build/.doctrees/quick_start.doctree b/docs/_build/.doctrees/quick_start.doctree
index 85537421..8593a567 100644
Binary files a/docs/_build/.doctrees/quick_start.doctree and b/docs/_build/.doctrees/quick_start.doctree differ
diff --git a/docs/_build/_sources/backends.rst.txt b/docs/_build/_sources/backends.rst.txt
index 696d9dcb..f047e031 100644
--- a/docs/_build/_sources/backends.rst.txt
+++ b/docs/_build/_sources/backends.rst.txt
@@ -21,7 +21,7 @@ to chose the EQSN backend is shown in the code snippet below.
import numpy as np
# import the eqsn backend
- from backends.eqsn_backend import EQSNBackend
+ from qunetsim.backends import EQSNBackend
# create the EQSN backend object
backend = EQSNBackend()
diff --git a/docs/_build/_sources/components/host.rst.txt b/docs/_build/_sources/components/host.rst.txt
index 5d970f2d..bfac628d 100644
--- a/docs/_build/_sources/components/host.rst.txt
+++ b/docs/_build/_sources/components/host.rst.txt
@@ -45,5 +45,5 @@ The most commonly used methods for Hosts are:
* Run the function *protocol* with the parameters *protocol_params*.
-.. automodule:: components.host
+.. automodule:: qunetsim.components.host
:members:
diff --git a/docs/_build/_sources/components/network.rst.txt b/docs/_build/_sources/components/network.rst.txt
index 53e1f01f..17b01d98 100644
--- a/docs/_build/_sources/components/network.rst.txt
+++ b/docs/_build/_sources/components/network.rst.txt
@@ -40,5 +40,5 @@ The most commonly used methods for Network are:
* Generate a depiction of the quantum network (via matplotlib)
-.. automodule:: components.network
+.. automodule:: qunetsim.components.network
:members:
diff --git a/docs/_build/_sources/components/protocols.rst.txt b/docs/_build/_sources/components/protocols.rst.txt
index 1c4a7a47..b973f6e8 100644
--- a/docs/_build/_sources/components/protocols.rst.txt
+++ b/docs/_build/_sources/components/protocols.rst.txt
@@ -1,5 +1,5 @@
Protocols
==========
-.. automodule:: components.protocols
+.. automodule:: qunetsim.components.protocols
:members:
diff --git a/docs/_build/_sources/examples/QKD.rst.txt b/docs/_build/_sources/examples/QKD.rst.txt
index bc47016c..a2c21f6e 100644
--- a/docs/_build/_sources/examples/QKD.rst.txt
+++ b/docs/_build/_sources/examples/QKD.rst.txt
@@ -229,10 +229,10 @@ The full example is below:
import numpy as np
import random
- from components.host import Host
- from components.network import Network
- from objects.qubit import Qubit
- from components.logger import Logger
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Qubit
+ from qunetsim.objects import Logger
Logger.DISABLED = True
diff --git a/docs/_build/_sources/examples/anonymous_transfer.rst.txt b/docs/_build/_sources/examples/anonymous_transfer.rst.txt
index 93b6cc55..b41cedea 100644
--- a/docs/_build/_sources/examples/anonymous_transfer.rst.txt
+++ b/docs/_build/_sources/examples/anonymous_transfer.rst.txt
@@ -89,11 +89,11 @@ Full example:
import time
- from components.host import Host
- from components.network import Network
+ from qunetsim.components import Host
+ from qunetsim.components import Network
import random
- from objects.qubit import Qubit
+ from qunetsim.objects import Qubit
def distribute(host, nodes):
diff --git a/docs/_build/_sources/examples/chsh.rst.txt b/docs/_build/_sources/examples/chsh.rst.txt
index 73cc336f..41bdea13 100644
--- a/docs/_build/_sources/examples/chsh.rst.txt
+++ b/docs/_build/_sources/examples/chsh.rst.txt
@@ -157,13 +157,9 @@ of those here. The full example is below, with the backends imported and set.
import math
import random
- from components.host import Host
- from components.network import Network
- from components.logger import Logger
-
- # We have to import the ProjectQ backend.
- # One should ensure the python library "projectq" is installed.
- from backends.projectq_backend import ProjectQBackend
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Logger
# Disable QuNetSim logging
Logger.DISABLED = True
@@ -284,20 +280,17 @@ of those here. The full example is below, with the backends imported and set.
def main():
network = Network.get_instance()
- backend = ProjectQBackend()
- nodes = ['A', 'B', 'C']
- network.delay = 0.1
- network.start(nodes, backend)
+ network.start()
- host_A = Host('A', backend)
+ host_A = Host('A')
host_A.add_c_connection('C')
host_A.start()
- host_B = Host('B', backend)
+ host_B = Host('B')
host_B.add_c_connection('C')
host_B.start()
- host_C = Host('C', backend)
+ host_C = Host('C')
host_C.add_c_connection('A')
host_C.add_c_connection('B')
host_C.start()
diff --git a/docs/_build/_sources/examples/entanglement_routing.rst.txt b/docs/_build/_sources/examples/entanglement_routing.rst.txt
index 4102ad15..9b7edefa 100644
--- a/docs/_build/_sources/examples/entanglement_routing.rst.txt
+++ b/docs/_build/_sources/examples/entanglement_routing.rst.txt
@@ -134,6 +134,13 @@ The full example is below.
.. code-block:: python
:linenos:
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Logger
+ import networkx
+ import time
+
+
def generate_entanglement(host):
"""
Generate entanglement if the host has nothing to process (i.e. is idle).
diff --git a/docs/_build/_sources/examples/packet_sniffing.rst.txt b/docs/_build/_sources/examples/packet_sniffing.rst.txt
index ea9b2148..e7a527c5 100644
--- a/docs/_build/_sources/examples/packet_sniffing.rst.txt
+++ b/docs/_build/_sources/examples/packet_sniffing.rst.txt
@@ -125,11 +125,11 @@ The full example is below.
.. code-block:: python
:linenos:
- from components.host import Host
- from components.network import Network
- from objects.message import Message
- from objects.qubit import Qubit
- from components.logger import Logger
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Message
+ from qunetsim.objects import Qubit
+ from qunetsim.objects import Logger
Logger.DISABLED = True
diff --git a/docs/_build/_sources/examples/quantum_coin_flipping.rst.txt b/docs/_build/_sources/examples/quantum_coin_flipping.rst.txt
index ef557b7f..df74aa0b 100644
--- a/docs/_build/_sources/examples/quantum_coin_flipping.rst.txt
+++ b/docs/_build/_sources/examples/quantum_coin_flipping.rst.txt
@@ -213,12 +213,12 @@ The full example is given below.
import numpy as np
- from objects.qubit import Qubit
- from components.host import Host
- from components.network import Network
- from backends.eqsn_backend import EQSNBackend
- # from backends.cqc_backend import CQCBackend
- # from backends.projectq_backend import ProjectQBackend
+ from qunetsim.objects import Qubit
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.backends import EQSNBackend
+ # from qunetsim.backends import CQCBackend
+ # from qunetsim.backends import ProjectQBackend
def quantum_coin_flipping(host, m, n, partner_id, rot_angle):
diff --git a/docs/_build/_sources/examples/quantum_money.rst.txt b/docs/_build/_sources/examples/quantum_money.rst.txt
index 5c2071d4..2fed4e8c 100644
--- a/docs/_build/_sources/examples/quantum_money.rst.txt
+++ b/docs/_build/_sources/examples/quantum_money.rst.txt
@@ -184,12 +184,12 @@ The full example is below:
.. code-block:: python
:linenos:
- from components.host import Host
- from components.network import Network
- from objects.logger import Logger
- from objects.qubit import Qubit
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Logger
+ from qunetsim.objects import Qubit
from random import randint, random
- from backends.projectq_backend import ProjectQBackend
+ from qunetsim.backends import ProjectQBackend
Logger.DISABLED = True
diff --git a/docs/_build/_sources/examples/send_data.rst.txt b/docs/_build/_sources/examples/send_data.rst.txt
index b63d0a4b..5d86f09b 100644
--- a/docs/_build/_sources/examples/send_data.rst.txt
+++ b/docs/_build/_sources/examples/send_data.rst.txt
@@ -90,9 +90,9 @@ The full example is below:
.. code-block:: python
:linenos:
- from components.host import Host
- from components.network import Network
- from objects.qubit import Qubit
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Qubit
def main():
diff --git a/docs/_build/_sources/examples/send_epr.rst.txt b/docs/_build/_sources/examples/send_epr.rst.txt
index 1ac2f6b2..1a75d95f 100644
--- a/docs/_build/_sources/examples/send_epr.rst.txt
+++ b/docs/_build/_sources/examples/send_epr.rst.txt
@@ -107,9 +107,9 @@ The full example is below.
.. code-block:: python
:linenos:
- from components.host import Host
- from components.network import Network
- from components.logger import Logger
+ from qunetsim.components import Host
+ from qunetsim.components import Network
+ from qunetsim.objects import Logger
Logger.DISABLED = True
diff --git a/docs/_build/_sources/objects/classical_storage.rst.txt b/docs/_build/_sources/objects/classical_storage.rst.txt
index 187b5aa4..f4b4ca2e 100644
--- a/docs/_build/_sources/objects/classical_storage.rst.txt
+++ b/docs/_build/_sources/objects/classical_storage.rst.txt
@@ -3,5 +3,5 @@ Classical Storage
The *Classical Storage* object is a component of a Host used to store *message* objects.
-.. automodule:: objects.classical_storage
+.. automodule:: qunetsim.objects.classical_storage
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/objects/message.rst.txt b/docs/_build/_sources/objects/message.rst.txt
index a9a9999e..fba8d4c1 100644
--- a/docs/_build/_sources/objects/message.rst.txt
+++ b/docs/_build/_sources/objects/message.rst.txt
@@ -5,5 +5,5 @@ Message
message is structured as a *message* object with some extra content. Acknowledgements in QuNetSim are also
send as classical messages and therefore will appear in the Host's classical storage.
-.. automodule:: objects.message
+.. automodule:: qunetsim.objects.message
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/objects/packet.rst.txt b/docs/_build/_sources/objects/packet.rst.txt
index c196d213..436b19bc 100644
--- a/docs/_build/_sources/objects/packet.rst.txt
+++ b/docs/_build/_sources/objects/packet.rst.txt
@@ -6,5 +6,5 @@ packets in the Internet. They encode the sender and receiver of the packet along
the other properties listed below. Generally, users will not need to interact with
*Packet* objects directly.
-.. automodule:: objects.packet
+.. automodule:: qunetsim.objects.packet
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/objects/quantum_storage.rst.txt b/docs/_build/_sources/objects/quantum_storage.rst.txt
index 6d9c9b0f..f50a189f 100644
--- a/docs/_build/_sources/objects/quantum_storage.rst.txt
+++ b/docs/_build/_sources/objects/quantum_storage.rst.txt
@@ -6,5 +6,5 @@ one for EPR pairs and the other for data qubits, but in both cases, they store *
further iterations of QuNetSim are developed, we plan to add parameters such that we can better simulate
quantum memories.
-.. automodule:: objects.quantum_storage
+.. automodule:: qunetsim.objects.quantum_storage
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/objects/qubit.rst.txt b/docs/_build/_sources/objects/qubit.rst.txt
index fda81839..736f9f8e 100644
--- a/docs/_build/_sources/objects/qubit.rst.txt
+++ b/docs/_build/_sources/objects/qubit.rst.txt
@@ -5,5 +5,5 @@ The *Qubit* object is mainly a wrapper for the underlying qubit that is defined
our own properties such that we can better manage the qubits in the system, for example, *Qubits* have a unique
ID and they know which *Host* they belong to.
-.. automodule:: objects.qubit
+.. automodule:: qunetsim.objects.qubit
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/objects/routing_packet.rst.txt b/docs/_build/_sources/objects/routing_packet.rst.txt
index eb99dae5..b30104d0 100644
--- a/docs/_build/_sources/objects/routing_packet.rst.txt
+++ b/docs/_build/_sources/objects/routing_packet.rst.txt
@@ -1,10 +1,10 @@
Routing Packet
==============
-The *Routing Packet* object is simular to the *Packet* object with the difference that it is analogous
+The *Routing Packet* object is similar to the *Packet* object with the difference that it is analogous
to a network layer packet from the Internet. The main difference in our implementation is that these
packets have a TTL (time to live) property such that they are eliminated from the network after
some number of relays or "hops" in the network.
-.. automodule:: objects.routing_packet
+.. automodule:: qunetsim.objects.routing_packet
:members:
\ No newline at end of file
diff --git a/docs/_build/_sources/quick_start.rst.txt b/docs/_build/_sources/quick_start.rst.txt
index a717687a..3167952c 100644
--- a/docs/_build/_sources/quick_start.rst.txt
+++ b/docs/_build/_sources/quick_start.rst.txt
@@ -42,10 +42,10 @@ of commands that are built into hosts, see the Design Overview section.
.. code-block:: python
:linenos:
- from components.host import Host
- from components.network import Network
- from objects.qubit import Qubit
- from components.logger import Logger
+ from qunetsim.components.host import Host
+ from qunetsim.components.network import Network
+ from qunetsim.objects import Qubit
+ from qunetsim.objects import Logger
Logger.DISABLED = True
diff --git a/docs/_build/_static/basic.css b/docs/_build/_static/basic.css
index b04360d6..ea6972d5 100644
--- a/docs/_build/_static/basic.css
+++ b/docs/_build/_static/basic.css
@@ -672,10 +672,6 @@ div.code-block-caption + div > div.highlight > pre {
margin-top: 0;
}
-div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
- user-select: none;
-}
-
div.code-block-caption span.caption-number {
padding: 0.1em 0.3em;
font-style: italic;
diff --git a/docs/_build/_static/documentation_options.js b/docs/_build/_static/documentation_options.js
index 4790c4d3..6d865102 100644
--- a/docs/_build/_static/documentation_options.js
+++ b/docs/_build/_static/documentation_options.js
@@ -3,7 +3,6 @@ var DOCUMENTATION_OPTIONS = {
VERSION: '',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
- BUILDER: 'html',
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
diff --git a/docs/_build/_static/searchtools.js b/docs/_build/_static/searchtools.js
index ad845872..6031f991 100644
--- a/docs/_build/_static/searchtools.js
+++ b/docs/_build/_static/searchtools.js
@@ -245,7 +245,7 @@ var Search = {
if (results.length) {
var item = results.pop();
var listItem = $('
');
- if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
+ if (DOCUMENTATION_OPTIONS.FILE_SUFFIX === '') {
// dirhtml builder
var dirname = item[0] + '/';
if (dirname.match(/\/index\/$/)) {
@@ -424,7 +424,7 @@ var Search = {
for (j = 0; j < _files.length; j++) {
file = _files[j];
if (!(file in scoreMap))
- scoreMap[file] = {};
+ scoreMap[file] = {}
scoreMap[file][word] = o.score;
}
});
@@ -432,7 +432,7 @@ var Search = {
// create the mapping
for (j = 0; j < files.length; j++) {
file = files[j];
- if (file in fileMap && fileMap[file].indexOf(word) === -1)
+ if (file in fileMap)
fileMap[file].push(word);
else
fileMap[file] = [word];
diff --git a/docs/_build/backends.html b/docs/_build/backends.html
index 225aade7..95c5e99a 100644
--- a/docs/_build/backends.html
+++ b/docs/_build/backends.html
@@ -249,9 +249,9 @@ Backendsimport numpy as np
# import the eqsn backend
-from backends.eqsn_backend import EQSNBackend
+from qunetsim.backends import EQSNBackend
# create the EQSN backend object
backend = EQSNBackend()
diff --git a/docs/_build/components/host.html b/docs/_build/components/host.html
index 0d3835fd..e25ffbe9 100644
--- a/docs/_build/components/host.html
+++ b/docs/_build/components/host.html
@@ -320,14 +320,14 @@ Host | import numpy as np
# Initialize a network
network = Network.get_instance()
@@ -372,9 +372,9 @@ Quantum Key Distribution
|
Alice can finally send her message to Eve, without being disturbed by Bob!
@@ -505,8 +505,8 @@ Quantum Key Distribution