Master thesis
Cite …

Training Quantum Kernels for Clustering Algorithms

Niklas Metz 1
1 Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000148603
PDF published on Jul 19, 2022
Abstract

Clustering is an important machine learning (ML) task, especially for applications dealing with large amounts of data. In these cases, clustering is used to detect structure in the data by grouping together similar datapoints. In this context, similarity is no strictly defined measure. Similarity is rather defined for each individual situation and dataset. This is the reason why there is no single clustering algorithm that is applicable to all situations, as each algorithm assumes a different cluster model. Furthermore, many clustering algorithms use interchangeable kernel functions that define the similarity between two samples.

These kernel functions can not only be calculated on classical computers, but recent research has shown that quantum computers are capable of computing them as well. Quantum computers are generally known to be able to solve specific problems, which are intractable on classical computers. The hope is that there are quantum kernel functions, which are classically intractable, and pose an advantage over classical kernel functions.

Furthermore, these quantum kernel functions can be defined in combination with variational quantum circuits (VQCs). VQCs are similar to classical neural networks (NNs) in that they have free parameters that can be optimized to represent a target function. Combining quantum kernels with VQCs makes the kernel function adjustable to reflect the actual structure of the provided data. This idea was first proposed in [Hub+21] and combined with a support vector machine (SVM).

This thesis instead proposes a combination of variational quantum kernels (VQKs) with classical clustering algorithms. While clustering is generally defined as a task of unsupervised learning, optimizing the parameters of a VQK is difficult without any labeled training data. Therefore this thesis considers two ways of training the VQK, completely unsupervised, where no labeled training data is available, and semi-supervised, where a small amount of labeled training data is available. The trained VQKs are then combined with various clustering algorithms that can utilize kernel functions.

In order to evaluate the proposed approach, a training and testing pipeline was implemented using a simulated quantum computer on classical hardware.

Extensive experiments show that the VQKs can be optimized using different semisupervised cost functions. Additionally, the trained quantum kernel can be used with many different classical clustering algorithms and perform well. In most cases the quantum kernel performs as well as or even better than the popular classical radial basis function (RBF) kernel. However, the unsupervised learning approaches proposed in this thesis were shown to not be able to optimize the kernel function.