Towards Quantum Graph Neural Networks: An Ego-Graph Learning Approach
Xing Ai, Zhihong Zhang, Luzhe Sun, Junchi Yan, Edwin Hancock
TL;DR
This work introduces the Ego-graph based Quantum Graph Neural Network (egoQGNN), a hybrid quantum–classical model for graph classification that operates on a fixed-size quantum device by decomposing graphs into ego-graphs. It replaces classical weight matrices with unitary gates and uses tensor product encodings to injectively embed neighborhood information, while a trainable mapping preserves Euclidean distances in Hilbert space. The framework leverages a three-part Ulayer circuit and a decomposition strategy to scale to real-world graphs, with von Neumann entropy used as a graph representation for classification. Empirical results show egoQGNN often outperforms state-of-the-art methods using only a fraction of the parameters, and the trainable mapping further reduces information loss, underscoring the method’s potential for near-term quantum hardware.
Abstract
Quantum machine learning is a fast-emerging field that aims to tackle machine learning using quantum algorithms and quantum computing. Due to the lack of physical qubits and an effective means to map real-world data from Euclidean space to Hilbert space, most of these methods focus on quantum analogies or process simulations rather than devising concrete architectures based on qubits. In this paper, we propose a novel hybrid quantum-classical algorithm for graph-structured data, which we refer to as the Ego-graph based Quantum Graph Neural Network (egoQGNN). egoQGNN implements the GNN theoretical framework using the tensor product and unity matrix representation, which greatly reduces the number of model parameters required. When controlled by a classical computer, egoQGNN can accommodate arbitrarily sized graphs by processing ego-graphs from the input graph using a modestly-sized quantum device. The architecture is based on a novel mapping from real-world data to Hilbert space. This mapping maintains the distance relations present in the data and reduces information loss. Experimental results show that the proposed method outperforms competitive state-of-the-art models with only 1.68\% parameters compared to those models.
