moved from s to ms

This commit is contained in:
Daniel Knüttel 2020-04-06 17:49:10 +02:00
parent e776a34e4d
commit 1a9123e82f

View File

@ -14,18 +14,18 @@ with open("qbit_scaling_meta.json") as fin:
meta = json.load(fin) meta = json.load(fin)
h0 = plt.errorbar(results_naive[:, 0], results_naive[:, 2], results_naive[:, 3] h0 = plt.errorbar(results_naive[:, 0], results_naive[:, 2]*1000, results_naive[:, 3]*1000
, 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" , marker="o"
, color="black") , color="black")
h1 = plt.errorbar(results_graph[:, 0], results_graph[:, 2], results_graph[:, 3] h1 = plt.errorbar(results_graph[:, 0], results_graph[:, 2]*1000, results_graph[:, 3]*1000
, 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="^" , marker="^"
, color="black") , color="black")
plt.legend(handles=[h0, h1]) plt.legend(handles=[h0, h1])
plt.xlabel("Number of Qbits $N_q$") plt.xlabel("Number of Qbits $N_q$")
plt.ylabel("Execution Time per Circuit [s]") plt.ylabel("Execution Time per Circuit [ms]")
plt.title(f"Execution Time for ${meta['ngates_per_qbit']}\\times N_q$ Gates with Random Circuits (Rescaled)") 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.savefig("scaling_qbits_linear.png", dpi=400)