MerLin

Open-source framework for photonic quantum machine learning

Software & Access

MerLin is Quandela's open-source framework for exploring photonic quantum machine learning. Built to work with PyTorch, it helps developers, researchers and enterprise R&D teams build hybrid quantum–classical models, test different approaches and evaluate results through reproducible experiments.

Train models in simulation and explore how compatible quantum models can be evaluated on Quandela's photonic quantum processors.

PyTorch integration

Add photonic quantum layers to familiar machine-learning workflows.

Open-source development

Inspect the source code and adapt models to your research.

Reusable experiments

Build on documented examples and implementations of published quantum machine-learning research.

Interactive Capabilities

What can you do with MerLin?

Choose a starting point for developing models, comparing approaches or exploring hardware evaluation.

Build and train

Combine classical and quantum components in a machine-learning model.

Integrate photonic quantum layers into PyTorch neural networks and train them using CPU or GPU simulation. Experiment with model architectures and ways of encoding data while using familiar training tools.

Start with an introductory classification example, then adapt the approach to your own experiments.

Benchmark and compare

Assess quantum approaches alongside classical models.

Evaluate models on shared datasets and compare their results with classical baselines. Use reference experiments to investigate how model design, data encoding and the quantum component affect the outcome.

Document the conditions behind each comparison so that results can be interpreted, revisited and extended.

Evaluate on quantum hardware

Test compatible quantum layers through Quandela Cloud.

Use MerLin’s remote execution tools to run compatible quantum layers on photonic quantum processing units (QPUs), while classical components run locally. Compare hardware outputs with simulation and explore how device constraints affect your experiment.

Hardware evaluation depends on model compatibility and access to the selected platform.

Research

Build on published quantum machine-learning research

Reliable, reproducible results are essential for understanding what quantum machine learning can achieve. MerLin provides implementations of published research that users can explore, test and build upon, helping them assess different approaches under documented conditions.

Explore studies covering quantum kernels, hybrid neural networks and transfer learning, with access to available code, methods and implementation details. The research collection also identifies the current status of individual reproductions, providing a clearer foundation for further experimentation.

Hybrid quantum–classical machine learning with MerLin

Webinar replay

Hybrid quantum–classical machine learning with MerLin

Join Jean Senellart and Samuel Horsch for an introduction to MerLin, hybrid quantum–classical models, and the role of reproducible experimentation in quantum machine learning.

Related Articles

Explore MerLin further

MerLin: Photonic Quantum Machine Learning, Engineered for Utility

Framework overview

MerLin: Photonic Quantum Machine Learning, Engineered for Utility

Explore MerLin’s PyTorch integration, trainable photonic quantum layers and approach to comparing quantum machine-learning models.

MerLin: Bridging the reproducibility gap in quantum machine learning

Research and reproducibility

MerLin: Bridging the reproducibility gap in quantum machine learning

Understand how reproducible experiments, classical baselines and systematic testing help researchers evaluate what quantum models contribute.

What HPC Centers Should Take Away from the MerLin Quantum Utility Webinar

HPC perspective

What HPC Centers Should Take Away from the MerLin Quantum Utility Webinar

Explore what hybrid workflows, simulation and reproducible benchmarking could mean for high-performance computing organizations evaluating quantum machine learning.

Start experimenting with MerLin

Explore the documentation, follow a tutorial or inspect the source code to plan your first experiment.

MerLin builds on Perceval, Quandela’s open-source framework for designing and simulating photonic quantum circuits.