fixed some stuff as suggested by Simon

This commit is contained in:
2020-03-27 15:38:43 +01:00
parent 798793bdf5
commit 361167f5de
13 changed files with 20 additions and 19 deletions

View File

@@ -12,18 +12,18 @@ with open("qbit_scaling_meta.json") as fin:
h0 = plt.errorbar(results_naive[:, 0], results_naive[:, 2], results_naive[:, 3]
, label=f"Dense Vector Simulator $N_c={int(results_naive[:, 1][0])}$ circuits"
, label=f"Dense Vector Simulator $N_c={int(results_naive[:, 1][0])}$ Circuits"
, marker="o"
, color="black")
h1 = plt.errorbar(results_graph[:, 0], results_graph[:, 2], results_graph[:, 3]
, label=f"Graphical Simulator $N_c={int(results_graph[:, 1][0])}$ circuits"
, label=f"Graphical Simulator $N_c={int(results_graph[:, 1][0])}$ Circuits"
, marker="^"
, color="black")
plt.legend(handles=[h0, h1])
plt.xlabel("Number of Qbits $N_q$")
plt.ylabel("Execution time per circuit [s]")
plt.title(f"Execution Time for ${meta['ngates_per_qbit']}\\times N_q$ Gates with random Circuits (rescaled)")
plt.ylabel("Execution Time per Circuit [s]")
plt.title(f"Execution Time for ${meta['ngates_per_qbit']}\\times N_q$ Gates with Random Circuits (Rescaled)")
plt.savefig("scaling_qbits_linear.png", dpi=400)
plt.show()

View File

@@ -12,19 +12,19 @@ with open("qbit_scaling_meta.json") as fin:
h0 = plt.errorbar(results_naive[:, 0], results_naive[:, 2], results_naive[:, 3]
, label=f"Dense Vector Simulator $N_c={int(results_naive[:, 1][0])}$ circuits"
, label=f"Dense Vector Simulator $N_c={int(results_naive[:, 1][0])}$ Circuits"
, marker="o"
, color="black")
h1 = plt.errorbar(results_graph[:, 0], results_graph[:, 2], results_graph[:, 3]
, label=f"Graphical Simulator $N_c={int(results_graph[:, 1][0])}$ circuits"
, label=f"Graphical Simulator $N_c={int(results_graph[:, 1][0])}$ Circuits"
, marker="^"
, color="black")
plt.yscale("log")
plt.legend(handles=[h0, h1])
plt.xlabel("Number of Qbits $N_q$")
plt.ylabel("Execution time per circuit [s]")
plt.title(f"Execution Time for ${meta['ngates_per_qbit']}\\times N_q$ Gates with random Circuits (rescaled)")
plt.ylabel("Execution Time per Circuit [s]")
plt.title(f"Execution Time for ${meta['ngates_per_qbit']}\\times N_q$ Gates with Random Circuits (Rescaled)")
plt.savefig("scaling_qbits_log.png", dpi=400)
plt.show()

View File

@@ -16,8 +16,8 @@ h0 = plt.errorbar(results_graph0[:, 0], results_graph0[:, 2], results_graph0[:,
, color="black")
plt.legend(handles=[h0])
plt.xlabel("Number of gates in circuit")
plt.ylabel("Execution time per circuit [s]")
plt.xlabel("Number of Gates in Circuit")
plt.ylabel("Execution Time per Circuit [s]")
plt.title(f"Execution Time for Random Circuits")
plt.savefig("scaling_circuits_50qbit_linear.png", dpi=400)

View File

@@ -21,8 +21,8 @@ h1 = plt.errorbar(results_graph1[:, 0], results_graph1[:, 2], results_graph1[:,
, color="black")
plt.legend(handles=[h0, h1])
plt.xlabel("Number of gates in circuit")
plt.ylabel("Execution time per circuit [s]")
plt.xlabel("Number of Gates in Circuit")
plt.ylabel("Execution Time per Circuit [s]")
plt.title(f"Execution Time for Random Circuits")
plt.savefig("scaling_circuits_linear.png", dpi=400)

View File

@@ -21,8 +21,8 @@ h1 = plt.errorbar(results_graph1[:, 0], results_graph1[:, 2], results_graph1[:,
, color="black")
plt.legend(handles=[h0, h1])
plt.xlabel("Number of gates in circuit")
plt.ylabel("Execution time per circuit [s]")
plt.xlabel("Number of Gates in Circuit")
plt.ylabel("Execution Time per Circuit [s]")
plt.title(f"Execution Time for Random Circuits with Random Measurements")
plt.savefig("scaling_circuits_measurements_linear.png", dpi=400)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 173 KiB