Variational approach to photonic quantum circuits via the parameter shift rule

Francesco Hoch,Giovanni Rodari,Taira Giordani,Paul Perret,Nicolò Spagnolo,Gonzalo Carvacho,Ciro Pentangelo,Simone Piacentini,Andrea Crespi,Francesco Ceccarelli,Roberto Osellame,Fabio Sciarrino
2024-10-09
Abstract:In the current era of noisy intermediate-scale quantum computers, variational quantum algorithms represent one of the most viable approaches for their application to solve tasks of interest. These algorithms train a parameterized quantum circuit to execute a specific task encoded in a cost function that needs to be minimized using a classical optimizer. In this context, photonic platforms based on reconfigurable integrated optics appear as one of the prominent platforms for the implementation of variational algorithms. In the circuital model of quantum computation based on qubits, to train variational circuits, the parameter shift rule came into being, which allows for the exact calculation of the derivatives of many functions at the output of a quantum circuit, opening up the possibility of using classical optimisation algorithms based on gradient descent. In this paper, we derive a formulation of the parameter shift rule for reconfigurable optical linear circuits based on the Boson Sampling paradigm. This allows us to naturally embed the common types of experimental noise, such as partial distinguishability, and mixedness of the states, thus obtaining a resilient approach. We also present similar rules for the computations of integrals over the variational parameters. Finally, we employ the developed approach to experimentally test variational algorithms with single-photon states processed in a reconfigurable 6-mode universal integrated interferometer. Specifically, we apply the photonic parameter shift rules to the variational implementation, on a photonic platform, of both an eigensolver and a Universal-Not gate.
Quantum Physics
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to implement Variational Quantum Algorithms (VQAs) in reconfigurable photonic circuits through the Parameter Shift Rule in the current Noisy Intermediate - Scale Quantum (NISQ) era. Specifically, the goals of the paper are: 1. **Derive the Parameter Shift Rule applicable to linear optical circuits**: Based on the Boson Sampling paradigm, a new Parameter Shift Rule is derived, which can handle common noise sources in experiments, such as partial distinguishability and state mixing. 2. **Experimentally verify the Parameter Shift Rule**: Use a 6 - mode general - purpose reconfigurable integrated interferometer to experimentally test the Parameter Shift Rule in single - photon and two - photon states and verify its effectiveness in calculating function values and gradients. 3. **Apply the Parameter Shift Rule to solve practical problems**: Utilize the derived Parameter Shift Rule to experimentally implement Variational Quantum Algorithms, with specific applications including the optimization of the Variational Eigensolver and the Universal - Not Gate. ### Specific problem description - **Theoretical derivation**: The paper first theoretically derives the Parameter Shift Rule applicable to linear optical circuits. By analyzing the output probabilities of photon interferometers, it is proved that these probabilities can be expressed in the form of trigonometric series of variational parameters. This enables the accurate calculation of gradients by evaluating functions at specific points, thus avoiding the instability of numerical difference methods in noisy environments. - **Experimental verification**: In the experiment, the paper uses a 6 - mode reconfigurable photonic circuit. By changing the phase parameters in the circuit, the Parameter Shift Rule in single - photon and two - photon cases is experimentally verified. The experimental results show that the Parameter Shift Rule is effective in calculating function values and gradients, and in some cases, it can be simplified to a low - order rule, reducing the number of required measurements. - **Practical applications**: The paper further shows how to use the Parameter Shift Rule to implement Variational Quantum Algorithms on the photonic platform. Specific applications include: - **Variational Eigensolver**: Used to calculate the ground - state energy of the hydrogen molecule (H₂). By minimizing the expected energy value, the ground - state energy of the molecule is found. - **Universal - Not Gate**: Achieve an important problem in quantum information, that is, the optimization of the optimal Universal - Not Gate. ### Summary Through theoretical derivation and experimental verification, this paper successfully implements the Parameter Shift Rule on the photonic platform and applies it to Variational Quantum Algorithms. This achievement provides new methods and tools for effectively using quantum hardware for complex calculations in noisy environments.