Skip to content

Commit e828af3

Browse files
Stephanie Wehnerclaude
andcommitted
Ensure all new-sdk examples are consistent
- Add missing simulaqron_settings.json to teleport - Add --simulaqron-config-file flag to teleport/run.sh - Add sleep 1 to doNew.sh in teleport and classical-client-server - Add missing doNew.sh to midCircuitLogic - Normalize Bob ports to 8831-8833 in teleport and classical-client-server - Fix shebang in classical-client-server/run.sh (#!/bin/sh -> #!/usr/bin/env bash) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c0700b0 commit e828af3

8 files changed

Lines changed: 29 additions & 8 deletions

File tree

examples/new-sdk/classical-client-server/doNew.sh

100755100644
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/classical-client-server/run.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
# Running SimulaQron backend is not needed for this example.
44
## Check if SimulaQron is already running

examples/new-sdk/classical-client-server/simulaqron_network.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
},
1212
{
1313
"Bob": {
14-
"app_socket": ["localhost", 9831],
15-
"qnodeos_socket": ["localhost", 9832],
16-
"vnode_socket": ["localhost", 9833]
14+
"app_socket": ["localhost", 8831],
15+
"qnodeos_socket": ["localhost", 8832],
16+
"vnode_socket": ["localhost", 8833]
1717
}
1818
}
1919
],
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
./terminate.sh
4+
sleep 1
5+
./run.sh

examples/new-sdk/teleport/doNew.sh

100755100644
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/teleport/run.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$START_SIMULAQRON" = true ]; then
1818
# Check if SimulaQron is already running
1919
if [ ! -f ~/.simulaqron_pids/simulaqron_network_default.pid ]; then
2020
# If not, start simulaqron backend for both nodes
21-
simulaqron start --nodes=Alice,Bob --network-config-file simulaqron_network.json
21+
simulaqron start --nodes=Alice,Bob --network-config-file simulaqron_network.json --simulaqron-config-file simulaqron_settings.json
2222
fi
2323
fi
2424

examples/new-sdk/teleport/simulaqron_network.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
},
1212
{
1313
"Bob": {
14-
"app_socket": ["localhost", 9831],
15-
"qnodeos_socket": ["localhost", 9832],
16-
"vnode_socket": ["localhost", 9833]
14+
"app_socket": ["localhost", 8831],
15+
"qnodeos_socket": ["localhost", 8832],
16+
"vnode_socket": ["localhost", 8833]
1717
}
1818
}
1919
],
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"max_qubits": 20,
3+
"max_registers": 1000,
4+
"conn_retry_time": 0.5,
5+
"conn_max_retries": 10,
6+
"recv_timeout": 100,
7+
"recv_retry_time": 0.1,
8+
"recv_max_retries": 10,
9+
"log_level": 30,
10+
"sim_backend": "projectq",
11+
"noisy_qubits": false,
12+
"max_app_waiting_time": -1.0,
13+
"t1": 1.0
14+
}

0 commit comments

Comments
 (0)