|
9 | 9 |
|
10 | 10 | from __future__ import annotations |
11 | 11 |
|
| 12 | +import evaluation as ev |
| 13 | +import layouts as layout |
12 | 14 | import matplotlib.pyplot as plt |
13 | 15 |
|
14 | 16 | # This notebook must be run from the directory /mqt-qecc/src/mqt/qecc/co3/plots |
|
17 | 19 | plt.rcParams["font.family"] = "Times New Roman" |
18 | 20 |
|
19 | 21 |
|
20 | | -path = "./results/circuit_types_q24_250321_c" |
| 22 | +path = "./results/circuit_types_q24_250718_d" |
21 | 23 |
|
22 | 24 | # HEX |
23 | 25 |
|
24 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 24, []) |
| 26 | +g, data_qubit_locs, factory_ring = layout.gen_layout("hex", 24, []) |
25 | 27 | custom_layout_q24_hex_f8 = [data_qubit_locs, g] |
26 | 28 |
|
27 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 42, []) |
28 | | -custom_layout_q42_hex_f8 = [data_qubit_locs, g] |
| 29 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 42, []) |
| 30 | +#custom_layout_q42_hex_f8 = [data_qubit_locs, g] |
29 | 31 |
|
30 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 60, []) |
31 | | -custom_layout_q60_hex_f8 = [data_qubit_locs, g] |
| 32 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("hex", 60, []) |
| 33 | +#custom_layout_q60_hex_f8 = [data_qubit_locs, g] |
32 | 34 |
|
33 | 35 | # ROW |
34 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 24, []) |
| 36 | +g, data_qubit_locs, factory_ring = layout.gen_layout("row", 24, []) |
35 | 37 | custom_layout_q24_row_f8 = [data_qubit_locs, g] |
36 | 38 |
|
37 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 42, []) |
38 | | -custom_layout_q42_row_f8 = [data_qubit_locs, g] |
| 39 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 42, []) |
| 40 | +#custom_layout_q42_row_f8 = [data_qubit_locs, g] |
39 | 41 |
|
40 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 60, []) |
41 | | -custom_layout_q60_row_f8 = [data_qubit_locs, g] |
| 42 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("row", 60, []) |
| 43 | +#custom_layout_q60_row_f8 = [data_qubit_locs, g] |
42 | 44 |
|
43 | 45 |
|
44 | 46 | # PAIR |
45 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 24, []) |
| 47 | +g, data_qubit_locs, factory_ring = layout.gen_layout("pair", 24, []) |
46 | 48 | custom_layout_q24_pair_f8 = [data_qubit_locs, g] |
47 | 49 |
|
48 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 42, []) |
49 | | -custom_layout_q42_pair_f8 = [data_qubit_locs, g] |
| 50 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 42, []) |
| 51 | +#custom_layout_q42_pair_f8 = [data_qubit_locs, g] |
50 | 52 |
|
51 | | -g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 60, []) |
52 | | -custom_layout_q60_pair_f8 = [data_qubit_locs, g] |
| 53 | +#g, data_qubit_locs, factory_ring = co.plots.gen_layout("pair", 60, []) |
| 54 | +#custom_layout_q60_pair_f8 = [data_qubit_locs, g] |
53 | 55 |
|
54 | 56 | # ----------------------------- |
55 | 57 |
|
|
206 | 208 | ] |
207 | 209 |
|
208 | 210 |
|
209 | | -reps = 5 |
| 211 | +reps = 50 |
210 | 212 | both_metric = False |
211 | | -res_lst = co.plots.collect_data_space_time(instances, hc_params, reps, path, both_metric) |
| 213 | +res_lst = ev.collect_data_space_time(instances, hc_params, reps, path, both_metric) |
0 commit comments