Skip to content

Commit b703014

Browse files
committed
Small update on the new SDK application templates
1 parent 27fc33a commit b703014

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22

33
./terminate.sh
4+
sleep 1
45
./run.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22

33
./terminate.sh
4+
sleep 1
45
./run.sh

examples/new-sdk/template-quantum-local/nodeTest.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from pathlib import Path
22

3-
from simulaqron.general.host_config import SocketsConfig
43
from simulaqron.settings import network_config, simulaqron_settings
5-
from simulaqron.settings.network_config import NodeConfigType
64

75
# This is recipe to use NetQASM with simulaqron backend.
86
from netqasm.runtime.settings import set_simulator
@@ -43,13 +41,7 @@ def quantum_program(this_node_name: str) -> int:
4341

4442
# Some data for this node:
4543
network_name = "default" # A network with this name *must* exist in "simulaqron_network.json"
46-
node_name = "YourName" # A node with this name *must* exist in "simulaqron_network.json"
44+
node_name = "Alice" # A node with this name *must* exist in "simulaqron_network.json"
4745

48-
# Get the socket configuration for the sockets used for the application layer
49-
sockets_config = SocketsConfig(network_config, network_name, NodeConfigType.APP)
50-
51-
# Name of one node to classically connect to
52-
server_name = "Bob"
53-
54-
result = quantum_program()
46+
result = quantum_program(node_name)
5547
print(result)

0 commit comments

Comments
 (0)