Spaces:
Runtime error
Runtime error
Amit commited on
Commit ·
835cba9
1
Parent(s): 4298361
plot display updated.
Browse files
plot_scripts/plot_display_all.py
CHANGED
|
@@ -24,7 +24,7 @@ from plot_scripts_all import *
|
|
| 24 |
# p_com_cap = input(" Enter the choice of the compute capability : ")
|
| 25 |
# p_prec = input(" Enter the choice of the precision : ")
|
| 26 |
|
| 27 |
-
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda']
|
| 28 |
|
| 29 |
def abs_time(t, cc, pr, compare_pack, N_end):
|
| 30 |
|
|
|
|
| 24 |
# p_com_cap = input(" Enter the choice of the compute capability : ")
|
| 25 |
# p_prec = input(" Enter the choice of the precision : ")
|
| 26 |
|
| 27 |
+
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda', 'qpp', 'myqlm', 'myqlm_cpp', 'braket']
|
| 28 |
|
| 29 |
def abs_time(t, cc, pr, compare_pack, N_end):
|
| 30 |
|
plot_scripts/plot_display_com_cap_all.py
CHANGED
|
@@ -9,7 +9,7 @@ sys.path.append('/plot_scripts/')
|
|
| 9 |
from map_packages_colors_all import *
|
| 10 |
from plot_scripts_all import *
|
| 11 |
|
| 12 |
-
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda']
|
| 13 |
|
| 14 |
|
| 15 |
def _build_data_mat(task, cc_1, cc_2, pr, _n_arr):
|
|
@@ -101,7 +101,18 @@ def abs_time_pack(task, pr, N_end, cc_1, cc_2):
|
|
| 101 |
|
| 102 |
# params = {'figure.figsize': (10, 10)}
|
| 103 |
# plt.rcParams.update(params)
|
| 104 |
-
plt.imshow(data_mat, cmap='OrRd')#, vmin=-16, vmax=0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
plt.yticks(range(len(pkg_str)), package_str)
|
| 107 |
locs, labels = plt.yticks()
|
|
@@ -199,7 +210,8 @@ def comp_time_pack(task_1, task_2, pr, N_end, cc_1, cc_2):
|
|
| 199 |
# params = {'figure.figsize': (10, 10)}
|
| 200 |
# plt.rcParams.update(params)
|
| 201 |
|
| 202 |
-
plt.imshow(comp_data_mat, cmap='Spectral')#, vmin=-16, vmax=0)
|
|
|
|
| 203 |
|
| 204 |
plt.yticks(range(len(pkg_str)), package_str)
|
| 205 |
locs, labels = plt.yticks()
|
|
|
|
| 9 |
from map_packages_colors_all import *
|
| 10 |
from plot_scripts_all import *
|
| 11 |
|
| 12 |
+
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda', 'qpp', 'myqlm', 'myqlm_cpp', 'braket']
|
| 13 |
|
| 14 |
|
| 15 |
def _build_data_mat(task, cc_1, cc_2, pr, _n_arr):
|
|
|
|
| 101 |
|
| 102 |
# params = {'figure.figsize': (10, 10)}
|
| 103 |
# plt.rcParams.update(params)
|
| 104 |
+
# plt.imshow(data_mat, cmap='OrRd')#, vmin=-16, vmax=0)
|
| 105 |
+
|
| 106 |
+
if cc_1 == "singlethread" and cc_2 == "multithread":
|
| 107 |
+
plt.imshow(data_mat, cmap='gist_heat_r', vmin=-4.5, vmax=30)
|
| 108 |
+
#### ST/GPU
|
| 109 |
+
elif cc_1 == "singlethread" and cc_2 == "gpu":
|
| 110 |
+
# 800 single precision
|
| 111 |
+
# 550 double precision
|
| 112 |
+
plt.imshow(data_mat, cmap='gist_heat_r', vmin=-50., vmax=550)
|
| 113 |
+
### MT/GPU
|
| 114 |
+
elif cc_1 == "multithread" and cc_2 == "gpu":
|
| 115 |
+
plt.imshow(data_mat, cmap='gist_heat_r', vmin=-10., vmax=100)
|
| 116 |
|
| 117 |
plt.yticks(range(len(pkg_str)), package_str)
|
| 118 |
locs, labels = plt.yticks()
|
|
|
|
| 210 |
# params = {'figure.figsize': (10, 10)}
|
| 211 |
# plt.rcParams.update(params)
|
| 212 |
|
| 213 |
+
# plt.imshow(comp_data_mat, cmap='Spectral')#, vmin=-16, vmax=0)
|
| 214 |
+
plt.imshow(comp_data_mat, cmap='gist_heat_r', vmin=-0.5)
|
| 215 |
|
| 216 |
plt.yticks(range(len(pkg_str)), package_str)
|
| 217 |
locs, labels = plt.yticks()
|
plot_scripts/plot_display_com_pack.py
CHANGED
|
@@ -24,7 +24,7 @@ from plot_scripts_all import *
|
|
| 24 |
# p_com_cap = input(" Enter the choice of the compute capability : ")
|
| 25 |
# p_prec = input(" Enter the choice of the precision : ")
|
| 26 |
|
| 27 |
-
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda']
|
| 28 |
|
| 29 |
# N = 36
|
| 30 |
ngates_hdyn = [5544, 7722, 9900, 12078, 14256, 16434, 18612, 20790, 22968, 25146, 27324, 29502, 31680, 33858, 36036, 38214]
|
|
|
|
| 24 |
# p_com_cap = input(" Enter the choice of the compute capability : ")
|
| 25 |
# p_prec = input(" Enter the choice of the precision : ")
|
| 26 |
|
| 27 |
+
package_str = ['qiskit' , 'cirq', 'qsimcirq', 'pennylane', 'pennylane_l', 'qibo', 'qibojit', 'yao', 'quest', 'qulacs', 'intel_qs_cpp', 'projectq', 'svsim', 'hybridq', 'hiq', 'qcgpu', 'qrack_sch', 'cuquantum_qiskit', 'cuquantum_qsimcirq', 'qpanda', 'qpp', 'myqlm', 'myqlm_cpp', 'braket']
|
| 28 |
|
| 29 |
# N = 36
|
| 30 |
ngates_hdyn = [5544, 7722, 9900, 12078, 14256, 16434, 18612, 20790, 22968, 25146, 27324, 29502, 31680, 33858, 36036, 38214]
|