Variational quantum support vector machine based on Hadamard test