---
title: Quanvolutional Neural Networks
url: https://www.emergentmind.com/topics/quanvolutional-neural-networks-qnns
type: topic
---

# Quanvolutional Neural Networks

Searching arXiv for recent and foundational papers on quanvolutional neural networks to ground the article.
Quanvolutional neural networks are hybrid quantum–classical architectures in which local patches of an input image or spectrogram are encoded into small quantum states, transformed by quantum circuits, and decoded into classical feature maps for downstream learning. The paradigm was introduced as a quantum replacement for a classical convolutional filter bank using fixed random circuits on local image patches [1904.04767], and has since expanded to include variational quanvolutional layers with alternative image encodings [2106.07327], fidelity-based quantum filters with entanglement-based backpropagation [2210.05443], integrated encoding–processing schemes with quantization and memoization [2410.05777], residualized trainable quanvolutional stacks [2402.09146], and QCNN formulations in which local quantum gates themselves are treated as convolutional operators on amplitude-encoded data [2504.08487]. Across this literature, the acronyms QNN, QuNN, QCNN, and QuCNN are used for closely related but not identical constructions.

## 1. Historical emergence and conceptual scope

The original quanvolutional proposal replaced the first classical convolutional layer of a CNN with a bank of small quantum circuits acting on local patches. In the MNIST experiments of Henderson et al., each \(3\times 3\) patch was thresholded, encoded into a 9-qubit state, processed by a fixed random quantum circuit, and decoded into a scalar feature; the resulting hybrid QNN slightly exceeded a classical CNN in test accuracy and reached comparable accuracy in fewer training iterations [1904.04767]. This formulation established the canonical near-term view of quanvolution: shallow, local quantum feature extraction embedded inside an otherwise classical pipeline.

A second, partially overlapping lineage came from quantum convolutional neural networks for quantum states, especially the MERA-inspired construction discussed in the tutorial by Oh et al. That literature emphasized logarithmic-depth circuits, hierarchical coarse-graining, and classification of quantum many-body data, but the same tutorial also treated hybrid image models in which a quantum convolutional layer is inserted into a classical CNN and implemented with TensorFlow Quantum [2009.09423]. The result is a terminological overlap: in some papers, QCNN denotes a hierarchical circuit on quantum data; in others, it denotes a quanvolutional front-end for classical data.

Subsequent work diversified the design space rather than converging on a single canonical architecture. Some papers retained fixed random quantum filters to avoid quantum-layer training costs [2206.03960, 2410.05777]. Others made the quanvolutional circuit variational [2106.07327, 2402.09146], or redefined the “convolution” itself as a state-overlap computation between amplitude-encoded data states and trainable quantum filter states [2210.05443]. More recent work went further by arguing that local quantum gates already implement convolution-like operations on amplitude-encoded registers, so that a QCNN can be designed by exposing this native block-diagonal action rather than by emulating classical convolutions patch by patch [2504.08487].

## 2. Canonical quanvolutional operation

A standard quanvolutional layer maps a local classical patch \(x\) to one or more classical features through three primitives: encoding, quantum evolution, and measurement. In the variational formulation used by Kölle et al., if \(\rho(x)\) is the encoded patch state and \(U(\boldsymbol\theta)\) the quantum circuit, the \(j\)th feature is
\[
f_j(x;\boldsymbol\theta)
\;=\;
\Tr\!\Bigl[\,U(\boldsymbol\theta)\,\rho(x)\,U^\dagger(\boldsymbol\theta)\,M_j\Bigr],
\qquad j=1\ldots Q,
\]
with \(M_j\) typically chosen as a Pauli-\(Z\) observable [2106.07327]. This expectation-value form is now the dominant mathematical abstraction for quanvolutional feature extraction.

In fixed-filter quanvolutional models, \(U(\boldsymbol\theta)\) is replaced by a circuit whose parameters are randomly sampled once and then held static. Henderson et al. used shallow random circuits on threshold-encoded \(3\times 3\) patches and reduced the resulting quantum state to a scalar by selecting the most likely bitstring and counting the number of ones [1904.04767]. Many later implementations instead measure each qubit in the \(Z\)-basis and use all \(n\) expectation values as an \(n\)-channel output for each patch, which makes the quanvolutional output resemble a classical multi-channel convolutional feature map [2206.03960].

