in the context of QSVM after normalizing the input data can we use the feature map that applies the H gate on all the qubits and then rotates them according to some angle let’s say 2pie can we use this as a feature map in QSVM .
this is the code that i wrote :
Creating feature map
def feature_map(circuit, data):
n = len(data)
for i in range(n):
circuit.h(i)
for i, value in enumerate(data):
circuit.rx(2 * np.pi * value, i)
circuit.ry(2 * np.pi * value, i) #rotation around x and y axis
return circuit