KnowledgeCookies logo Understanding the language of quantum science
Quantum Computing

Quantum Machine Learning

QUANTUM-ENHANCED COMPUTING & STATISTICAL LEARNING

Parametric Circuits, Quantum Kernels, and Optimization Landscapes

An axiomatic guide detailing quantum state embedding, Variational Quantum Algorithms, and the Barren Plateau paradox.

1. The Quantum Interface: Data Embedding Mappings

To process classical data vectors x⃗∈Rd\vec x\in\mathbb{R}^d via quantum subroutines, the data must first be mapped into a complex Hilbert space state vector. This transformation represents a non-linear data feature map: x⃗→∣ψ(x⃗)⟩\vec x\to|\psi(\vec x)\rangle.

Primary embedding modalities:

∣ψ(x⃗)⟩=∑i=02N−1xi∣i⟩where ∥x⃗∥=1|\psi(\vec x)\rangle=\sum_{i=0}^{2^N-1}x_i|i\rangle\qquad\text{where }\|\vec x\|=1

This yields exponential memory compression, but state preparation scaling can be highly non-trivial.

∣ψ(x⃗)⟩=⨂i=1N(cos⁡(xi)∣0⟩+sin⁡(xi)∣1⟩)|\psi(\vec x)\rangle=\bigotimes_{i=1}^{N}\big(\cos(x_i)|0\rangle+\sin(x_i)|1\rangle\big)

This requires exactly NN qubits for d=Nd=N features.

2. Variational Quantum Circuits (Parameterized Quantum Circuits)

The foundational framework for noisy intermediate-scale quantum (NISQ) machine learning is the parameterized quantum circuit (PQC). A PQC functions as a quantum neural network layer, executing optimization loops using a mix of data embeddings and adjustable parameter weights θ⃗\vec\theta.

The global ansatz transformation:

U(x⃗,θ⃗)=∏lUentangle Uvar(θl) Uembed(x⃗)U(\vec x,\vec\theta)=\prod_lU_{\text{entangle}}\,U_{\text{var}}(\theta_l)\,U_{\text{embed}}(\vec x)

The loss function is calculated by taking the expectation value of a target Hermitian measurement operator OO across the output state:

L(θ⃗)=⟨ψ(x⃗,θ⃗)∣ O ∣ψ(x⃗,θ⃗)⟩=Tr(U(x⃗,θ⃗) ρ0 U†(x⃗,θ⃗) O)L(\vec\theta)=\langle\psi(\vec x,\vec\theta)|\,O\,|\psi(\vec x,\vec\theta)\rangle=\mathrm{Tr}\big(U(\vec x,\vec\theta)\,\rho_0\,U^\dagger(\vec x,\vec\theta)\,O\big)

The parameter-shift rule: because quantum hardware cannot evaluate standard numeric backpropagation natively, exact analytical gradients are extracted by executing pairs of parameter shifts on hardware:

∂L∂θi=L ⁣(θi+π2)−L ⁣(θi−π2)2\frac{\partial L}{\partial\theta_i}=\frac{L\!\left(\theta_i+\frac{\pi}{2}\right)-L\!\left(\theta_i-\frac{\pi}{2}\right)}{2}

3. Quantum Kernel Methods & High-Dimensional Classification

Instead of training a variational circuit, quantum kernel methods map classical input vectors directly into an exponentially large, non-linear quantum Hilbert space. A classical support vector machine (SVM) evaluates these non-local overlap structures to draw decision boundaries.

The quantum transition kernel matrix. The structural similarity score between two classical data samples x⃗i\vec x_i and x⃗j\vec x_j is evaluated as the overlap of their respective quantum embedded representations:

K(x⃗i,x⃗j)=∣⟨ψ(x⃗i)∣ψ(x⃗j)⟩∣2=Tr(ρ(x⃗i) ρ(x⃗j))K(\vec x_i,\vec x_j)=\big|\langle\psi(\vec x_i)|\psi(\vec x_j)\rangle\big|^2=\mathrm{Tr}\big(\rho(\vec x_i)\,\rho(\vec x_j)\big)

The computational advantage: if the embedding map creates highly complex quantum structures that are impossible to calculate classically, the quantum kernel can capture hidden correlations that evade standard classical algorithms.

4. The Barren Plateau Bottleneck (QML Gotcha)

The primary obstacle preventing scalability in variational QML architectures is the barren plateau paradox. If an ansatz is unstructured (forming an approximate 2-design over the Haar measure), the gradient of the loss function vanishes exponentially as system size scales.

Var[∂iL]∈O ⁣(2−N)\mathrm{Var}\big[\partial_iL\big]\in O\!\left(2^{-N}\right)

Probing Questions & Answers

Try answering before you open the worked explanation. Browse all probing questions.

How many qubits and how much loading work does a 16×16 image require?

Flatten the 256 pixels to a vector x and, for nonzero x, prepare amplitudes xᵢ/‖x‖ on eight qubits. The circuit stores relative amplitudes. A computational-basis shot returns one pixel index with probability |xᵢ|²/‖x‖².

The eight-qubit width does not account for state preparation. Generic loading work scales with the number of entries up to implementation factors. Structured data or an assumed data-access oracle can change that cost, so count loading when comparing to a classical pipeline.

Why could a VQE estimate fall below the reference ground-state energy?

For the exact expectation of a fixed Hermitian H in any normalized trial state, expand in H's eigenbasis. The trial energy is a weighted average of the eigenenergies, with weights |cᵢ|², so it is at least the ground energy of H.

An estimate below the bound can result from finite-shot noise, biased mitigation, or comparing different Hamiltonians. For an anharmonic oscillator, compare first with exact diagonalization of the same truncated, encoded Hamiltonian before assessing the truncation against the continuous model.

Interview prep: Quantum Machine Learning32 practice questions with concise answers
Practise ↗