Introduction

Photonic quantum computing represents a powerful approach to building scalable quantum computers, offering advantages such as avoiding the need for dilution fridges, providing natural connectivity to quantum communication networks [KMN+07, ObrienFVuvckovic09] and, as in the case of QLASS devices, allowing for reconfigurable chips. However, the translation of quantum algorithms from the abstract circuit model to photonic implementations presents unique challenges. Existing quantum software frameworks like Qiskit [AAB+19] and Cirq [CirqDevelopers25] primarily target gate-based quantum computers with qubit architectures, while photonic platforms operate on fundamentally different principles using linear optical elements, photons, and modes.

There are only a few open source software projects that focus on the simulation or compilation of photonic quantum computers. These include Perceval [HFdG+23], Strawberry Fields [KIQ+19], Piquasso [KRR+25] and Graphix [SF22], all Python packages. These tools are primarily focussed on photonic circuit compilation and simulation. We are however interested in specific applications of photonic quantum computing. In particular in applications related to quantum chemistry. As far as we know, there is no software platform that can run VQE simulations on photonic quantum computing platforms starting with an ansatz defined in the qubit architecture all the way to running the VQE on a photonic quantum computer to obtain ground state energies for molecular Hamiltonians.

What is qlass?

qlass addresses this gap by providing:

  1. Quantum chemistry integration with established packages (OpenFermion, PySCF) for molecular problem definition.

  2. Optimized VQE implementations specifically designed for the constraints and capabilities of photonic quantum computers.

  3. Hardware-specific resource estimation and compilation from quantum circuits (Qiskit) to linear optics layout of photonic processors (Perceval), including the analysis of circuits against realistic hardware constraints such as photon loss, detector efficiency, and fusion gate success rates.

The package is particularly valuable for researchers working at the intersection of quantum algorithms and photonic quantum computing, as it provides the necessary tools to evaluate algorithm performance under realistic hardware conditions and optimize implementations for photonic architectures.

Key Features

  • Circuit Compilation: Convert Qiskit quantum circuits to Perceval photonic processors

  • Multiple VQE Modes: - Standard VQE for ground state optimization - Ensemble-VQE (e-VQE) for computing multiple excited states - Support for sampling, qubit unitary, and photonic unitary executors

  • Quantum Chemistry Tools: - Generate molecular Hamiltonians (LiH) - Kohn-Sham Hamiltonians for DFT-based calculations - Hamiltonian manipulation utilities

  • Advanced Ansätze: Hartree-Fock ansatz with WFT and DFT support

  • Utility Functions: Process measurement results and compute expectation values

Use Cases

qlass is designed for researchers and developers who want to:

  1. Explore quantum algorithms on photonic hardware

  2. Study molecular systems using variational quantum algorithms

  3. Develop hybrid quantum-classical algorithms for chemistry simulations

  4. Benchmark the performance of photonic quantum computers

Project Background

The qlass package is developed by Unitary Foundation as part of the Quantum Glass-based Photonic Integrated Circuits (QLASS) project, which aims to develop quantum technologies based on photonic integrated circuits. The project is funded by the European Union.

[AAB+19]

Gadi Aleksandrowicz, Thomas Alexander, Panagiotis Barkoutsos, Luciano Bello, Yael Ben-Haim, David Bucher, F Jose Cabrera-Hernández, Jorge Carballo-Franquis, Adrian Chen, Chun-Fu Chen, and others. Qiskit: an open-source framework for quantum computing. Accessed on: Mar, 16:61, 2019. doi:10.5281/zenodo.2562111.

[HFdG+23]

Nicolas Heurtel, Andreas Fyrillas, Grégoire de Gliniasty, Raphaël Le Bihan, Sébastien Malherbe, Marceau Prawer, Edouard Solal, Benoît Valiron, Peter Yeh, and Shane Mansfield. Perceval: a software platform for discrete variable photonic quantum computing. Quantum, 7:931, 2023.

[KIQ+19]

Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian Weedbrook. Strawberry fields: a software platform for photonic quantum computing. Quantum, 3:129, 2019. doi:10.22331/q-2019-03-11-129.

[KMN+07]

Pieter Kok, William J Munro, Kae Nemoto, Timothy C Ralph, Jonathan P Dowling, and Gerard J Milburn. Linear optical quantum computing with photonic qubits. Reviews of Modern Physics, 79(1):135, 2007.

[KRR+25]

Zoltán Kolarovszki, Tomasz Rybotycki, Péter Rakyta, Ágoston Kaposi, Boldizsár Poór, Szabolcs Jóczik, Dániel TR Nagy, Henrik Varga, Kareem H El-Safty, Gregory Morse, and others. Piquasso: a photonic quantum computer simulation software platform. Quantum, 9:1708, 2025. doi:10.22331/q-2025-04-15-1708.

[ObrienFVuvckovic09]

Jeremy L O'brien, Akira Furusawa, and Jelena Vučković. Photonic quantum technologies. Nature photonics, 3(12):687–695, 2009. doi:10.1038/nphoton.2009.229.

[SF22]

Shinichi Sunami and Masato Fukushima. Graphix: optimizing and simulating measurement-based quantum computation on local-clifford decorated graph. arXiv preprint arXiv:2212.11975, 2022. doi:10.48550/arXiv.2212.11975.

[CirqDevelopers25]

Cirq Developers. Cirq. Zenodo, jul 2025. Python package for writing, manipulating, and running quantum circuits on quantum computers and simulators. URL: https://zenodo.org/doi/10.5281/zenodo.4062499, doi:10.5281/ZENODO.4062499.