ZadeNor AI
ZadeNor AI
Back to Blog
Quantum Computing

MerLin: Framework for Differentiable Photonic Quantum Machine Learning

February 21, 2026
5 min
2,975 views
By ZadeNor AI Team
MerLin: Framework for Differentiable Photonic Quantum Machine Learning

MerLin: Framework for Differentiable Photonic Quantum Machine Learning

Unlocking the Power of Photonic Quantum Machine Learning with MerLin

In the rapidly evolving landscape of artificial intelligence (AI), researchers are constantly seeking innovative ways to harness the potential of quantum computing. One promising area of exploration is photonic quantum machine learning (QML), which leverages the unique properties of light to perform complex computations. To facilitate this research, Quandela has developed MerLin 0.3, an open-source framework for systematic exploration of photonic and hybrid QML. In this article, we'll delve into the architecture and capabilities of MerLin, and explore its potential implications for the field of QML.

A Framework for Photonic QML

MerLin is built on the Perceval SDK, which provides a robust foundation for developing photonic QML applications. The framework utilizes Strong Linear Optical Simulation (SLOS) to perform exact quantum state computation within a PyTorch-native environment. This allows researchers to leverage the power of classical machine learning libraries while still working with the unique properties of light.

At the heart of MerLin is the QuantumLayer, a torch.nn.Module that enables end-to-end differentiable training of linear-optical circuits. This module is designed to accelerate gradient-based optimization of circuit parameters, such as phase shifters and beam-splitters, directly within standard classical AI pipelines. By precomputing sparse photon-number transition graphs, MerLin can efficiently simulate the behavior of photonic circuits, making it an ideal tool for researchers exploring the possibilities of photonic QML.

Data Encoding and QuantumBridge

MerLin supports multiple data encoding methodologies, including angle encoding for Fourier-like feature mapping and amplitude encoding for state-vector initialization. This flexibility allows researchers to experiment with different encoding schemes and explore their impact on the performance of photonic QML models.

The QuantumBridge abstraction is another key feature of MerLin, enabling cross-paradigm architectural comparisons by mapping qubit-based gates into photonic dual-rail or QLOQ encodings. This allows researchers to compare the performance of photonic and gate-based modalities under unified conditions, providing valuable insights into the strengths and weaknesses of each approach.

Hardware-Aware Execution and Noise Models

MerLin is designed for hardware-aware execution through the MerlinProcessor interface, which facilitates offloading hybrid model components to physical quantum processing units (QPUs), such as Quandela's Belenos system. This allows researchers to take advantage of the unique properties of QPUs while still working within the familiar framework of classical machine learning.

In addition to hardware-aware execution, MerLin also integrates noise models and detector-specific semantics, including photon-number-resolving and threshold detectors. This allows researchers to simulate hardware constraints during the training phase, providing a more realistic understanding of the performance of photonic QML models in real-world scenarios.

Reproducibility and Standardization

To address reproducibility challenges in QML, MerLin includes a library of 18 reproduced state-of-the-art papers spanning quantum kernels, reservoir computing, and convolutional architectures. These modular experiments provide standardized baselines for comparing photonic and gate-based modalities under unified conditions.

Technical insights from these reproductions indicate that expressivity in photonic variational quantum circuits (VQCs) scales linearly with the number of input photons without increasing circuit depth. This empirical approach is intended to transition QML from isolated demonstrations toward a disciplined engineering framework for evaluating quantum utility.

Implications and Future Directions

The development of MerLin represents a significant step forward in the field of photonic QML, providing a robust and flexible framework for researchers to explore the possibilities of this emerging technology. By leveraging the unique properties of light, photonic QML has the potential to revolutionize a wide range of applications, from machine learning and optimization to cryptography and quantum simulation.

As researchers continue to develop and refine MerLin, we can expect to see significant advances in the field of photonic QML. With its hardware-aware execution, noise models, and standardized baselines, MerLin is poised to become a leading tool for researchers exploring the possibilities of photonic QML.

In the future, we can expect to see MerLin being used to develop more complex and sophisticated photonic QML models, as well as to explore new applications and use cases for this emerging technology. As the field of photonic QML continues to evolve, MerLin will remain at the forefront, providing a robust and flexible framework for researchers to push the boundaries of what is possible with light.

In conclusion, MerLin is a powerful tool for researchers exploring the possibilities of photonic QML. With its robust architecture, flexible data encoding, and hardware-aware execution, MerLin is poised to become a leading tool for the development of photonic QML models. As researchers continue to develop and refine MerLin, we can expect to see significant advances in the field of photonic QML, and a wide range of new applications and use cases for this emerging technology.


Source: https://quantumcomputingreport.com/merlin-framework-for-differentiable-photonic-quantum-machine-learning/

About the Author

ZadeNor AI Team is a leading expert in QUANTUM COMPUTING, contributing to cutting-edge research and development in the field.

Related Posts

Open Quantum Launches Native Qrisp Integration for High-Level QPU Execution Across IonQ, Rigetti, IQM, and AQT Hardware

Open Quantum Launches Native Qrisp Integration for High-Level QPU Execution Across IonQ, Rigetti, IQM, and AQT Hardware

Open Quantum has launched a native Qrisp integration, enabling high-level QPU execution across IonQ, Rigetti, IQM, and AQT hardware. This allows developers to compile and execute Qrisp programs directly on physical QPUs without writing vendor-specific gate-level code. The integration simplifies quantum programming by providing software-engineering abstractions, automated qubit allocation, and memory management. The post Open Quantum Launches Native Qrisp Integration for High-Level QPU Execution Across IonQ, Rigetti, IQM, and AQT Hardware appeared first on Quantum Computing Report. ]]>

328
5 min
RIKEN Demonstrates High-Fidelity Simultaneous Control of Silicon Spin Qubits Above 99.9% Threshold

RIKEN Demonstrates High-Fidelity Simultaneous Control of Silicon Spin Qubits Above 99.9% Threshold

Researchers at RIKEN and collaborators have achieved high-fidelity simultaneous control of five silicon spin qubits, maintaining over 99.9% accuracy. They overcame crosstalk caused by AC-Stark shifts through a new calibration protocol, enabling the use of a single microwave control line. This breakthrough meets the fault-tolerant threshold for quantum error correction and paves the way for more scalable quantum computers. The post RIKEN Demonstrates High-Fidelity Simultaneous Control of Silicon Spin Qubits Above 99.9% Threshold appeared first on Quantum Computing Report. ]]>

285
5 min
Podcast with Johannes Pollanen, Co-founder of EeroQ and a Professor of Physics at Michigan State University

Podcast with Johannes Pollanen, Co-founder of EeroQ and a Professor of Physics at Michigan State University

Johannes Pollanen, co-founder of EeroQ and a professor of physics at Michigan State University, explains how EeroQ builds qubits from single electrons floating on a film of superfluid helium, and why he thinks the semiconductor chip is the only proven way to scale a quantum computer. The post Podcast with Johannes Pollanen, Co-founder of EeroQ and a Professor of Physics at Michigan State University appeared first on Quantum Computing Report. ]]>

380
5 min