Q-PhotoNAS: Hybrid Quantum Neural Architecture Search Framework on Photonic Devices

Farah Elnakhal, Alberto Marchisio, Nouhaila Innan, Gabriel Falcao, Muhammad ShafiquearXiv 2026

TL;DR

Q-PhotoNAS is the first automated neural architecture search (NAS) framework tailored specifically for hybrid photonic quantum-classical networks. By jointly optimizing classical preprocessing, learnable phase encoding, and photonic circuit structures via a genetic algorithm, it eliminates tedious manual tuning to achieve state-of-the-art accuracy on image classification benchmarks while providing realistic hardware execution estimates.

What Problem Does This Paper Address?

Hybrid Quantum-Classical Neural Networks (HQCNNs) are highly promising, especially when built on photonic platforms that operate at room temperature and naturally resist decoherence. However, designing them is incredibly challenging. A typical architecture requires tuning classical preprocessing pipelines, quantum data encoding strategies, the internal photonic circuit layout, and the classical post-processing classifier head.

Because these components are highly interdependent, they create a massive design space (approximately $3.7 \times 10^{10}$ configurations). As shown by the authors' motivational experiments, manual trial-and-error is slow, greedy, and often yields sub-optimal results because changing one component breaks the harmony of the others. Furthermore, existing quantum NAS tools target qubit-based (gate-based) systems, completely ignoring the unique constraints of photonic hardware, such as mode counts and photon-number probabilities.

FIGURE 1: Motivation for automated architecture search in hybrid photonic QML. Both Digits (top) and MNIST (bottom) require four successive hand- designed attempts before reaching competitive accuracy. Each attempt is architecturally distinct from the last and requires its own training run.

Methods

The authors introduce Q-PhotoNAS, a genetic algorithm (GA) framework that searches across 19 hyperparameters divided into 6 functional gene groups.

Key innovations include:

  1. Group-Based Crossover: Instead of splitting the architecture's "genome" randomly during evolutionary mixing, entire functional blocks (like the preprocessing pipeline or the classifier head) are inherited as a single unit. This preserves the internal coherence of co-adapted parameters.
  2. Learnable Quantum Phase Encoding: Instead of using rigid, static data-to-phase mapping, they introduce a differentiable scale-and-bias transformation where the activation function (e.g., sigmoid, tanh, or hard clamp) and scaling factors are optimized by the GA alongside the network weights.
  3. Hardware Execution Time Estimator: A first-principles mathematical model combined with Monte Carlo simulations to project real-world latency on the Quandela Ascella photonic QPU, accounting for thermal phase-shifter reconfiguration, photon propagation, and detection losses.
FIGURE 3: Generic hybrid quantum-classical neural network. Input x passes through classical layers (Conv/FC) to produce latent vector z ∈Rn. Encoding circuit U(x) maps z to a quantum state. Variational circuit W(θ) with trainable parameters θ applies a unitary. Measurement yields expectation values ⟨σ⟩(observable averages). A classical head (FC + Softmax) outputs probabilities p(yi) and prediction ˆy. Gradients ∂L/∂θ are computed via parameter-shift rule, enabling standard backpropagation through the quantum layer without requiring knowledge of the circuit’s internal structure. This is a general representation of HQCNNs.

Datasets

The framework was evaluated on two classic image classification benchmarks:

  • Digits (Scikit-learn): An 8x8 handwritten digits dataset, downscaled using Principal Component Analysis (PCA) to 8 components to meet hardware constraints.
  • MNIST: The standard 28x28 handwritten digits dataset, compressed via PCA to 16 components.

A fixed convolutional frontend was also used in parallel with the PCA branch to preserve local spatial structures before fusing the features.

Key Insights and Ideas

  • The Photonic Orthogonality Advantage: Quantum contribution analysis revealed that the optimized photonic layer maps different classes to near-orthogonal regions in the Fock-basis output space. More surprisingly, on MNIST, the quantum features were geometrically anti-aligned (negative cosine similarity) with the classical features, proving that the photonic layer extracts entirely non-redundant information that classical layers miss.
  • Co-adaptation is King: Standard NAS crossover operators fail in hybrid settings. Grouping genes by functional components ensures that the classical wrapper and the quantum core evolve harmoniously rather than producing broken, mismatched architectures.
  • The Thermal Bottleneck: The hardware timing model revealed that thermal phase-shifter reconfiguration ($T_{prep}$) is the overwhelming latency bottleneck, accounting for 88% to 97% of total execution time. This clearly points to electro-optic phase shifters as the critical hardware upgrade needed for future speedups.

Key Results

  • High Accuracy: Q-PhotoNAS discovered architectures achieving 99.44% validation accuracy on Digits and 98.78% on MNIST.
  • Quantum Edge: The hybrid models consistently outperformed parameter-matched, classical-only baselines by 0.65 percentage points (pp) on Digits and 0.83 pp on MNIST, while exhibiting significantly lower variance across different random seeds.
  • Predictable Latency: Single-image inference times on the Quandela Ascella QPU were projected at ~67.09 ms for Digits (9 modes, circuit depth 65) and ~148.61 ms for MNIST (17 modes, circuit depth 129).

Limitations and Future Work

  • Simulation vs. Real Hardware: The framework currently relies on Quandela's Merlin simulation backend. Physical deployment on the actual Ascella hardware is required to validate the timing model against real-world quantum noise and hardware drift.
  • Search Cost: Running a full GA over 30 generations is computationally expensive. The authors note that integrating zero-shot or learning-curve extrapolation proxies could drastically speed up the search phase.
  • Scalability: The evaluation was restricted to relatively simple 10-class image datasets. Future work needs to scale the framework to more complex, domain-specific quantum machine learning tasks like quantum chemistry or medical imaging.

Summary updated

BibTeX
@misc{elnakhal2026q,
  author = {Farah Elnakhal and Alberto Marchisio and Nouhaila Innan and Gabriel Falcao and Muhammad Shafique},
  title = {{Q-PhotoNAS: Hybrid Quantum Neural Architecture Search Framework on Photonic Devices}},
  year = {2026},
  eprint = {2605.22097},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.22097},
}
Figure