MerLin: A Discovery Engine for Photonic and Hybrid Quantum Machine Learning
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Sentiment Classification | Sentiment classification | Acc0.89 | 32 | |
| Binary Classification | MNIST 0 and 1 (test) | -- | 24 | |
| Image Classification | CIFAR-10 first five classes | Accuracy49.2 | 3 | |
| Binary Image Classification | Custom BAS | Accuracy98.2 | 2 | |
| Adversarial Image Classification | MNIST | Clean Accuracy0.98 | 1 | |
| Binary Classification | Noisy spiral dataset | Accuracy90 | 1 | |
| Image Classification | Distributed Photonic Quantum Computing Bond Dimensions | Training Speedup4 | 1 | |
| Image Generation | Photonic QGAN implementation | Training Speed-up15 | 1 |