While basic quantum feature maps, like those encoding data features into single-qubit rotations, provide a starting point, they often correspond to linear structures in the quantum feature space. Classical machine learning frequently benefits from non-linear transformations of input data, enabling models to capture complex relationships and decision boundaries. Polynomial kernels, for instance, are a standard technique in algorithms like Support Vector Machines (SVMs) to achieve this. They implicitly map data into a higher-dimensional space where features correspond to polynomial combinations of the original inputs, without explicitly calculating these high-dimensional vectors.
Quantum computing offers a way to construct feature maps that naturally generate equivalent, or potentially more powerful, non-linear relationships, including higher-order polynomial interactions between input features. The core idea is to design the quantum circuit U(x), which transforms the initial state ∣0⟩⊗n into the feature state ∣ϕ(x)⟩=U(x)∣0⟩⊗n, such that the interactions between qubits, modulated by the input data x, create entanglement patterns that encode these polynomial terms.
Consider a classical data point x=(x1,x2,...,xd). A simple feature map might encode each xi into the rotation angle of a single qubit. To introduce polynomial terms, we need interactions. This is typically achieved using entangling gates whose rotation angles depend on combinations of input features.
A common structure involves layers of single-qubit rotations and multi-qubit entangling gates. For example, a second-order polynomial feature map might use a circuit structure like this:
The resulting quantum state ∣ϕ(x)⟩ lives in the 2n-dimensional Hilbert space. The inner product between two such states, ⟨ϕ(x′)∣ϕ(x)⟩, defines the quantum kernel k(x,x′). Because the circuit U(x) includes entangling operations controlled by products of features (like xixj embedded within f2(xi,xj)), the resulting kernel k(x,x′) will contain polynomial terms of the input features x and x′.
For instance, using the f2(xi,xj)=(π−xi)(π−xj) interaction within a ZZ rotation effectively implements an evolution under an operator proportional to (π−xi)(π−xj)ZiZj. When calculating the kernel ⟨ϕ(x′)∣ϕ(x)⟩, terms involving products like xixjxi′xj′ can emerge, characteristic of a polynomial kernel.
Let's consider a simple two-qubit example (n=2) with data x=(x1,x2). A circuit structure involving H⊗2, then RZ(2x1) on qubit 1 and RZ(2x2) on qubit 2, followed by an entangling gate like e−iθZ1Z2 where θ=(π−x1)(π−x2), would generate a state ∣ϕ(x)⟩.
The kernel element between x and x′ is k(x,x′)=∣⟨ϕ(x′)∣ϕ(x)⟩∣2. Expanding the circuit operations U(x)=e−iθZ1Z2RZ(2x2)RZ(2x1)H⊗2 and U(x′)=e−iθ′Z1Z2RZ(2x2′)RZ(2x1′)H⊗2 with θ′=(π−x1′)(π−x2′), the calculation of ⟨00∣U†(x′)U(x)∣00⟩ will involve terms dependent on differences like (2x1−2x1′) and sums/differences of the interaction terms θ,θ′. This naturally leads to a kernel function k(x,x′) that is polynomial in x1,x2,x1′,x2′.
Specifically, feature maps involving k-local interactions (gates acting on k qubits) whose parameters depend on products of up to k features can generate kernels related to degree-k polynomials.
However, there are important considerations:
The following diagram illustrates the conceptual structure of a two-layer (d=2) second-order polynomial feature map for n qubits and a feature vector x.
A conceptual representation of a multi-layer quantum feature map designed to introduce polynomial interactions. Each layer applies data-dependent single-qubit rotations (RZ) and multi-qubit entangling interactions (RZ...Z) whose parameters f1,f2 are functions of the input features x.
In summary, higher-order polynomial quantum feature maps extend basic encoding strategies by incorporating multi-feature interactions via entangling gates. This allows the quantum state ∣ϕ(x)⟩ to encode non-linear relationships present in the classical data x, potentially leading to more expressive feature spaces and improved performance for QML algorithms designed to leverage quantum kernels. The design of these maps involves trade-offs between expressivity, circuit complexity, and resource requirements, which are important considerations for practical implementations.
© 2025 ApX Machine Learning