Curriculum / Quantum Machine Learning / Quantum Feature Maps

Lesson 5 of 15ReadingPro+75 XP

Quantum Feature Maps

Understand how quantum feature maps encode classical data into quantum states.

Quantum Feature Maps

A quantum feature map is a parameterized quantum circuit that encodes classical data x into a quantum state . This is the foundation of quantum kernel methods and quantum neural networks.

Why Feature Maps Matter

In classical machine learning, kernel methods avoid the curse of dimensionality by implicitly computing inner products in a high-dimensional feature space. The power comes from the feature map : the higher-dimensional space, the richer the structure you can capture.

Quantum feature maps take this to an extreme: an n-qubit quantum computer operates in a -dimensional Hilbert space. Even modest qubit counts give feature spaces that are impossible to represent explicitly on classical hardware.

The ZZ Feature Map (Pauli Feature Map)

The most commonly studied quantum feature map for kernel experiments is the ZZ feature map (also called the second-order Pauli feature map):

Layer 1 (Hadamard): Apply H to all qubits Layer 2 (Single-qubit): For each qubit i, apply Layer 3 (Two-qubit): For each pair (i, j): cx(i,j), , cx(i,j)

where .

Repeat layers 1-3 twice (reps=2) for a deeper feature map.

The pairwise interaction terms encode correlations between features. These cross terms are genuinely nonlinear and potentially hard for classical RBF kernels to capture.

Geometric Interpretation

Each data point x maps to a point on the surface of the -dimensional Hilbert space (a complex unit sphere). Two data points are "similar" if their quantum states have high overlap.

The geometry of the quantum feature space, which points are close and which are far, is determined by the feature map circuit. Designing feature maps with good geometry for a specific task is an open research problem.

Hardware-Efficient Feature Maps

For near-term hardware, feature maps must be shallow. A hardware-efficient feature map uses only native gate operations:

This is the opening of the lesson. The full walkthrough, the interactive circuit, and the graded challenge continue inside myqubit.

How this lesson works

A guided reading lesson with interactive knowledge checks. Concepts are explained step by step with circuit diagrams and runnable examples, and you confirm understanding before moving on.

Part of: Quantum Machine Learning

Apply quantum computing to machine learning with variational circuits and optimization.

This lesson is part of Pro

Unlock Quantum Machine Learning and all 10 tracks with Pro: $12.99/month, $79/year, or $97 lifetime. Start with the free track first if you are new.