Skip to content

Commit ccd9b0b

Browse files
🎨 pre-commit fixes
1 parent c97683a commit ccd9b0b

File tree

4 files changed

+34
-58
lines changed

4 files changed

+34
-58
lines changed

scripts/co3/circuit_types.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import matplotlib.pyplot as plt
1515

1616
# This notebook must be run from the directory /mqt-qecc/src/mqt/qecc/co3/plots
17-
import mqt.qecc.co3 as co
1817

1918
plt.rcParams["font.family"] = "Times New Roman"
2019

@@ -26,32 +25,32 @@
2625
g, data_qubit_locs, factory_ring = layout.gen_layout("hex", 24, [])
2726
custom_layout_q24_hex_f8 = [data_qubit_locs, g]
2827

29-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 42, [])
30-
#custom_layout_q42_hex_f8 = [data_qubit_locs, g]
28+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 42, [])
29+
# custom_layout_q42_hex_f8 = [data_qubit_locs, g]
3130

32-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 60, [])
33-
#custom_layout_q60_hex_f8 = [data_qubit_locs, g]
31+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 60, [])
32+
# custom_layout_q60_hex_f8 = [data_qubit_locs, g]
3433

3534
# ROW
3635
g, data_qubit_locs, factory_ring = layout.gen_layout("row", 24, [])
3736
custom_layout_q24_row_f8 = [data_qubit_locs, g]
3837

39-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 42, [])
40-
#custom_layout_q42_row_f8 = [data_qubit_locs, g]
38+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 42, [])
39+
# custom_layout_q42_row_f8 = [data_qubit_locs, g]
4140

42-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 60, [])
43-
#custom_layout_q60_row_f8 = [data_qubit_locs, g]
41+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 60, [])
42+
# custom_layout_q60_row_f8 = [data_qubit_locs, g]
4443

4544

4645
# PAIR
4746
g, data_qubit_locs, factory_ring = layout.gen_layout("pair", 24, [])
4847
custom_layout_q24_pair_f8 = [data_qubit_locs, g]
4948

50-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 42, [])
51-
#custom_layout_q42_pair_f8 = [data_qubit_locs, g]
49+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 42, [])
50+
# custom_layout_q42_pair_f8 = [data_qubit_locs, g]
5251

53-
#g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 60, [])
54-
#custom_layout_q60_pair_f8 = [data_qubit_locs, g]
52+
# g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 60, [])
53+
# custom_layout_q60_pair_f8 = [data_qubit_locs, g]
5554

5655
# -----------------------------
5756

