Questions tagged [kernel-methods]

Kernel methods are a class of machine learning algorithms for pattern analysis (e.g. SVMs). Any linear model can be turned into a non-linear model by applying the kernel trick to the model, i.e. replacing its features with a kernel function. Quantum computers are expected to improve existing classical kernel-based ML methods through their ability to efficiently access and manipulate data in large quantum feature spaces, which is classically intractable.

Let us consider a quantum model of the form

$$f(x) = \langle \phi(x)|\mathcal{M}|\phi(x)\rangle,$$

where $|\phi(x)\rangle$ is prepared by a fixed embedding circuit that encodes data inputs $x$, and $\mathcal{M}$ is an arbitrary observable. This model includes variational quantum machine learning models since the observable can effectively be implemented by a simple measurement that is preceded by a variational circuit. For example, applying a circuit $G(\theta)$ and then measuring the Pauli-Z observable $\sigma^0_z$ of the first qubit implements the trainable measurement $\mathcal{M}(\theta) = G^\dagger(\theta) \sigma^0_z G(\theta)$.

The main practical consequence of approaching quantum machine learning with a kernel approach is that instead of training $f$ variationally, we can often train an equivalent classical kernel method with a kernel executed on a quantum device. This quantum kernel is given by the mutual overlap of two data-encoding quantum states,

$$\kappa(x, x') = |\langle\phi(x')|\phi(x)\rangle|^2.$$

Kernel-based training, therefore, bypasses the processing and measurement parts of common variational circuits, and only depends on the data encoding. If the loss function is the hinge loss, the kernel method corresponds to a standard support vector machine (SVM) in the sense of a maximum-margin classifier. Other convex loss functions lead to more general variations of support vector machines [1].

10 questions
6
votes
1 answer

Is a "kernel" just the quantum equivalent of classical SVMs?

I'm confused about the relationship between kernel methods and SVM methods used in quantum machine learning. Sometimes the two seem to be used interchangeably, but often I'll see them both in the same sentence. I understand what an SVM is in the…
4
votes
1 answer

Why is the quantum kernel $\kappa(x,x')=|\langle\phi(x)|\phi(x')\rangle|^2$ defined with a square?

I've always wondered why the quantum kernel method \begin{equation}\label{QKM1} \kappa (x,x')=|\langle \phi(x) |\phi(x') \rangle {{|}^{2}} \end{equation} must be a square. After reading “Supervised learning with quantum-enhanced feature spaces" by…
Ren-Xin Zhao
  • 558
  • 3
  • 12
3
votes
1 answer

Data input limitations (size) for QML

I have done quite a few Google/paper searches but did not found an answer. I would like to test the possibility of speeding up/ improving the accuracy of an existing unsupervised machine learning (mainly clustering and pca) project. Before I analyse…
3
votes
1 answer

Advantage of density matrix over vector to form quantum kernel

In Maria Schuld, Supervised quantum machine learning models are kernel methods, Section III.A, on page 6, the third paragraph from the bottom states While from a quantum physics perspective it seems natural – and has been done predominantly in the…
3
votes
1 answer

How does the ZZ Feature Map influence the measurement?

I've been look at this Notebook from qiskit and trying to understand whats happening, but can't quite figure it out. From my understanding, rotations around the Z Axis do not influence the probabilities of measuring $|0\rangle$ and $|1\rangle$. So,…
2
votes
2 answers

Quantum SVM with large feature set

I am trying to practice QSVM from the following tutorial Introduction into Quantum Support Vector Machines The author has used 2 feature_dimension with 2 component PCA feature_dimension =2 Now my question is, why? Is it because of the limitation of…
1
vote
1 answer

Quantum neural networks and quantum kernels deal with nonlinearities

I'm trying to understand quantum neural networks from reading Alchieri et al.'s review paper. The following paragraph describes the differences between classical and quantum neural networks: Also, it is worth pointing out a key difference between…
1
vote
0 answers

How can I pass multiple embeddings in my function?

I have a problem with my code. I would like to try multiple embeddings in my kernel (I'm using the adjoint method). My idea is to pass them to the function and use them depending on what I pass. Unfortunately, it doesn't work as I think, or I can't…
1
vote
1 answer

Kernel ridge regression with qiskit's FeatureMap shows nonlinear patterns outside [0,1] range

I'm implementing a kernel ridge regressor using qiskit's FeatureMap and QuantumKernel to compute the alpha parameters of the solution. If I try to fit my model with non-normalized features I obtain strange, nonlinear patterns in my predictions. To…
0
votes
1 answer

QuantumKernel.construct_circuit:How to automatically build a quantum kernel circuit according to the QISKIT file?

This link https://qiskit.org/documentation/machine-learning/stubs/qiskit_machine_learning.kernels.QuantumKernel.construct_circuit.html#qiskit_machine_learning.kernels.QuantumKernel.construct_circuit tells us that the circuit can be built…
Ren-Xin Zhao
  • 558
  • 3
  • 12