Skip to content

Commit b12061f

Browse files
author
Axel Dahlberg
authored
Merge pull request #244 from SoftwareQuTech/master
Update Develop after hot-fix
2 parents df354ed + 4aed708 commit b12061f

130 files changed

Lines changed: 22 additions & 45285 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.

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ matrix:
1919
osx_image: xcode10.2
2020
language: shell
2121
before_install:
22-
- git clone --branch Develop https://github.com/SoftwareQuTech/CQC-Python
23-
- cd CQC-Python
24-
- make build
25-
- pip3 install dist/*.whl
26-
- cd ..
2722
- make build
2823
install:
2924
- pip3 install dist/*.whl

docs/ConfNodes.rst

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,23 @@ Starting a network from Python
196196

197197
You can also start a network within a Python script (this is in fact what simulaqron does), by using the class :code:`simulaqron.network.Network`. To setup a network by name "test" with the nodes Alice, Bob and Charlie, where Bob is connected with Alice and Charlie but Alice and Charlie are not connected use the following code code::
198198

199-
from simulaqron.network import Network
199+
from simulaqron.network import Network
200200

201-
# Setup the network
202-
nodes = ["Alice", "Bob", "Charlie"]
203-
topology = {"Alice": ["Bob"], "Bob": ["Alice", "Charlie"], "Charlie": ["Bob"]}
204-
network = Network(name="test", nodes=nodes, topology=topology)
205201

206-
# Start the network
207-
network.start()
202+
def main():
203+
# Setup the network
204+
nodes = ["Alice", "Bob", "Charlie"]
205+
topology = {"Alice": ["Bob"], "Bob": ["Alice", "Charlie"], "Charlie": ["Bob"]}
206+
network = Network(name="test", nodes=nodes, topology=topology)
207+
208+
# Start the network
209+
network.start()
210+
211+
input("To stop the network, press enter...")
212+
213+
214+
if __name__ == '__main__':
215+
main()
208216

209217
By default the method :code:`simulaqron.network.Network.start`, only returns when the network is running, i.e. all the connections are established. To avoid this use the argument :code:`wait_until_running=False`.
210218

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030
# Add any Sphinx extension module names here, as strings. They can be
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
33-
extensions = ["sphinx.ext.autodoc", "sphinx.ext.todo", "sphinx.ext.viewcode", "sphinx.ext.mathjax"]
33+
extensions = [
34+
"sphinx.ext.autodoc",
35+
"sphinx.ext.todo",
36+
"sphinx.ext.viewcode",
37+
"sphinx.ext.mathjax",
38+
"sphinx.ext.githubpages",
39+
]
3440

3541
mathjax_path = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
3642

docs/html/CLib.html

Lines changed: 0 additions & 275 deletions
This file was deleted.

docs/html/CQCInterface.html

Lines changed: 0 additions & 710 deletions
This file was deleted.

docs/html/ClassicalCommunication.html

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)