Skip to main content
QUICK REVIEW

[Paper Review] MerLin: A Discovery Engine for Photonic and Hybrid Quantum Machine Learning

Cassandre Notton, Benjamin Stott|arXiv (Cornell University)|Feb 11, 2026
Neural Networks and Reservoir ComputingComputer Science0 citations
TL;DR

MerLin is an open-source framework that integrates optimized strong simulation of linear-optical circuits with PyTorch and scikit-learn, enabling end-to-end differentiable training of photonic quantum models and benchmarking across state-of-the-art QML works.

ABSTRACT

Identifying where quantum models may offer practical benefits in near term quantum machine learning (QML) requires moving beyond isolated algorithmic proposals toward systematic and empirical exploration across models, datasets, and hardware constraints. We introduce MerLin, an open source framework designed as a discovery engine for photonic and hybrid quantum machine learning. MerLin integrates optimized strong simulation of linear optical circuits into standard PyTorch and scikit learn workflows, enabling end to end differentiable training of quantum layers. MerLin is designed around systematic benchmarking and reproducibility. As an initial contribution, we reproduce eighteen state of the art photonic and hybrid QML works spanning kernel methods, reservoir computing, convolutional and recurrent architectures, generative models, and modern training paradigms. These reproductions are released as reusable, modular experiments that can be directly extended and adapted, establishing a shared experimental baseline consistent with empirical benchmarking methodologies widely adopted in modern artificial intelligence. By embedding photonic quantum models within established machine learning ecosystems, MerLin allows practitioners to leverage existing tooling for ablation studies, cross modality comparisons, and hybrid classical quantum workflows. The framework already implements hardware aware features, allowing tests on available quantum hardware while enabling exploration beyond its current capabilities, positioning MerLin as a future proof co design tool linking algorithms, benchmarks, and hardware.

Motivation & Objective

  • Motivate systematic, benchmark-driven exploration of photonic and hybrid QML across models, datasets, and hardware constraints.
  • Provide an open, reproducible framework that unifies simulation, ML workflows, and hardware access for photonic QML.
  • Reproduce and validate a broad set of eighteen state-of-the-art photonic and hybrid QML works to establish a common baseline.
  • Enable end-to-end differentiable training of quantum layers within PyTorch and scikit-learn ecosystems.
  • Position MerLin as a co-design tool linking algorithms, benchmarks, and hardware for near-term quantum advantages.

Proposed method

  • Integrates strong simulation of linear-optical circuits (SLOS) with PyTorch and TorchScript for gradient-based optimization.
  • Implements a QuantumLayer in PyTorch to expose trainable circuit parameters, batching, and interoperability with ML models.
  • Supports data encoding strategies (angle encoding and amplitude encoding) and various measurement and detector models.
  • Provides a hardware-aware design with MerlinProcessor for potential offloading to photonic QPUs and hardware constraints.
  • Embeds photonic quantum models within existing ML pipelines to enable ablation, cross-modality comparisons, and hybrid classical–quantum workflows.
  • Uses a benchmark/reproduction-first approach to implement and evaluate published QML works within MerLin.
Figure 1 : MerLin architecture for photonic quantum machine learning. (A) Classical data encoding and photonic circuit configuration define the quantum model. (B) MerLin integrates PyTorch-based optimization with photonic-native execution through a logical-to-photonic bridge, differentiable quantum
Figure 1 : MerLin architecture for photonic quantum machine learning. (A) Classical data encoding and photonic circuit configuration define the quantum model. (B) MerLin integrates PyTorch-based optimization with photonic-native execution through a logical-to-photonic bridge, differentiable quantum

Experimental results

Research questions

  • RQ1What is the practical impact of photonic QML models when embedded in standard ML workflows?
  • RQ2Can a unified framework reproduce and benchmark a broad set of photonic and hybrid QML results across tasks and architectures?
  • RQ3How do data encoding strategies and hardware constraints affect performance and robustness in photonic QML?
  • RQ4To what extent can hardware-aware simulation guide co-design of algorithms and photonic processors?
  • RQ5Does a reproducible, modular platform accelerate discovery of near-term quantum advantages in ML?

Key findings

  • MerLin reproduces eighteen state-of-the-art photonic and hybrid QML works, validating the framework’s correctness and establishing a reusable baseline.
  • Hardware-aware simulation and cross-platform integration yield substantial speedups over Perceval-derived implementations in several cases.
  • Photon-native models often match gate-based counterparts in learning behavior, supporting cross-modality model translation and co-design insights.
  • Encoding strategy (angle vs amplitude) shows robustness differences: amplitude encoding is more vulnerable to adversarial perturbations; angle encoding is comparatively robust.
  • Reservoir computing, QCNNs, QGANs, and various quantum kernel and transfer-learning methods show compatible performance trends when reproduced in MerLin, with improvements attributable to implementation details and hyperparameters.
(a) Parameterized linear photonic circuit with $m=3$ spatial modes and single-phase data encoding. The expectation value under PNR or threshold detection decomposes as $\sum_{\omega}c_{\omega}e^{i\omega x}$ , where $\omega$ depends on the photon number and $c_{\omega}$ on the trainable circuit and o
(a) Parameterized linear photonic circuit with $m=3$ spatial modes and single-phase data encoding. The expectation value under PNR or threshold detection decomposes as $\sum_{\omega}c_{\omega}e^{i\omega x}$ , where $\omega$ depends on the photon number and $c_{\omega}$ on the trainable circuit and o

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.