The quantum version of SVM was initially proposed by Rebentrost et al. (2014), but this formulation requires the input data to be provided in coherent superposition states. Therefore, when the data are generated on a classical computer, the efficient application of this approach becomes impractical.
A different approach was proposed by Havlíček et al. (2019), where the data are provided purely classically, while the feature space is mapped by the quantum state $ \Phi: \mathbb{R}^n \rightarrow \vert \Phi(\vec{x}) \rangle \langle \Phi(\vec{x}) \vert $.
A commonly used feature map is ZZFeatureMap, this is a module of qiskit library, which involves a non-linear mapping of the input features. The encoding process works as follows:
- Initial State: The process begins by preparing all qubits in the initial state $ \vert 0^{\otimes n} \rangle $, followed by the application of Hadamard gates to create a uniform superposition.
- Single-Qubit Rotations: The classical data points are encoded into the rotation angles of single-qubit phase gates.
- Two-Qubit Entanglement/Rotations: Entangling layers, typically using CNOT gates, are applied between specified pairs of qubits to introduce two-qubit interactions.



