QuantumSpeech-QCNN
QuantumSpeech-QCNN copied to clipboard
Speeding up Quantum pre-processing
Is there any way to speed up the process of Quantum pre-processing. In the following function:
def gen_qspeech(x_train, x_valid, kr): # kernal size = 2x2 or 3x3
q_train = []
print("Quantum pre-processing of train Speech:")
for idx, img in enumerate(x_train):
print("{}/{} ".format(idx + 1, len(x_train)), end="\r")
q_train.append(quanv(img, kr))
q_train = np.asarray(q_train)
q_valid = []
print("\nQuantum pre-processing of test Speech:")
for idx, img in enumerate(x_valid):
print("{}/{} ".format(idx + 1, len(x_valid)), end="\r")
q_valid.append(quanv(img, kr))
q_valid = np.asarray(q_valid)
return q_train, q_valid
to replace qml backend to CuQuantum could fix this issue https://developer.nvidia.com/cuquantum-sdk