Benchmarking a Tunable Quantum Neural Network on Trapped-Ion and Superconducting Hardware

Djamil Lakhdar-Hamina, Xingxin Liu, Richard Barney, Sarah H. Miller, Alaina M. Green, Norbert M. Linke, Victor Galitski · 2025

Read Benchmarking a Tunable Quantum Neural Network on Trapped-Ion and Superconducting Hardware by Djamil Lakhdar-Hamina, Xingxin Liu, Richard Barney, Sarah H. Miller, Alaina M. Green, Norbert M. Linke, Victor Galitski (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-21222.txt.

Introduction

A quantum neural network ran on two rival machines in a 2025 benchmark, and the noise that engineers curse turned out to help, up to a point. Djamil Lakhdar-Hamina and six co-authors trained the network in simulation, then ran its decisions on a trapped-ion computer and on IBM's superconducting hardware. The task was sorting handwritten digits.

A dial in the design slides the network between classical and quantum behavior. Turning it up added quantum uncertainty to the measurements, and accuracy improved at moderate settings. Images that a classical network got wrong, the quantum one sometimes caught, though its answers wobbled near decision borders in ways simulation never showed, a fingerprint of real hardware noise. Adding spare gate pairs measured that noise directly. The authors offer the setup as a springboard for larger quantum networks on today's imperfect machines.

Catalog record

CREATORDjamil Lakhdar-Hamina, Xingxin Liu, Richard Barney, Sarah H. Miller, Alaina M. Green, Norbert M. Linke, Victor Galitski
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE23 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-21222

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Benchmarking a Tunable Quantum Neural Network on Trapped-Ion and Superconducting Hardware Djamil Lakhdar-Hamina, Xingxin Liu, Richard Barney, Sarah H. Miller, Alaina M. Green, Norbert M. Linke, Victor Galitski Abstract We implement a quantum generalization of a neural network on trapped-ion and IBM superconducting quantum computers to classify MNIST images, a common benchmark in computer vision. The network feedforward involves qubit rotations whose angles depend on the results of measurements in the previous layer. The network is trained via simulation, but inference is performed experimentally on quantum hardware. The classical-to-quantum correspondence is controlled by an interpolation parameter, which is zero in the classical limit. Increasing it introduces quantum uncertainty into the measurements, which is shown to improve network performance at moderate values of the interpolation parameter. We then focus on particular images that fail to be classified by a classical neural network but are detected correctly in the quantum network. For such borderline cases, we observe strong deviations from the simulated behavior. We attribute this to physical noise, which causes the output to fluctuate between nearby minima of the classification energy landscape. Such strong sensitivity to physical noise is absent for clear images. We further benchmark physical noise by inserting additional single-qubit and two-qubit gate pairs into the neural network circuits. Our work provides a springboard toward more complex quantum neural networks on current devices: while the approach is rooted in standard classical machine learning, scaling up such networks may prove classically non-simulable and could offer a route to near-term quantum advantage. There exists a deep analogy between neural networks and spin models in statistical mechanics Hopfield 1982 ; Amit et al. 1985 ; Dotsenko 1994 ; Barney et al. 2024 . In this correspondence, neurons and weights are analogous to classical spins and couplings, respectively. It is natural to quantize these by promoting them to qubits and gates, respectively Barney et al. 2025 . This gives rise to a broad class of quantum neural networks. Much recent work in the field of quantum machine learning has focused on searching for “quantum advantage” Pudenz and Lidar 2013 ; Lloyd et al. 2013 ; Li et al. 2015 ; Ciliberto et al. 2018 ; Schuld et al. 2015 ; Biamonte et al. 2017 ; Wang and Liu 2024 ; Lloyd et al. 2020 ; Preskill 2018 . A variety of network architectures have been discussed in this context, and while some have been simulated under a variety of assumptions, few have been experimentally run on genuine quantum hardware Abbas et al. 2021 ; Huang et al. 2021 ; Kong et al. 2025 , let alone in the context of benchmarking on, e.g. , standard image classification tasks Cherrat et al. 2024 . No matter the implementation, such architectures typically do not allow for smooth interpolation between classical and quantum modes, making comparisons between classical neural networks (NN) and quantum neural networks (QNN) difficult. In the following, we present an architecture for a quantum neural network, which we dub the Benchmark Quantum Neural Network (BQNN), that has several attractive features: (1) It can be adiabatically tuned between the classical and quantum regime. (2) The circuit is deployable on any functional quantum computing platform with minimal demands on qubit count, gate fidelity, and connectivity. (3) Because the classical limit of BQNN reproduces a binary neural network, it can be benchmarked on any reference data set, enabling direct classical-quantum comparisons. (4) BQNN is generalizable to more complex hardware set-ups, including those not classically simulable Bermejo et al. 2024 ; Gil-Fuster et al. 2025 , by introducing partial mid-circuit measurements and feedback, bridging the field of measurement-induced phase transitions Li et al. 2019 with quantum neural networks. After reviewing the theory of this BQNN architecture, we present image classification results on both superconducting and trapped-ion hardware. The latter involves two distinct implementations involving gates driven by microwave and laser interactions as discussed below. The experimental results are largely consistent with the expected behavior informed by classical simulations. In particular, in an intermediate quantum regime where quantum uncertainty in measurements is present but does not fully randomize measurements, the BQNN implemented on real devices outperform the classical counterpart. We also examine how device noise affects performance and find that moderate levels of physical noise do not hinder inference. We even find instances where intentional introduction of noise improves performance, up to a limit. Strong gate noise, modeled here via insertion of pairs of single-qubit and two-qubit gates and their inverse, eventually degrades performance to the level of a random guess. The number of noise gates it takes to see a decrease in performance provides another neural-network-specific metric to characterize gate noise. To our knowledge, this study is the first to compare different hardware implementations of QNNs for benchmarking image classification. Ref. Barney et al. 2025 presents theory and simulation of a quantum partially binarized multilayer perceptron i.e. the BQNN. See Fig. 1a . This network may be smoothly tuned between classical and quantum modes of operation. This network is partially binarized in the sense that, while each training weight can take on any real value, the activations of the hidden layers are constrained to be \pm 1 . For a classical network this is done by using the activation function \phi(x)=\text{sgn}(x). (1) The activation of the i^{\text{th}} neuron in the k^{\text{th}} layer is d_{i}^{k}=\phi\left((W^{k}\mathbf{d}^{k-1})_{i}\right), (2) where \mathbf{d}^{0}=\mathbf{I} is the input vector and each W^{k} is a matrix of trainable parameters. In this way, information travels through the network layer by layer, in a process called feedforward. The output of the network with \ell-1 hidden layers is \mathbf{o}=W^{\ell}\mathbf{d}^{\ell-1}, (3) which is then the argument of the loss function during training. This classical network is then quantized in a straightforward way: binary neurons are promoted to qubits and activation functions are implemented by single-qubit rotations followed by projective measurements. By defining the activations as the results of projective measurements, the activations remain binarized. The circuit which implements the hidden layers is shown in Fig. 1a . To tune between quantum and classical regimes, we define the rotation angle of qubit i in layer k as \displaystyle\theta_{i}^{k}=\frac{\pi}{2}\begin{cases}1-\phi_{a}\left((W^{1}\mathbf{I})_{i}\right),&k=1\\ d_{i}^{k-1}-\phi_{a}\left((W^{k}\mathbf{d}^{(k-1)})_{i}\right),&k>1\end{cases}, (4) \displaystyle\phi_{a}(x)=\text{htanh}(x/a)=\begin{cases}\text{sgn}(x),&|x|\geq a\\ x/a,&|x|<a\end{cases}, (5) where \phi_{a} may be considered a quantum activation function. In the limit a\rightarrow 0 , \phi_{a} reduces to the classical activation function Eq. 1 . In this case, each rotation angle is either 0 or \pm\pi . This means that, under ideal conditions, the rotation gates will only move the qubits between computational basis states, the behavior of the a=0 network is deterministic, and is equivalent to the standard classical neural net. Non-zero values of a enable arbitrary angels of rotation and hence non-deterministic measurements. We identify a as a parameter describing the “quantumness” of the network. BQNN training was done using stochastic gradient descent with momentum Goodfellow et al. 2016 . A difficulty in gradient descent arises for both classical and quantized networks due to the activation function Eq. ( 1 ) having an undefined first derivative and probabilistic activations correspondingly. To overcome this, a clipped straight-through gradient estimator Bengio et al. 2013 was used. I.e., when backpropagating the gradients, the activations are treated as: \displaystyle d_{i}^{k}=\phi_{\text{back}}\left((W^{k}\mathbf{d}^{k-1})_{i}\right), (6) \displaystyle\phi_{\text{back}}(x)=\text{htanh}(x)=\begin{cases}\text{sgn}(x),&|x|\geq 1\\ x,&|x|<1\end{cases}. (7) This difference between the

Read the complete text