Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2402.17923 · Quantum Science and Technology

A linear photonic swap test circuit for quantum kernel estimation

Alessio Baldazzi, Nicolò Leone, Matteo Sanna, Stefano Azzini, Lorenzo Pavesi

Published Sep 17, 2024• 2 citations
arXivHTMLPDF

Abstract

Abstract The swap test is a quantum algorithm capable of computing the absolute value of the scalar product of two arbitrary wavefunctions. Scalar products represent a crucial ingredient to many quantum machine learning (QML) methods, but their evaluation is not straightforward at all. For this reason, many research efforts have been made without achieving an efficient and robust implementation. Here, we present an integrated photonic circuit designed to implement the swap test algorithm. Our approach relies solely on linear optical integrated components and qudits, represented by single photons from an attenuated laser beam propagating through a set of waveguides. By utilizing 23 spatial degrees of freedom for the qudits, we can configure all the necessary arrangements to set any two-qubit state and perform the swap test. This simplifies the requirements on the circuitry elements and eliminates the need for non-linearity, heralding, or post-selection to achieve multi-qubit gates. Our photonic swap test circuit successfully encodes two qubits and estimates their scalar product with a measured root mean square error smaller than 0.05. This result paves the way for the development of integrated photonic architectures capable of performing QML tasks with robust devices operating at room temperature.

DOI
10.1088/2058-9565/ad7be7

Related papers

Swap test algorithm on a linear photonic chip for scalable quantum machine learning tasks

Alessio Baldazzi, Nicolò Leone, Matteo Sanna +2 more

We report on an integrated photonic swap test circuit. This computes the scalar product of two qubits using only linear components and path-encoding of qudits given by single photons from an attenuated laser. On a set of 3342 randomly selected couples of states, a mean error of just 0.04 with respect to the expected result is measured.

•Jan 1, 2024•0 citations

SWAP-test algorithm implemented on the photonic platform for Quantum Machine Learning

Alessio Baldazzi, Nicolò Leone, Stefano Azzini +2 more

We design an integrated photonic chip to implement the SWAP-test algorithm: using single-particle entanglement as a resource, the circuit can be used to estimate the scalar product of two qubits for quantum kernel methods.

OSA Advanced Photonics Congress•Jan 1, 2023•0 citations

Integrated Photonic SWAP Gates for Qudits and Qubit Registers

Max Ehrhardt, Konrad Tschernig, Matthias Heinrich +5 more

Abstract Advances in quantum information science are closely related to our ability to prepare, manipulate, and measure the states of multiple quantum bits (qubits). To this end, quantum gates are the key components by which specific operations over individual and multiple qubits are implemented. In the context of quantum optics, qubits can be encoded in any degree of freedom of a multi-photon state, e.g. polarization, frequency or spatial configuration. The faithful reciprocal exchange of information between two qubits, a so-called SWAP, is one of the fundamental operations that underpin modern quantum architectures. Here, we present a novel method realizing multiple-qubit SWAP operations over several qubits, without relying on any other gates, in an integrated-photonic setting. In principle, our approach allows for the implementation of SWAP operations with unity efficiency regardless of the number of involved qubits. Further, we discuss how this approach can be applied to qudits. Our findings provide a powerful new functional element for the design of compact quantum-photonic circuitry.

•Apr 27, 2022•0 citations

Quantum circuit mapping for universal and scalable computing in MZI-based integrated photonics

Yong Sung Kwon, Alessio Baldazzi, Lorenzo Pavesi +1 more

Linear optical quantum computing (LOQC) offers a quantum computation paradigm based on well-established and robust technology and flexible environmental conditions following DiVincenzo's criteria. Within this framework, integrated photonics can be utilized to achieve gate-based quantum computing, defining qubits by path-encoding, quantum gates through the use of Mach-Zehnder interferometers (MZIs), and measurements through single-photon detectors. In particular, universal two-qubit gates can be achieved by suitable structures of MZIs together with post-selection or heralding. The most resource-efficient choice is given by the post-selected Controlled-Z (CZ) gate. However, this implementation is characterized by a design which has a non-regular structure and cannot be cascaded. This limits the implementation of large-scale LOQC. Starting from these issues, we suggest an approach to move toward a universal and scalable LOQC on the integrated photonic platform. First of all, choosing the post-selected CZ as a universal two-qubit gate, we extend the path-encoded dual-rail qubit to a triplet of waveguides, composed of an auxiliary waveguide and the pair of waveguides corresponding to the qubit basis states. Additionally, we introduce a swap photonic network that maps the regularly-labeled structure of the new path-encoded qubits to the structure needed for the post-selected CZ. We also discuss the optical swap gate that allows the connection of non-nearest neighbor path-encoded qubits. In this way, we can deterministically exchange the locations of the qubits and execute controlled quantum gates between any path-encoded qubits. Next, by truncating the auxiliary waveguides after any post-selected CZ, we find that it is possible to cascade this optical gate when it acts on different pairs that share only one qubit. Finally, we show the Bell state and the Greenberger-Horne-Zeilinger (GHZ) state generation circuits implementing the regular structure, the cascading procedure of post-selected CZ and the optical swap.

arXiv:2401.16875•Optics Express•Mar 13, 2024•12 citations

A resource-efficient and noise-robust entanglement witness based on the swap test

Sebastiano Guaraldo, Sonia Mazzucchi, Alessio Baldazzi +2 more

Quantum entanglement is an essential resource for quantum technologies, and the controlled swap test provides a versatile tool for its detection and quantification. Here, we propose a SWAP-based entanglement witness that applies to arbitrary two-qubit states - both pure and mixed - and provides a lower bound on the concurrence. The method is resource-efficient, robust to noise, and platform-independent. As an example, we validate the approach on a room-temperature photonic chip, where the swap test is carried out using only linear and well-established integrated optical components. The robustness of the method against photonic-hardware noise is also analysed. Our results establish a simple and reliable tool for entanglement witnessing.