Lizzio Bosco et al. formalized the usual quanvolutional workflow as a four-step pipeline: optional input binary quantization, classical-to-quantum encoding, quantum processing, and quantum-to-classical decoding [2410.05777]. In that description, rotational encoding uses
\[
R_x(\theta)=\exp(-i\theta X),\qquad \theta=p_i\cdot \pi,
\]
or threshold encoding applies either an \(X\) gate or identity depending on whether the binarized pixel equals \(1\) or \(0\). The processing stage applies a fixed sequence of single- and two-qubit gates, and the decoding stage commonly reduces the output distribution to the average number of qubits found in \(|1\rangle\) [2410.05777].

The locality prior of classical convolution survives in these constructions through the patching scheme rather than through a global translationally equivariant operator. A quanvolutional layer typically scans the input with an \(m\times m\) or \(k\times k\) kernel, applies the same quantum circuit to every patch, and assembles the resulting measured features into a feature map. This suggests that quanvolution inherits the patchwise inductive bias of classical convolution even when the quantum circuit itself is highly non-classical.

## 3. Encodings and circuit constructions

The most immediate architectural choice is the image or patch encoding. Kölle et al. compared three approaches: threshold encoding, FRQI, and NEQR [2106.07327]. Threshold encoding uses one qubit per pixel and \(O(F^2)\) single-qubit \(X\) gates. FRQI uses one color qubit plus \(2n\) position qubits for an \(F=2^n\) patch and requires one controlled-\(R_y(\theta_i)\) per pixel plus \(2n\) Hadamards, for a total of \(O(2^{4n})\) gates. NEQR uses \(2n\) position qubits plus 8 color qubits and also has worst-case \(O(2^{4n})\) gate complexity, reducible by classical logic minimization [2106.07327]. Their experiments showed that trainable circuits helped FRQI most strongly: for \(2\times 2\) filters, FRQI improved from \(80.6\%\) to \(85.4\%\), and for \(4\times 4\) filters from \(60.2\%\) to \(71.5\%\), while threshold encoding remained competitive in untrainable settings [2106.07327].

A different line of work focuses on reducing the rigid coupling between patch size and qubit count. In the standard rotational or threshold pipeline, a \(k\times k\) patch requires exactly \(n=k^2\) qubits, and the number of two-qubit gates grows as \(O(k^4)\) [2410.05777]. The integrated encoding scheme of Lizzio Bosco et al. instead combines encoding and processing into a single circuit
\[
U_{\rm int}(x)=\prod_{l=1}^L \exp\!\bigl[-i\,\alpha(x_{j_l})\,(\sigma_{\alpha_l}\otimes\sigma_{\beta_l})\bigr]_{(q_{a_l},q_{b_l})},
\]
with \(L\ge k^2\), random feature assignments, random qubit pairs, and one of three scalar mappings \(\alpha(\cdot)\) [2410.05777]. Because each gate both injects classical information and performs a two-qubit interaction, the number of qubits \(n\) can be chosen independently of the filter size \(k\). In their experiments, the integrated model used a fixed \(n=4\) qubits and \(L=2k^2\) gates, so a \(5\times 5\) kernel required \(50\) two-qubit rotations on 4 qubits rather than 25 qubits and about 119 gates in the rotational baseline [2410.05777].

The same paper also introduced a preprocessing optimization that is particularly relevant for quanvolution’s high circuit-call count. The \(N\)-level quantizer
\[
q(x)=\lfloor x\cdot N\rfloor/(N-1),\qquad x\in[0,1),
\]
creates a finite grid of patch values that can be memoized in a hash table. Only the first occurrence of a quantized patch triggers a quantum circuit execution; later occurrences reuse the cached output [2410.05777]. Empirically, using \(N=50\) on \(3\times 3\) patches yielded \(\mathrm{MSE}\lesssim 10^{-5}\) on both MiraBest and LArTPC and reduced circuit calls by about \(96\)–\(97\%\) [2410.05777].