scripts/co3/construct_layouts.ipynb

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -637,7 +637,7 @@
637637
},
638638
{
639639
"cell_type": "code",
640-
"execution_count": 19,
640+
"execution_count": null,
641641
"metadata": {},
642642
"outputs": [
643643
{
@@ -719,7 +719,7 @@
719719
" (5, 16)]"
720720
]
721721
},
722-
"execution_count": 19,
722+
"execution_count": null,
723723
"metadata": {},
724724
"output_type": "execute_result"
725725
}
@@ -733,7 +733,7 @@
733733
},
734734
{
735735
"cell_type": "code",
736-
"execution_count": 20,
736+
"execution_count": null,
737737
"metadata": {},
738738
"outputs": [
739739
{
@@ -770,7 +770,7 @@
770770
},
771771
{
772772
"cell_type": "code",
773-
"execution_count": 21,
773+
"execution_count": null,
774774
"metadata": {},
775775
"outputs": [],
776776
"source": [
@@ -788,7 +788,7 @@
788788
},
789789
{
790790
"cell_type": "code",
791-
"execution_count": 22,
791+
"execution_count": null,
792792
"metadata": {},
793793
"outputs": [
794794
{
@@ -835,7 +835,7 @@
835835
" [((5, 7), (6, 11)), ((7, 10), (3, 6)), ((2, 5), (3, 4))]]"
836836
]
837837
},
838-
"execution_count": 22,
838+
"execution_count": null,
839839
"metadata": {},
840840
"output_type": "execute_result"
841841
}
@@ -850,7 +850,7 @@
850850
},
851851
{
852852
"cell_type": "code",
853-
"execution_count": 23,
853+
"execution_count": null,
854854
"metadata": {},
855855
"outputs": [],
856856
"source": [
@@ -859,7 +859,7 @@
859859
},
860860
{
861861
"cell_type": "code",
862-
"execution_count": 24,
862+
"execution_count": null,
863863
"metadata": {},
864864
"outputs": [
865865
{
@@ -970,13 +970,6 @@
970970
" # use G from hc run\n",
971971
" plot_lattice_paths(lat.G, vdp_dict, factory_locs=factories, layout=layout, size=size)"
972972
]
973-
},
974-
{
975-
"cell_type": "code",
976-
"execution_count": null,
977-
"metadata": {},
978-
"outputs": [],
979-
"source": []
980973
}
981974
],
982975
"metadata": {
@@ -994,8 +987,7 @@
994987
"mimetype": "text/x-python",
995988
"name": "python",
996989
"nbconvert_exporter": "python",
997-
"pygments_lexer": "ipython3",
998-
"version": "3.11.12"
990+
"pygments_lexer": "ipython3"
999991
}
1000992
},
1001993
"nbformat": 4,

scripts/co3/f_vs_t_q24_row_small.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@
102102

103103
res_lst = ev.collect_data_space_time(instances, hc_params, reps, path, both_metric)
104104

105-
#with Path(path).open("rb") as f:
106-
# res_lst = pickle.load(f) # noqa: S301
105+
# with Path(path).open("rb") as f:
106+
# res_lst = pickle.load(f)
107107

108108
path += "_metricrouting"
109109

scripts/co3/numerics_summarized.ipynb

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 12,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 13,
29+
"execution_count": null,
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
@@ -43,7 +43,7 @@
4343
},
4444
{
4545
"cell_type": "code",
46-
"execution_count": 14,
46+
"execution_count": null,
4747
"metadata": {},
4848
"outputs": [
4949
{
@@ -52,7 +52,7 @@
5252
"50"
5353
]
5454
},
55-
"execution_count": 14,
55+
"execution_count": null,
5656
"metadata": {},
5757
"output_type": "execute_result"
5858
}
@@ -63,7 +63,7 @@
6363
},
6464
{
6565
"cell_type": "code",
66-
"execution_count": 15,
66+
"execution_count": null,
6767
"metadata": {},
6868
"outputs": [
6969
{
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"cell_type": "code",
103-
"execution_count": 16,
103+
"execution_count": null,
104104
"metadata": {},
105105
"outputs": [],
106106
"source": [
@@ -111,7 +111,7 @@
111111
},
112112
{
113113
"cell_type": "code",
114-
"execution_count": 17,
114+
"execution_count": null,
115115
"metadata": {},
116116
"outputs": [
117117
{
@@ -120,7 +120,7 @@
120120
"50"
121121
]
122122
},
123-
"execution_count": 17,
123+
"execution_count": null,
124124
"metadata": {},
125125
"output_type": "execute_result"
126126
}
@@ -131,7 +131,7 @@
131131
},
132132
{
133133
"cell_type": "code",
134-
"execution_count": 18,
134+
"execution_count": null,
135135
"metadata": {},
136136
"outputs": [
137137
{
@@ -168,20 +168,6 @@
168168
"size = (4.5, 2.5)\n",
169169
"ev.plot_improvement_circuit_types(res_lst, size=size)"
170170
]
171-
},
172-
{
173-
"cell_type": "code",
174-
"execution_count": null,
175-
"metadata": {},
176-
"outputs": [],
177-
"source": []
178-
},
179-
{
180-
"cell_type": "code",
181-
"execution_count": null,
182-
"metadata": {},
183-
"outputs": [],
184-
"source": []
185171
}
186172
],
187173
"metadata": {
@@ -199,8 +185,7 @@
199185
"mimetype": "text/x-python",
200186
"name": "python",
201187
"nbconvert_exporter": "python",
202-
"pygments_lexer": "ipython3",
203-
"version": "3.11.12"
188+
"pygments_lexer": "ipython3"
204189
}
205190
},
206191
"nbformat": 4,

0 commit comments

Comments
 (0)