Density Matrix Emulation of Quantum Recurrent Neural Networks for Multivariate Time Series Prediction

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Viqueira, José Daniel, Faílde, Daniel, Juane, Mariamo M., Gómez, Andrés, Mera, David
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917906249416704
author Viqueira, José Daniel
Faílde, Daniel
Juane, Mariamo M.
Gómez, Andrés
Mera, David
author_facet Viqueira, José Daniel
Faílde, Daniel
Juane, Mariamo M.
Gómez, Andrés
Mera, David
contents Quantum Recurrent Neural Networks (QRNNs) are robust candidates for modelling and predicting future values in multivariate time series. However, the effective implementation of some QRNN models is limited by the need for mid-circuit measurements. Those increase the requirements for quantum hardware, which in the current NISQ era does not allow reliable computations. Emulation arises as the main near-term alternative to explore the potential of QRNNs, but existing quantum emulators are not dedicated to circuits with multiple intermediate measurements. In this context, we design a specific emulation method that relies on density matrix formalism. Using a compact tensor notation, we provide the mathematical formulation of the operator-sum representation involved. This allows us to show how the present and past information from a time series is transmitted through the circuit, and how to reduce the computational cost in every time step of the emulated network. In addition, we derive the analytical gradient and the Hessian of the network outputs with respect to its trainable parameters, which are needed when the outputs have stochastic noise due to hardware errors and a finite number of circuit shots (sampling). We finally test the presented methods using a hardware-efficient ansatz and four diverse datasets that include univariate and multivariate time series, with and without sampling noise. In addition, we compare the model with other existing quantum and classical approaches. Our results show how QRNNs can be trained with numerical and analytical gradients to make accurate predictions of future values by capturing non-trivial patterns of input series with different complexities.
format Preprint
id arxiv_https___arxiv_org_abs_2310_20671
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Density Matrix Emulation of Quantum Recurrent Neural Networks for Multivariate Time Series Prediction
Viqueira, José Daniel
Faílde, Daniel
Juane, Mariamo M.
Gómez, Andrés
Mera, David
Quantum Physics
Machine Learning
Quantum Recurrent Neural Networks (QRNNs) are robust candidates for modelling and predicting future values in multivariate time series. However, the effective implementation of some QRNN models is limited by the need for mid-circuit measurements. Those increase the requirements for quantum hardware, which in the current NISQ era does not allow reliable computations. Emulation arises as the main near-term alternative to explore the potential of QRNNs, but existing quantum emulators are not dedicated to circuits with multiple intermediate measurements. In this context, we design a specific emulation method that relies on density matrix formalism. Using a compact tensor notation, we provide the mathematical formulation of the operator-sum representation involved. This allows us to show how the present and past information from a time series is transmitted through the circuit, and how to reduce the computational cost in every time step of the emulated network. In addition, we derive the analytical gradient and the Hessian of the network outputs with respect to its trainable parameters, which are needed when the outputs have stochastic noise due to hardware errors and a finite number of circuit shots (sampling). We finally test the presented methods using a hardware-efficient ansatz and four diverse datasets that include univariate and multivariate time series, with and without sampling noise. In addition, we compare the model with other existing quantum and classical approaches. Our results show how QRNNs can be trained with numerical and analytical gradients to make accurate predictions of future values by capturing non-trivial patterns of input series with different complexities.
title Density Matrix Emulation of Quantum Recurrent Neural Networks for Multivariate Time Series Prediction
topic Quantum Physics
Machine Learning
url https://arxiv.org/abs/2310.20671