A more radical reconstruction of quanvolution appears in QuCNN. There, each image patch is amplitude-encoded as a quantum data state \(|X_j\rangle\), each filter is a trainable quantum state \(|\Psi_i(\theta^{(i)})\rangle\), and the “convolution” is a similarity score given by the squared overlap
\[
F_{ij}=|\langle \Psi_i|X_j\rangle|^2=\Tr(\rho_f^{(i)}\rho_d^{(j)}),
\]
estimated via a SWAP test [2210.05443]. The ancilla measurement obeys
\[
P(M_Z=0)=\tfrac12+\tfrac12|\langle\Psi_i|X_j\rangle|^2,
\]
so local feature extraction becomes a fidelity estimation problem rather than an expectation-value readout of a single encoded patch [2210.05443]. This formulation is closer to matched filtering in a Hilbert space of quantum states than to the random-feature perspective of early quanvolution.

## 4. Trainability, depth, and theoretical reformulations of convolution

Early quanvolutional layers were mostly static. Henderson et al. explicitly kept the quantum filters fixed and trained only the classical part of the network [1904.04767]. Later work showed that making the quantum layer trainable can materially alter performance, but also introduces severe gradient-flow constraints. In ResQuNN, Kashif and Shafique parameterized the quanvolutional unitary as
\[
U(\mathbf{x};\boldsymbol{\theta}) =
\Bigl[\prod_{i=1}^{n-1}CNOT_{i,i+1}\Bigr]
\Bigl[\bigotimes_{i=1}^n RX(\theta_i)\Bigr]
\Bigl[\bigotimes_{i=1}^n RY(x_i)\Bigr],
\]
and reported that a static QuNN reached about \(25\%\) accuracy on 1,000 MNIST images after 30 epochs, whereas a trainable quanvolutional layer reached about \(61\%\) [2402.09146]. They further found that multi-layer trainable QuNNs suffered from missing gradients in early quantum layers unless residual connections were inserted.

The central empirical result of ResQuNN is that skip-connection placement matters. In a two-layer model, only the residual configurations \(O_1+O_2\) and \((X+O_1)+O_2\) enabled gradient flow through both quantum layers; the no-residual and \(X+O_1\) configurations stalled at about \(10\%\) accuracy [2402.09146]. In the three-layer case, only \((O_1+O_2)+O_3\) and \(((X+O_1)+O_2)+O_3\) admitted gradients in all three quanvolutional layers [2402.09146]. This suggests that depth in trainable quanvolution is not merely a matter of stacking more PQCs; it requires an architecture-level remedy for measurement-induced optimization bottlenecks.

QuCNN proposed a different answer to the training problem: perform backpropagation through a SWAP-test-based ancilla routine. Using the parameter-shift rule,
\[
\frac{\partial O_j}{\partial \theta_k}
=
\tfrac12\bigl[O_j(\theta_k+\pi/2)-O_j(\theta_k-\pi/2)\bigr],
\]
and a second ancilla qubit to encode the backpropagated weight \(\partial L/\partial O_j\), the authors showed how to estimate the weighted loss gradient directly on chip [2210.05443]. In their MNIST-subset experiments, forward-pass feature maps matched classical convolutional maps with mean absolute error \(\lesssim 0.02\), the gradient error fell to \(\lesssim 0.03\) with 4,096 shots, and a 3-layer ansatz reached \(>99\%\) fidelity with an ideal target filter state after \(\lesssim 100\) optimization steps [2210.05443].

A more foundational reformulation appears in the “inherent convolution” view of quantum neural networks. Qu et al. showed that if an \(n\)-qubit unitary \(U\) acts on the \(n\) least-significant qubits of an \(m\)-qubit amplitude-encoded register, then the full operator \(I_{2^{m-n}}\otimes U\) is block-diagonal with repeated \(U\) blocks, so the same \(2^n\times 2^n\) weight matrix is applied simultaneously to each local patch [2504.08487]. Their Theorem 1 identifies this action with a stride \(2^n\), kernel-size \(2^n\), \(2^n\)-channel convolution; a single \(n\)-qubit gate implements \(2^{m-n}\times2^n\) multiplies in one shot, whereas a classical convolutional layer would require \(O(2^m)\) scalar multiplications [2504.08487]. In this framework, parameter sharing follows from block-diagonal repetition, local connectivity from using \(n\ll m\), and dilation from changing which qubits the gate acts upon.