quant-pharXiv:2512.20235•Dec 24, 2025•0 citations

Realization of Quantum SWAP Gate Using Photonic Integrated Passive and Electro-optically Active Components

Shahram Mohammadnejad, Anahita KhodadadKashi

We report on the theoretical design and simulation of a photonic quantum circuit that operates as a single-photon, two-qubit swap gate. In this approach, the circuit is implemented in Titanium indiffused LiNbO3 channel waveguides, and polarization and spatial encoding are utilized to realize the qubits. A set of basic components comprising a dual periodically poled waveguide for two simultaneous Type-0 and Type-I non-linear interactions, as well as the passive routing and active electro-optically controllable devices, are the main building blocks in this circuit. Simulations are carried out by making use of the numerical beam propagation method incorporated within RSoft program package.

Fiber & Integrated Optics•Mar 1, 2019•4 citations
Abstract The swap test is a quantum algorithm capable of computing the absolute value of the scalar product of two arbitrary wavefunctions. Scalar products represent a crucial ingredient to many quantum machine learning (QML) methods, but their evaluation is not straightforward at all. For this reason, many research efforts have been made without achieving an efficient and robust implementation. Here, we present an integrated photonic circuit designed to implement the swap test algorithm. Our approach relies solely on linear optical integrated components and qudits, represented by single photons from an attenuated laser beam propagating through a set of waveguides. By utilizing 23 spatial degrees of freedom for the qudits, we can configure all the necessary arrangements to set any two-qubit state and perform the swap test. This simplifies the requirements on the circuitry elements and eliminates the need for non-linearity, heralding, or post-selection to achieve multi-qubit gates. Our photonic swap test circuit successfully encodes two qubits and estimates their scalar product with a measured root mean square error smaller than 0.05. This result paves the way for the development of integrated photonic architectures capable of performing QML tasks with robust devices operating at room temperature.
Abstract Advances in quantum information science are closely related to our ability to prepare, manipulate, and measure the states of multiple quantum bits (qubits). To this end, quantum gates are the key components by which specific operations over individual and multiple qubits are implemented. In the context of quantum optics, qubits can be encoded in any degree of freedom of a multi-photon state, e.g. polarization, frequency or spatial configuration. The faithful reciprocal exchange of information between two qubits, a so-called SWAP, is one of the fundamental operations that underpin modern quantum architectures. Here, we present a novel method realizing multiple-qubit SWAP operations over several qubits, without relying on any other gates, in an integrated-photonic setting. In principle, our approach allows for the implementation of SWAP operations with unity efficiency regardless of the number of involved qubits. Further, we discuss how this approach can be applied to qudits. Our findings provide a powerful new functional element for the design of compact quantum-photonic circuitry.
Linear optical quantum computing (LOQC) offers a quantum computation paradigm based on well-established and robust technology and flexible environmental conditions following DiVincenzo's criteria. Within this framework, integrated photonics can be utilized to achieve gate-based quantum computing, defining qubits by path-encoding, quantum gates through the use of Mach-Zehnder interferometers (MZIs), and measurements through single-photon detectors. In particular, universal two-qubit gates can be achieved by suitable structures of MZIs together with post-selection or heralding. The most resource-efficient choice is given by the post-selected Controlled-Z (CZ) gate. However, this implementation is characterized by a design which has a non-regular structure and cannot be cascaded. This limits the implementation of large-scale LOQC. Starting from these issues, we suggest an approach to move toward a universal and scalable LOQC on the integrated photonic platform. First of all, choosing the post-selected CZ as a universal two-qubit gate, we extend the path-encoded dual-rail qubit to a triplet of waveguides, composed of an auxiliary waveguide and the pair of waveguides corresponding to the qubit basis states. Additionally, we introduce a swap photonic network that maps the regularly-labeled structure of the new path-encoded qubits to the structure needed for the post-selected CZ. We also discuss the optical swap gate that allows the connection of non-nearest neighbor path-encoded qubits. In this way, we can deterministically exchange the locations of the qubits and execute controlled quantum gates between any path-encoded qubits. Next, by truncating the auxiliary waveguides after any post-selected CZ, we find that it is possible to cascade this optical gate when it acts on different pairs that share only one qubit. Finally, we show the Bell state and the Greenberger-Horne-Zeilinger (GHZ) state generation circuits implementing the regular structure, the cascading procedure of post-selected CZ and the optical swap.
Quantum entanglement is an essential resource for quantum technologies, and the controlled swap test provides a versatile tool for its detection and quantification. Here, we propose a SWAP-based entanglement witness that applies to arbitrary two-qubit states - both pure and mixed - and provides a lower bound on the concurrence. The method is resource-efficient, robust to noise, and platform-independent. As an example, we validate the approach on a room-temperature photonic chip, where the swap test is carried out using only linear and well-established integrated optical components. The robustness of the method against photonic-hardware noise is also analysed. Our results establish a simple and reliable tool for entanglement witnessing.
We report on the theoretical design and simulation of a photonic quantum circuit that operates as a single-photon, two-qubit swap gate. In this approach, the circuit is implemented in Titanium indiffused LiNbO3 channel waveguides, and polarization and spatial encoding are utilized to realize the qubits. A set of basic components comprising a dual periodically poled waveguide for two simultaneous Type-0 and Type-I non-linear interactions, as well as the passive routing and active electro-optically controllable devices, are the main building blocks in this circuit. Simulations are carried out by making use of the numerical beam propagation method incorporated within RSoft program package.