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.
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.
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.
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.
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.
Photons are promising candidates for quantum information technology due to their high robustness and long coherence time at room temperature. Inspired by the prosperous development of photonic computing techniques, recent research has turned attention to performing quantum machine learning on photonic platforms. Although photons possess a high-dimensional quantum feature space suitable for computation, a general understanding of how to harness it for learning tasks remains blank. Here, we establish both theoretically and experimentally a scalable advantage in quantum machine learning with multi-photon states. Firstly, we prove that the learning capacity of linear optical circuits scales polynomially with the photon number, enabling generalization from smaller training datasets and yielding lower test loss values. Moreover, we experimentally corroborate these findings through unitary learning and metric learning tasks, by performing online training on a fully programmable photonic integrated platform. Our work highlights the potential of photonic quantum machine learning and paves the way for achieving quantum enhancement in practical machine learning applications.