Related QCNN work has attempted to address two long-standing objections to quantum neural networks: the absence of intrinsic nonlinearity and barren plateaus. Yang proposed orthonormal basis expansions of power-series features to induce nonlinear effects and direct unitary-matrix parameterization to avoid deep stacks of parameterized gates [2508.02459]. That model was trained in PyTorch on matrix representations and then validated in Qiskit; the reported accuracies of the two simulations agreed to within \(0.1\%\) on resized MNIST [2508.02459]. This suggests that some recent QCNN designs are moving away from gate-by-gate variational circuits toward matrix-native quantum convolution blocks.

## 5. Empirical performance across benchmark and application domains

The earliest MNIST benchmark results established both the promise and the ambiguity of quanvolution. Henderson et al. reported that after 10,000 training steps, a classical CNN reached about \(98.1\%\) test accuracy, the QNN about \(98.4\%\), and a classical random-nonlinearity control about \(98.3\%\) [1904.04767]. The QNN reached \(95\%\) accuracy in about 2,000 iterations, whereas the CNN required about 3,000, corresponding to an about \(1.5\times\) speedup to that threshold [1904.04767]. However, because the random classical control matched the quantum model within experimental noise, that study did not establish a uniquely quantum source for the improvement.

The tutorial implementation of Oh et al. placed a \(2\times 2\) quanvolutional layer in front of a classical fully connected head and simulated the model on downscaled \(10\times 10\) MNIST using TensorFlow Quantum. After 20 epochs, the reported final test accuracies were about \(75\%\) for a fully connected baseline, \(92\%\) for a classical CNN, and \(91\%\) for the QCNN [2009.09423]. This result framed quanvolution as capable of classical-CNN-level accuracy on a small benchmark rather than as an immediate route to large empirical gains.

More recent work has focused on multiclass tasks and circuit efficiency. Qu et al. evaluated two-layer QCNNs with \(4\times 4\) kernels on zero-padded \(32\times 32\) MNIST images amplitude-encoded into 10 qubits and reported the following accuracies: for 2 classes, \(96\%\), \(92\%\), and \(86\%\) for 1, 4, and 8 channels; for 4 classes, \(65\%\), \(73\%\), and \(76\%\); and for 8 classes, \(53\%\), \(55\%\), and \(58\%\) [2504.08487]. Those models used only 40 trainable parameters and no classical feature-extraction front-end, while matching or exceeding prior pure-quantum CNN accuracies in the 2-class, 4-class, and 8-class settings [2504.08487].

Integrated encoding and quantization were evaluated on two non-MNIST image tasks. On MiraBest, a classical CNN baseline achieved \(71.04\%\pm12.63\%\), rotational encoding with \(k=2\) achieved \(77.27\%\pm2.74\%\), and the integrated Simple mapping with \(k=3\) achieved \(80.78\%\pm2.16\%\), which was the best overall result [2410.05777]. On LArTPC, the baseline achieved \(56.79\%\pm9.18\%\), rotational encoding with \(k=4\) achieved \(52.93\%\pm4.35\%\), and integrated Simple with \(k=4\) achieved \(58.50\%\pm2.25\%\) [2410.05777]. These comparisons are notable because all models used the same downstream classical head and the integrated quantum encoding required fewer quantum resources than the rotational baseline.

Quanvolutional models have also been studied in explicitly small-data regimes. In an industrial crack-detection task, the hybrid QNN of Kairouz et al. reached about \(75\%\) test accuracy with 100 training images, whereas the classical CNN plateaued at about \(65\%\); with only 50 training images, the QNN still achieved about \(70\%\), while the classical model dropped to about \(55\%\) [2206.03960]. In a second-stage configuration with 16 qubits and a \(50/50\) train/test split, the QNN reached about \(95\%\) validation accuracy by epoch 30 versus about \(92\%\) for the CNN, and with only \(40\%\) of the data for training the QNN reached \(97.8\%\) test accuracy while the classical CNN remained at about \(90\)–\(91\%\); the reported false negative rates were below \(3\%\) [2206.03960].

