ZadeNor AI
ZadeNor AI
Back to Blog
Quantum Computing

MerLin: Framework for Differentiable Photonic Quantum Machine Learning

February 21, 2026
5 min
3,481 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

Quantinuum Awarded UK ProQure Contract to Build Trapped-Ion Development Testbed with Nu Quantum and Riverlane

Quantinuum Awarded UK ProQure Contract to Build Trapped-Ion Development Testbed with Nu Quantum and Riverlane

Quantinuum, in collaboration with Nu Quantum and Riverlane, has been awarded a UK ProQure contract to develop a trapped-ion quantum computing testbed. This project, part of the UK's quantum technologies commitment, will expand Quantinuum's UK R&D operations. The testbed will integrate technologies from all three companies to advance fault-tolerant quantum computing. The post Quantinuum Awarded UK ProQure Contract to Build Trapped-Ion Development Testbed with Nu Quantum and Riverlane appeared first on Quantum Computing Report. ]]>

235
5 min
ICFO, LuxQuanta, and University of Valladolid Researchers Accelerate Finite-Size QKD Security Proofs via Conic Optimization

ICFO, LuxQuanta, and University of Valladolid Researchers Accelerate Finite-Size QKD Security Proofs via Conic Optimization

Researchers from ICFO, LuxQuanta, and the University of Valladolid have developed a new conic optimization method called ConicQKD.jl, which significantly accelerates the computation of finite-size quantum key distribution (QKD) secret key rates. This method is orders of magnitude faster than existing numerical solvers, eliminating the need for artificial depolarization noise and achieving tighter security bounds. The open-source ConicQKD.jl package, implemented in Julia, provides a unified framework for various QKD protocols. The post ICFO, LuxQuanta, and University of Valladolid Researchers Accelerate Finite-Size QKD Security Proofs via Conic Optimization appeared first on Quantum Computing Report. ]]>

283
5 min
Real-Time 1-Bit FPGA Feedback Cuts Bistable Superconducting Qubit Gate Errors by More Than Half

Real-Time 1-Bit FPGA Feedback Cuts Bistable Superconducting Qubit Gate Errors by More Than Half

A new "1-bit feedback" protocol, developed by an international research team, has significantly reduced gate errors in superconducting qubits. This adaptive method mitigates frequency switching caused by defects, lowering average single-qubit gate infidelity by 54% and peak error spikes by 77%. The protocol offers a low-overhead calibration tool for stabilizing qubits without hardware redesigns. The post Real-Time 1-Bit FPGA Feedback Cuts Bistable Superconducting Qubit Gate Errors by More Than Half appeared first on Quantum Computing Report. ]]>

538
5 min