This repository contains practical tutorials demonstrating the use of Quandela’s photonic quantum computing technology. The material is designed to provide hands-on examples ranging from foundational photonic circuit simulations to quantum machine learning workflows.
The tutorials are organised into two main areas:
- Photonics-Perceval — Tutorials using the Perceval library for modelling and simulating photonic quantum circuits.
- Quantum_Machine_Learning-MerLin — Tutorials combining MerLin and PyTorch for quantum machine learning applications built on photonic quantum computing principles.
Official MerLin documentation: https://merlinquantum.ai/
Official Perceval documentation: https://perceval.quandela.net/
Photonic-Quantum-Computing-Tutorials/
│
├── Photonics_with_Perceval/
│ └── Tutorials using the Perceval library
│
├── QML_with_MerLin/
│ └── Tutorials using MerLin and PyTorch
│
├── img/
│ └── Images and figures used throughout the tutorials
│
└── requirements.txt
This folder contains tutorials focused on:
- Building and simulating photonic quantum circuits
- Modelling linear optical components
- Running simulations using Perceval
- Exploring photonic quantum computation concepts in practice
This folder contains tutorials covering:
- Integration of MerLin with PyTorch
- Hybrid quantum-classical workflows
- Photonic quantum models for machine learning tasks
- Training and evaluating quantum-enhanced models
This directory contains images, diagrams, and visual assets referenced within the tutorials.
This file lists the Python dependencies required to run the tutorials. It ensures a reproducible environment across systems.
It is recommended to use a virtual environment.
Create a virtual environment:
python3 -m venv venv
Activate it:
source venv/bin/activate
Create a virtual environment:
python -m venv venv
Activate it:
venv\Scripts\Activate.ps1
Create a virtual environment:
python -m venv venv
Activate it:
venv\Scripts\activate.bat
pip install -r requirements.txtSome tutorials require access to Quandela Cloud services via a Cloud Token.
To avoid hard-coding credentials, the token is stored in a .env file.
In the root of the repository, create a file named:
.env
Add your Cloud Token:
QUANDELA_CLOUD_TOKEN=your_token_here
If required, install python-dotenv:
pip install python-dotenvThe tutorials load the token from the .env file at runtime, making it available as an environment variable.
- Do not commit the
.envfile to version control. - Keep your Cloud Token confidential.
- Ensure
.envis listed in your.gitignore.
- Python 3.9 or newer (unless otherwise specified in
requirements.txt) - Basic familiarity with Python
- Introductory knowledge of quantum computing concepts
- PyTorch familiarity for the quantum machine learning tutorials
Navigate to the relevant tutorial folder and follow the instructions provided within each notebook or script.
For example:
cd Photonics-Percevalor
cd Quantum_Machine_Learning-MerLinOpen the tutorials in Jupyter Notebook or JupyterLab:
jupyter notebookor
jupyter labThis repository is intended for:
- Researchers exploring photonic quantum computing
- Developers building applications with Quandela’s technology
- Students learning practical quantum photonics
- Practitioners interested in quantum machine learning with photonic systems
Please refer to the appropriate licence terms associated with the included libraries (Perceval, MerLin) and any additional project-specific licensing information.