Skip to main content
KetQat

Appearance

Theorem · intermediate

Quantum kernels are positive semidefinite kernels

Every quantum kernel K(x, x') = Tr(rho(x) rho(x')) is a symmetric positive semidefinite kernel, being the Hilbert–Schmidt inner product of the feature states; hence the representer theorem and standard kernel methods apply to it.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

For every finite set of inputs x1,…,xm∈Xx_1, \dots, x_m \in \mathcal X, the Gram matrix Gij=K(xi,xj)G_{ij} = K(x_i, x_j) is real, symmetric and positive semidefinite: ∑i,jcicj K(xi,xj)≥0\sum_{i,j} c_i c_j\, K(x_i, x_j) \ge 0 for all c∈Rmc \in \R^m. Moreover 0≤K(x,x′)≤10 \le K(x, x') \le 1, and K(x,x)=1K(x, x) = 1 exactly when ρ(x)\rho(x) is pure.

So KK is a valid kernel in the sense of classical kernel methods, with feature space the real vector space of Hermitian operators under the Hilbert–Schmidt inner product ⟨A,B⟩=Tr⁡(AB)\langle A, B\rangle = \tr(AB) and feature vector ρ(x)\rho(x). Learning with KK is therefore linear learning in that feature space, and by the representer theorem the optimal predictor of a regularized kernel method is a linear combination of the K(xi,⋅)K(x_i, \cdot) — which is why only kernel values, not the exponentially large feature vectors, are needed. Schuld and Killoran developed this feature-space view of quantum models.

Holds when

  • x↦ρ(x)x \mapsto \rho(x) is any map from an input set X\mathcal X into density operators on a finite-dimensional Hilbert space, and K(x,x′)=Tr⁡(ρ(x)ρ(x′))K(x, x') = \tr(\rho(x)\rho(x')).

Proof

Proof that quantum kernels are positive semidefiniteMachine-checked

Real and symmetric. For Hermitian A,BA, B, Tr⁡(AB)‾=Tr⁡((AB)†)=Tr⁡(BA)=Tr⁡(AB)\overline{\tr(AB)} = \tr\big((AB)\dagg\big) = \tr(BA) = \tr(AB), so K(x,x′)K(x, x') is real, and Tr⁡(AB)=Tr⁡(BA)\tr(AB) = \tr(BA) gives symmetry.

Positive semidefinite. For c∈Rmc \in \R^m let A=∑iciρ(xi)A = \sum_i c_i \rho(x_i), a Hermitian operator. Then

∑i,jcicjK(xi,xj)=Tr⁡(∑iciρ(xi)∑jcjρ(xj))=Tr⁡(A2)=Tr⁡(A†A)≥0.\sum_{i,j} c_i c_j K(x_i, x_j) = \tr\Big(\sum_i c_i\rho(x_i) \sum_j c_j \rho(x_j)\Big) = \tr(A^2) = \tr(A\dagg A) \ge 0 .

Bounds. Tr⁡(ρσ)≥0\tr(\rho\sigma) \ge 0 for positive operators, since Tr⁡(ρσ)=Tr⁡(ρ1/2σρ1/2)\tr(\rho\sigma) = \tr(\rho^{1/2}\sigma\rho^{1/2}) and ρ1/2σρ1/2≥0\rho^{1/2}\sigma\rho^{1/2} \ge 0. By the Cauchy–Schwarz inequality for the Hilbert–Schmidt inner product, Tr⁡(ρσ)≤Tr⁡ρ2Tr⁡σ2≤1\tr(\rho\sigma) \le \sqrt{\tr\rho^2}\sqrt{\tr\sigma^2} \le 1, because Tr⁡ρ2≤(Tr⁡ρ)2=1\tr\rho^2 \le (\tr\rho)^2 = 1 for a positive operator of unit trace. Finally K(x,x)=Tr⁡ρ(x)2K(x, x) = \tr\rho(x)^2, the purity, equals 1 if and only if ρ(x)\rho(x) has a single non-zero eigenvalue, that is, is pure.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Maria Schuld, Nathan Killoran (2019). Quantum machine learning in feature Hilbert spaces. Physical Review Letters 122, 040504. doi:10.1103/PhysRevLett.122.040504arXiv:1803.07128

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Proof-level check: K is the Hilbert-Schmidt inner product of Hermitian feature vectors, hence real, symmetric, positive semidefinite; 0 <= tr(rho sigma) <= ||rho|| tr(sigma) <= 1; K(x,x) = tr(rho^2) = 1 iff pure. Representer-theorem remark is standard kernel theory. Feature-space view attributed to Schuld-Killoran (PRL 122, 040504; metadata via Crossref).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision ea8ac874e4216dca. Source file knowledge/records/theorem/quantum-kernels-are-positive-semidefinite.md in the content repository (readable there once it is public).