Canonical quantization of neurons
2026-07-06 • Machine Learning
Machine Learning
AI summaryⓘ
The authors present a way to make a basic building block of machine learning, the neuron, work in quantum computing by replacing its energy function with a quantum version. They create a method to measure the neuron's output as a quantum observable and develop hybrid algorithms to train these quantum neurons using quantum and classical tools. Their experiments show that these quantum neurons can learn more complex functions than classical ones. This work introduces a new approach to build quantum neural networks suitable for quantum data.
canonical quantizationquantum neuronquantum Hamiltonianactivation functionquantum machine learningHadamard testHamiltonian simulationquantum observablegradient estimationhybrid quantum-classical algorithms
Authors
Alexander He, Nana Liu, Mark M. Wilde
Abstract
Canonical quantization provides a systematic procedure for constructing quantum models from classical Hamiltonians. Here, we apply this principle to a fundamental computational primitive of machine learning: the neuron. Specifically, by viewing a neuron as a composition of an energy function and an activation function, we quantize this model by replacing the energy function with a quantum Hamiltonian and applying the activation function to it through matrix functional calculus. This results in an activation observable that can be measured on an input quantum state. We investigate the use of these quantized neurons for function approximation, where the objective is to learn an unknown observable from labeled quantum data. For this purpose, we develop hybrid quantum-classical algorithms for training and evaluation, including procedures for measuring the activation observable and estimating gradients of the squared loss error. Our algorithms for gradient estimation rely on basic primitives like classical random sampling, the Hadamard test, and Hamiltonian simulation, and those for measuring an activation observable rely on quantum algorithms known as the power of one qumode and Schroedingerization. Numerical experiments demonstrate that our quantized neurons exhibit enhanced expressive capabilities relative to corresponding classical neurons on representative learning tasks. Our work establishes canonical quantization as a principled framework for constructing quantum machine learning primitives and provides a foundation for developing neural architectures tailored to quantum data.