Skip to content

Commit f1987ce

Browse files
authored
Merge pull request sequence-toolbox#283 from sequence-toolbox/RnD
[minor] hotfix to the tutorial demos
2 parents 848e703 + f8b00da commit f1987ce

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,6 @@ sequence/gui/test_run.py
145145
tmp/
146146

147147
# config file
148-
utils/json_config_generators/*.json
148+
utils/json_config_generators/*.json
149+
150+
.virtual_documents/

example/demo_for_beginners/two_node_eg.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 19,
33+
"execution_count": 1,
3434
"metadata": {
3535
"tags": []
3636
},
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"cell_type": "code",
65-
"execution_count": 3,
65+
"execution_count": 8,
6666
"metadata": {
6767
"tags": []
6868
},
@@ -86,7 +86,7 @@
8686
" # create entanglement generation protocol with proper parameters\n",
8787
" memories = [info.memory for info in memories_info]\n",
8888
" memory = memories[0]\n",
89-
" protocol = EntanglementGenerationA(None, \"EGA.\" + memory.name, \"m1\", \"r2\", memory)\n",
89+
" protocol = EntanglementGenerationA.create(None, \"EGA.\" + memory.name, \"m1\", \"r2\", memory)\n",
9090
" protocol.primary = True\n",
9191
" \n",
9292
" # return values for a rule are: the protocol created, the destination node,\n",
@@ -97,7 +97,7 @@
9797
"def eg_rule_action2(memories_info, args):\n",
9898
" memories = [info.memory for info in memories_info]\n",
9999
" memory = memories[0]\n",
100-
" protocol = EntanglementGenerationA(None, \"EGA.\" + memory.name, \"m1\", \"r1\", memory)\n",
100+
" protocol = EntanglementGenerationA.create(None, \"EGA.\" + memory.name, \"m1\", \"r1\", memory)\n",
101101
" return [protocol, [None], [None], [None]]"
102102
]
103103
},
@@ -122,7 +122,7 @@
122122
},
123123
{
124124
"cell_type": "code",
125-
"execution_count": 17,
125+
"execution_count": 9,
126126
"metadata": {
127127
"tags": []
128128
},
@@ -229,15 +229,15 @@
229229
},
230230
{
231231
"cell_type": "code",
232-
"execution_count": 18,
232+
"execution_count": 10,
233233
"metadata": {
234234
"tags": []
235235
},
236236
"outputs": [
237237
{
238238
"data": {
239239
"application/vnd.jupyter.widget-view+json": {
240-
"model_id": "61aa03177b88435c92b8187585d1acdb",
240+
"model_id": "3f2d5a9f55364774a32773978974385e",
241241
"version_major": 2,
242242
"version_minor": 0
243243
},
@@ -254,7 +254,7 @@
254254
"<function __main__.test(sim_time, cc_delay, qc_atten, qc_dist)>"
255255
]
256256
},
257-
"execution_count": 18,
257+
"execution_count": 10,
258258
"metadata": {},
259259
"output_type": "execute_result"
260260
}
@@ -294,7 +294,7 @@
294294
"name": "python",
295295
"nbconvert_exporter": "python",
296296
"pygments_lexer": "ipython3",
297-
"version": "3.13.2"
297+
"version": "3.13.5"
298298
}
299299
},
300300
"nbformat": 4,

sequence/kernel/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def print_time(self):
185185

186186
print(f'{process_bar}', end=CARRIAGE_RETURN)
187187
stdout.flush()
188-
sleep(seconds=3)
188+
sleep(3)
189189

190190
@staticmethod
191191
def ns_to_human_time(nanoseconds: float) -> str:

0 commit comments

Comments
 (0)