ZadeNor AI
Back to Blog
Quantum Computing

MerLin: Framework for Differentiable Photonic Quantum Machine Learning

February 21, 2026
5 min
1,479 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

Pasqal and Welinq Launch €4M ($4.7M USD) InterQo Project to Network Neutral-Atom Processors

Pasqal and Welinq Launch €4M ($4.7M USD) InterQo Project to Network Neutral-Atom Processors

Pasqal and Welinq have expanded their strategic partnership to develop networked quantum computing architectures based on interconnected neutral-atom processors. The collaboration is centered on the InterQo project, a €4 million ($4.7 million USD) initiative supported by the Île-de-France Region and BPI France through the France 2030 (i-Demo Régionalisé) program. The project includes a bilateral industrial [...] The post Pasqal and Welinq Launch €4M ($4.7M USD) InterQo Project to Network Neutral-Atom Processors appeared first on Quantum Computing Report. ]]>

1,238
5 min
Classiq and SKKU's QCenter Launch Quantum Software Education Initiative in Korea

Classiq and SKKU's QCenter Launch Quantum Software Education Initiative in Korea

Classiq and the Quantum Information Research Support Center (QCenter) at Sungkyunkwan University (SKKU) have signed a Memorandum of Understanding (MOU) to establish a collaborative framework for quantum computing education and research in South Korea. The agreement, finalized on February 26, 2026, marks QCenter’s first partnership dedicated exclusively to quantum software. To initiate the collaboration, the [...] The post Classiq and SKKU's QCenter Launch Quantum Software Education Initiative in Korea appeared first on Quantum Computing Report. ]]>

1,447
5 min
QUDORA and ParityQC Partner to Optimize Trapped-Ion Quantum Algorithms

QUDORA and ParityQC Partner to Optimize Trapped-Ion Quantum Algorithms

QUDORA and ParityQC have established a strategic partnership to optimize quantum algorithm execution on trapped-ion hardware. The collaboration integrates QUDORA’s proprietary Near-Field Quantum Control (NFQC) technology with ParityQC’s architecture-driven software framework. By tailoring algorithms to the specific physical characteristics of trapped-ion systems, the partnership aims to reduce gate counts and circuit depth, thereby mitigating error [...] The post QUDORA and ParityQC Partner to Optimize Trapped-Ion Quantum Algorithms appeared first on Quantum Computing Report. ]]>

1,478
5 min