Speech and biomedical applications show a similar emphasis on limited data. Tran et al. converted dysphonia recordings into \(40\times100\) Mel spectrograms and compared two QNNs with two CNN baselines across ten training-set sizes [2502.08968]. At \(N_{\text{train}}=60\), QNN2 achieved \(78.4\%\pm0.9\%\) versus \(75.1\%\pm2.8\%\) for CNN2, and at \(N_{\text{train}}=240\), QNN2 achieved \(87.1\%\pm0.2\%\) versus \(79.6\%\pm1.7\%\) [2502.08968]. The authors reported that the QNN models consistently outperformed the CNN models in both accuracy and stability across most experiments [2502.08968].

## 6. Robustness, limitations, and open research questions

Adversarial robustness has become a distinct subtopic in quanvolutional research. AdvQuNN evaluated five non-trainable ansätze under FGSM, PGD, and MIM on MNIST and Fashion-MNIST, using only 50 training samples per model, and reported that QuNNs can achieve up to \(60\%\) higher robustness on MNIST and \(40\%\) on FMNIST relative to classical convolutional networks [2403.05596]. On MNIST under FGSM, the classical CNN’s accuracy fell to near zero by \(\epsilon\approx 3\), whereas the ZZ-full QuNN remained above \(0.6\) even at \(\epsilon=15\); ZZ-full and ZZ-star were the most robust on MNIST, while the ranking changed on FMNIST [2403.05596]. RobQuNN reached a similar conclusion for white-box attacks on MNIST: at \(\epsilon=0.10\), the Full ZZ ansatz achieved \(70\%\) accuracy under FGSM versus \(10\%\) for the CNN, \(65\%\) versus \(5\%\) under PGD, and \(75\%\) versus \(15\%\) under MIM [2407.03875]. At the same time, RobQuNN found that adversarial examples transferred between classical and quantum models without a clear architecture-dependent asymmetry [2407.03875].

Robustness to non-adversarial corruption is more mixed. In speech applications, quanvolutional front-ends generally outperformed a simple CNN baseline under pitch shift, temporal shift, and speed variation, with up to \(22\%\) lower CE/RCE at severe temporal shift, but the CNN baseline remained more resilient to Gaussian noise [2601.02432]. Among the quantum circuits studied, QNN-Basic gave the best overall robustness on AVFAD, whereas QNN-Random was strongest on TESS; the quantum models also converged up to six times faster than the CNN-Base [2601.02432]. This suggests that quanvolution may confer robustness to structured spectral or temporal perturbations without guaranteeing resistance to additive noise.

Several limitations recur across the literature. Data encoding is often the dominant bottleneck: amplitude encoding of large images is explicitly identified as costly [2504.08487], and rotational encoding ties qubit count to patch size while incurring \(O(k^4)\) two-qubit-gate growth [2410.05777]. Simulator-based workloads can also be prohibitive; the industrial crack-detection study notes that each forward pass required thousands of quantum circuit evaluations on classical hardware [2206.03960]. Many application papers remain purely simulated and do not include real-device noise [2206.03960, 2502.08968], and integrated encoding beyond \(k=5\) or large-kernel rotational baselines were left untested because of simulator limits [2410.05777].

A further unresolved issue is interpretive rather than purely technical. Quanvolutional gains do not automatically imply a uniquely quantum benefit. The original MNIST study showed that a random classical nonlinearity matched the reported gains of the quantum layer within experimental noise [1904.04767]. Conversely, later small-data and robustness studies report sizable empirical advantages for quantum front-ends [2206.03960, 2403.05596, 2502.08968]. This suggests that the utility of quanvolution is strongly task-, encoding-, and circuit-dependent.

Open design directions already identified within the cited work include adaptive gate positioning for multiscale context [2504.08487], parameter-shift-based learning of integrated encoding maps [2410.05777], variational quanvolutional kernels beyond fixed random circuits [2206.03960], and deeper residualized quanvolutional stacks that preserve gradient access across multiple quantum layers [2402.09146]. A plausible implication is that future progress will depend less on the generic idea of “adding a quantum layer” and more on matching encoding, circuit topology, measurement strategy, and optimization method to the inductive biases of the target domain.

Source: https://www.emergentmind.com/topics/quanvolutional-neural-networks-qnns