Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Supervised learning with quantum enhanced feature spaces

Quantum feature maps let SVMs classify data with a quantum processor

  • Problem Kernel SVMs get costly when the kernel is hard to evaluate on a classical computer. Earlier quantum SVMs need data as a coherent superposition, so they cannot take ordinary classical vectors as input.
  • Method The method encodes each classical vector as a quantum state using a diagonal feature circuit. It then either trains a variational circuit to find a separating hyperplane, or estimates the kernel on the device and solves a conventional SVM.
  • Results On a superconducting processor, the variational classifier reached 100% success at depth l = 4 on a test set of 20 points per label. The kernel method reached 100% for Sets I and II and 94.75% for Set III.

Why a quantum feature space for classifiers

Support vector machines separate labeled data with a hyperplane in a feature space reached through a non-linear map. Their practical cost depends on whether inner products between feature vectors can be evaluated efficiently, so the cost rises once the kernel becomes hard to compute. That situation motivates feature spaces whose overlaps a classical computer cannot easily estimate.

An earlier quantum version of the SVM needs the data in a coherent superposition, so it cannot be applied when the data arrive as ordinary classical vectors. The approach here keeps classical input and maps each vector to a quantum state whose overlaps define the kernel. Two classifiers follow from this: one trains a variational circuit to find a separating hyperplane, and the other estimates the kernel on the device and trains a conventional SVM.

The test data are artificial and are chosen so that the chosen map separates them perfectly. This separates the question of whether the classifier runs on hardware from the question of which feature map suits a practical data set.

Encoding data with a diagonal circuit

Each vector x is encoded by applying a diagonal circuit to the all-zero reference state, with Hadamard layers wrapped around the diagonal part. The full feature circuit is \( U_\Phi(\vec x)H^{\otimes n}U_\Phi(\vec x)H^{\otimes n} \) acting on \( |0\rangle^{\otimes n} \), where the diagonal part is \( U_\Phi(\vec x)=\exp\big(i\sum_{S\subseteq[n]}\phi_S(\vec x)\prod_{i\in S}Z_i\big) \).

The phases \( \phi_S(\vec x) \) are real functions of the data that depend non-linearly on x, and only terms with |S| ≤ 2 are used because they can be implemented efficiently.

For two qubits the single-qubit phases are set to x_i, and the pair phase is (π − x_1)(π − x_2), so the two qubits are coupled through the data. Each training set and each classification set holds 20 points per label.

A map built only from product states yields a kernel that factorizes over qubits and can be computed with resources that grow linearly in n, so it offers no quantum advantage. Exact evaluation of the inner product for a single diagonal layer is #P-hard, but under additive error one layer can be simulated classically by sampling. The hardness for circuits with two basis changes is a conjecture, which the authors support in the supplementary material.

Training the variational classifier

The variational part W(θ) has l layers, with θ in R^{2n(l+1)} and a bias b in [-1, 1] that is trained together with θ. Each layer pairs entangling CZ gates along the edges of the chip with a full layer of single-qubit SU(2) rotations.

The circuit is measured in the Z basis with the operator \( M_y = 2^{-1}(1 + yf) \), where f = Z1Z2 is the parity, and \( p_y(\vec x) = \langle \Phi(\vec x)|W^\dagger(\vec\theta)M_yW(\vec\theta)|\Phi(\vec x)\rangle \) gives the probability of outcome y. A point receives label y when the empirical frequency of y exceeds that of −y minus yb, so the bias moves the decision threshold: \( \hat p_y(\vec x) > \hat p_{-y}(\vec x) - yb \).

Training minimizes the empirical risk, which averages over the training set the probability that a point receives the wrong label.

The parameters are updated with SPSA, which the authors found to work well in the noisy setting, and the run stopped after 250 iterations. The cost used R = 200 although 2000 shots were taken in the experiment, to avoid gradient problems.

Classifier results across circuit depths

