File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33./terminate.sh
4+ sleep 1
45./run.sh
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33./terminate.sh
4+ sleep 1
45./run.sh
Original file line number Diff line number Diff line change 11from pathlib import Path
22
3- from simulaqron .general .host_config import SocketsConfig
43from 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.
86from 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 )
You can’t perform that action at this time.
0 commit comments