Automatic and effective discovery of quantum kernels
Massimiliano Incudini, Daniele Lizzio Bosco, Francesco Martini, Michele Grossi, Giuseppe Serra, Alessandra Di Pierro
TL;DR
The paper addresses the challenge of engineering effective quantum kernels for specific tasks by introducing an automatic kernel-discovery framework. It models quantum kernels as discrete combinatorial objects representing parameterized quantum circuits and optimizes a task-aware cost function using flexible heuristics, including Bayesian optimization and RL, with expressivity control via bandwidth and projections. Key contributions include formalizing the kernel-design space QK_{n,m}, defining informative criteria (Norm of A, DLA rank, Kernel-target alignment, Task-model alignment, and validation error), and demonstrating that automated kernels can match or surpass manually designed kernels in a high-energy physics anomaly-detection benchmark, sometimes outperforming state-of-the-art quantum kernels. The work shows the practical value of automation in quantum kernel design, provides open-source software, and outlines directions for extending optimization strategies and applying the approach to other tasks. Overall, it advances the feasibility of deploying quantum-kernel methods on NISQ devices by reducing manual engineering and enabling principled, task-aligned kernel discovery, with demonstrated gains in a representative HEP setting.
Abstract
Quantum computing can empower machine learning models by enabling kernel machines to leverage quantum kernels for representing similarity measures between data. Quantum kernels are able to capture relationships in the data that are not efficiently computable on classical devices. However, there is no straightforward method to engineer the optimal quantum kernel for each specific use case. We present an approach to this problem, which employs optimization techniques, similar to those used in neural architecture search and AutoML, to automatically find an optimal kernel in a heuristic manner. To this purpose we define an algorithm for constructing a quantum circuit implementing the similarity measure as a combinatorial object, which is evaluated based on a cost function and then iteratively modified using a meta-heuristic optimization technique. The cost function can encode many criteria ensuring favorable statistical properties of the candidate solution, such as the rank of the Dynamical Lie Algebra. Importantly, our approach is independent of the optimization technique employed. The results obtained by testing our approach on a high-energy physics problem demonstrate that, in the best-case scenario, we can either match or improve testing accuracy with respect to the manual design approach, showing the potential of our technique to deliver superior results with reduced effort.