Five depths, from l = 0 to l = 4, were run on qubits Q0 and Q1 of the five-qubit processor. Three data sets were trained per depth, with 20 classifications per trained set, which gives 60 classifications per depth.

The cost converged to a lower value at l = 4 than at l = 0, although convergence took more optimization steps. Error mitigation barely changed the depth-0 results, where the authors say noise is not the limiting factor, but it helped substantially at larger depths.

At depth l = 4 the classifier reached 100% success on a test set of 20 points per label, shown in the inset histogram.

These checks use three data sets per depth, all built with the same feature map and parity measurement. They establish that the classifier runs and separates these data on hardware, not how it performs on natural data.

Estimating the kernel on the device

Each kernel entry is the transition probability \( |\langle\Phi(\vec x)|\Phi(\vec z)\rangle|^2 = |\langle 0^n|U_\Phi^\dagger(\vec x)U_\Phi(\vec z)|0^n\rangle|^2 \), obtained by applying the two feature circuits in sequence to the reference state.

The swap test was not used, because it needs controlled-SWAP gates that are not short-depth on a chip with local connectivity.

The classical dual problem gives multipliers α_i, and by complementary slackness only support vectors have nonzero α_i, so later kernel evaluations are needed only for them. Each entry used 50,000 shots with zero-noise extrapolation applied to the kernel entries. The support vectors then classified 10 randomly drawn test sets per training set.

Kernel results and their spread across sets

Sets I and II reached 100% success over all 10 test sets each.

For Set III the largest deviation between the experimental and ideal kernels occurs at K_{8,15}, and in the row 8 cut some near-zero entries become negative after mitigation.

The authors suggest that Set III's weaker readout could partly explain its result, with readout fidelities of 93.99% for Q0 and 95.47% for Q1, against 96.56% and 96.31% for Set I. The summed weight of negative kernel eigenvalues was 1.40, 1.27 and 2.41 for Sets I, II and III.

For Sets I and II error mitigation moved the hyperplane much closer to the ideal, whereas for Set III it moved the hyperplane further from the ideal.

Limitations

Sampling error can make the estimated kernel lose positive semi-definiteness, and the remedy from earlier work was not applied in this study. The authors found performance almost optimal without that remedy, although the dual problem is only concave for a positive semi-definite kernel.

The hardness of classical estimation rests on a conjecture for the relevant circuits, not on a proof. The data are constructed to be separable by the feature map, so the experiments show hardware implementation rather than an advantage on practical data.

Only two of the five qubits were used, and the labels are binary. The variational experiments used three data sets per depth, and the kernel experiments used three data sets with 10 test sets each.

Paper info

Authors
Vojtech Havlicek, Antonio D. Córcoles, Kristan Temme, Aram W. Harrow, Abhinav Kandala, Jerry M. Chow, Jay M. Gambetta
Venue
arXiv · Preprint
First published
2018-4-30
Added
2026-11-12
Updated
2018-6-5
Version
v2
arXiv
1804.11326
DOI
10.1038/s41586-019-0980-2
Category
quant-ph · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Vojtech Havlicek, Antonio D. Córcoles, Kristan Temme, Aram W. Harrow, Abhinav Kandala, Jerry M. Chow, Jay M. Gambetta (2018). Supervised learning with quantum enhanced feature spaces. arXiv:1804.11326v2. https://doi.org/10.1038/s41586-019-0980-2

BibTeX
@article{havlicek2018supervised,
  title = {{Supervised learning with quantum enhanced feature spaces}},
  author = {Vojtech Havlicek and Antonio D. Córcoles and Kristan Temme and Aram W. Harrow and Abhinav Kandala and Jerry M. Chow and Jay M. Gambetta},
  year = {2018},
  eprint = {1804.11326},
  archivePrefix = {arXiv},
  doi = {10.1038/s41586-019-0980-2},
  url = {https://arxiv.org/abs/1804.11326v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up