Quantum–Classical Hybrid Information Processing
via a Single Quantum System

Quoc Hoan Tran k09tranhoan@gmail.com Next Generation Artificial Intelligence Research Center (AI Center), Graduate School of Information Science and Technology, The University of Tokyo, Japan    Sanjib Ghosh sanjibghosh@baqis.ac.cn Beijing Academy of Quantum Information Sciences, Beijing, China    Kohei Nakajima k-nakajima@isi.imi.i.u-tokyo.ac.jp Next Generation Artificial Intelligence Research Center (AI Center), Graduate School of Information Science and Technology, The University of Tokyo, Japan
September 2, 2022
Abstract

Current technologies in quantum-based communications bring a new integration of quantum data with classical data for hybrid processing. However, the frameworks of these technologies are restricted to a single classical or quantum task, which limits their flexibility in near-term applications. We propose a quantum reservoir processor to harness quantum dynamics in computational tasks requiring both classical and quantum inputs. This analog processor comprises a network of quantum dots in which quantum data is incident to the network and classical data is encoded via a coherent field exciting the network. We perform a multitasking application of quantum tomography and nonlinear equalization of classical channels. Interestingly, the tomography can be performed in a closed-loop manner via the feedback control of classical data. Therefore, if the classical input comes from a dynamical system, embedding this system in a closed loop enables hybrid processing even if access to the external classical input is interrupted. Finally, we demonstrate preparing quantum depolarizing channels as a novel quantum machine learning technique for quantum data processing.

pacs:
Valid PACS appear here

Introduction

Recent advances in machine learning (ML) and quantum computing have revolutionized the methodology of processing complex and large-scale data. While merging these fields, classical or quantum systems can generate a massive amount of time series data, such as sensing data or quantum states that flow through multiple quantum channels in a network of quantum devices [1, 2, 3]. This context leads to the requirement of a novel learning paradigm to process these data efficiently, such as the easy manipulation used in training and deployment, while maintaining rich representation capability. Currently, algorithms are being designed on specific homogeneous data, such as quantum-native or classical-native data. However, most quantum devices rely on classical controls [4, 5], such as temperature or signals from electronic controllers [6, 7]. The outputs of these devices are not simply derived from quantum channels and are also considered a function of classical controls and quantum input. A representative example is a quantum switch with classical control, which simulates the indefinite causal order between two operations [8, 9, 10, 11, 12] [Fig. 1(a)]. Therefore, the research on hybrid quantum and classical data processing can lead to broader and near-term applicability for quantum devices. For example, we can use the same resource to learn the tomography of devices receiving both classical and quantum data without doing it separately for each control setting.

Contrary to ML models such as artificial recurrent neural networks on a digital computer, a physical system with rich dynamics can be a good candidate for a learning system within the framework of physical reservoir computing (PRC) [13, 14]. In PRC, the input is fed into a dynamical system called a reservoir to create nonlinear dynamics of input data via sufficiently complex and high-dimensional trajectories [15, 16, 17, 18, 13]. A readout, which outputs a linear combination of the accessible observables in the reservoir, is the only part that needs to be trained without interfering with the reservoir’s internal parameters. Accordingly, the success and efficiency of PRC rely on good physical realizations of the reservoir, which has attracted considerable interest from diverse research fields [14]. The seminal work [19] uses a disordered ensemble quantum dynamics system as a quantum reservoir (QR) to process classical data, with the possibility of having a large number of degrees of freedom. QRs have been developed in various platforms, such as nuclear magnetic resonance (NMR) systems [19, 20, 21], superconducting quantum processors [22, 23], fermions and bosonic models [24, 25, 26, 27], quantum harmonic oscillators [28, 29], arrays of Rydberg atoms [30], and photonic quantum memristors [31]. Several studies have focused on the processing of data in the form of quantum states [24, 26, 25, 32, 33, 34], which provide certain advantages over classical ML methods. However, a QR is yet to be treated as a homogeneous data-driven model because it lacks the ability to deal with hybrid forms of quantum-classical data. Therefore, an unified architecture for hybrid quantum-classical processing is required from theoretical and applied perspectives.

A quantum reservoir processor for quantum-classical hybrid data processing. (a) An example of a quantum device with hybrid inputs. Here, we consider a quantum switch that includes two quantum channels
Figure 1: A quantum reservoir processor for quantum-classical hybrid data processing. (a) An example of a quantum device with hybrid inputs. Here, we consider a quantum switch that includes two quantum channels and and an independent switch state controlled by a classical signal . This quantum switch can be considered a function of the hybrid input . Given a quantum state , the quantum switch produces an output if (s=0) and if (s=1). When is in a superposition of and , such as with (), the output becomes a quantum superposition of two alternative orders and . (b) Our quantum reservoir (QR) is a network of quantum dots that can receive both quantum and classical data as input. Quantum inputs are incident via optical fields, and classical inputs are encoded in experimental control fields. The appropriate readout after a time evolution on QR can provide a high-dimensional transformation for both classical and quantum inputs, which can be used in learning tasks.

In this study, we establish a framework that considers a QR as an analog processor to process hybrid quantum-classical data. Inspired by Refs. [24, 25], our QR is a network of quantum dots with random inter-site couplings. Classical inputs are encoded in classical controls, such as coherent pumps in the network, and quantum inputs are incident to the QR in the form of optical fields. For temporal processing, each quantum input interacts with the QR for a short duration before being replaced by another input. The time evolution of the interactions provides a high-dimensional nonlinear mapping of the input via the correlations in the QR, which can be extracted by classical or quantum readouts on accessible nodes. This enables us to learn the function of input sequence, leading to diverse applications in classical and quantum data processing.

Results

Quantum–Classical Hybrid Information Processing via a Quantum Reservoir. When we describe a quantum device processing quantum data in a realistic scenario, we must incorporate classical control into the model. In this case, a quantum device is in fact a function of quantum input and classical control as , where we consider the scalar for ease of explanation. For a device processing the sequence of hybrid inputs , , …, we can describe it using the temporal map of input history [33]. Our target is to develop a trainable framework to emulate .

The proposed framework contains three main parts: an input part containing input modes to receive the data, a QR processor to interact with inputs in a quantum evolution, and a readout for further processing [Fig. 1(b)]. We consider the QR processor as a two-dimensional lattice of quantum dots, represented by the Hamiltonian

(1)

where , , , , and are the field operators, onsite energies, hopping amplitudes between the nearest neighbor sites, nonlinearity strengths, and uniform time-dependent coherent field strengths, respectively. can be used to encode the classical input as , where and are the constant coefficient and input scaling, respectively.

The dynamics of the combined quantum state of the QR as well as the input modes can be described by the quantum master equation (we use the unit where Plank constant ).

(2)

where for and otherwise. Here, represents the cascade coupling between the input modes and the QR [35]. The Lindblad superoperator is defined for any arbitrary operator by .

Demonstration of the quantum tomography task and the classical channel equalizer task. (a) A random sequence of one-qubit quantum inputs (upper panel) and a result for the channel equalizer task (bottom panel) in the evaluation phase. Each quantum state is represented as a real vector by stacking the real and imaginary parts of the density matrix. (b) The target and reconstructed tomography with
Figure 2: Demonstration of the quantum tomography task and the classical channel equalizer task. (a) A random sequence of one-qubit quantum inputs (upper panel) and a result for the channel equalizer task (bottom panel) in the evaluation phase. Each quantum state is represented as a real vector by stacking the real and imaginary parts of the density matrix. (b) The target and reconstructed tomography with reservoir sites, , , and the measurement multiplexity .
Performance in the quantum tomography and classical channel equalizer tasks. (a) The average root mean square of fidelities (RMSF) and the average symbol error rate (SER) with shaded error bars over 10 trials.
(b) (Left) The average RSMF in the tomography task when we increase the number
Figure 3: Performance in the quantum tomography and classical channel equalizer tasks. (a) The average root mean square of fidelities (RMSF) and the average symbol error rate (SER) with shaded error bars over 10 trials. (b) (Left) The average RSMF in the tomography task when we increase the number of reservoir sites in the QR. (Right) Comparison between the average SER in the Echo State Network (ESN) and in our QR for the same number of computational nodes. In (b), we set the input scaling as and the measurement multiplexity as for numerical experiments; therefore, the QR with number of computational nodes corresponds to sites in the reservoir.

We explain quantum-classical hybrid processing using the proposed platform. First, the QR is excited only with the uniform for and no incident quantum inputs. We choose such that the QR at time reaches a steady state. This setting ensures the echo state property [15] for the reproducible computation, where the response to the same input sequence is independent of the QR’s initial state. Then, the quantum input (described by the input modes ) is incident to the reservoir, and the classical input is activated at the same time. At time for time interval , an appropriate and practical readout from the QR is performed for nontrivial transformations of input data (see Supplementary Information for detailed settings of , , , , and ). We consider two readout schemes: a linear combination of measurement results on the accessible observables (classical readout) and the other with a linear combination of quantum modes (quantum readout). The former is associated with a measurement process, while the latter has been considered in a quantum neuromorphic platform for quantum state preparation [26].

For a non-temporal processing task, we repeat the above procedure for every hybrid data instance . For a temporal processing task, at (), the classical input is switched to , and the quantum state replaces the partial state in the input modes. Since the input information is transferred into the QR during the interaction, this scheme enables the memory ability, which is required in temporal processing tasks.

In the classical readout, measuring the expectation values of the occupation numbers can extract the information from the QR to reconstruct . A representative application is quantum tomography, which reconstructs the density matrix output of via the linear regression model:  [25, 33]. Here, is the -dimensional reservoir state for readout, is the real vector form to stack the real and imaginary elements of , and and are the weight and bias parameters to be optimized via the training (see Methods). In the classical readout, multitasking is possible since the training cost is minimal for independent training with different for different tasks. If the measurement is performed after an interaction time for the current input and right before the next input, the dimensionality is equal to the number of quantum dots . One can increase this dimensionality by performing measurements at different timings in the interval , which is known as the temporal multiplexing technique. Between two inputs, we perform measurements at equal interval , forming the dimensionality . Here, is called the measurement multiplexity. Another technique to increase the dimensionality is spatial multiplexing [20], where readout reservoir states in different QRs are combined to learn the target.

In the quantum readout, the standard toolbox of linear optical elements [36] enables us to generate quantum output modes with complex coefficients . The output modes must satisfy the commutation relations , which impose the condition . Since the target is the quantum state, the training process is not as simple as the one used for linear regression on the accessible observables in the classical readout. Consider the separation of non-adjustable and adjustable parameters in PRC, we assume that the parameters of Hamiltonian in Eq. (Results) are random and not trainable. Instead, we train interaction () and readout () coefficients such that the quantum state described via becomes the same as the output of (see Methods).

Quantum Tomography and Channel Equalizer. We present an application of QR to hybrid tasks in which quantum tomography and noise-free reconstruction of classical data are performed simultaneously. Consider a temporal map where and are the sequences of classical controls and quantum inputs, respectively. We assume that the output state is accessible at for training. The tomography task learns the relation between and for and reconstructs with . Obviously, the QR cannot learn this hybrid task without the information contained in . Therefore, we further assume that the classical control data are also accessible, although only in a distorted form of a nonlinear transformation . Since multitasking is feasible in the classical readout, we can also reconstruct from .

In the following example, we consider as a quantum switch with classical control [Fig. 1(a)]. Technically, a quantum switch includes two quantum channels and representing the operations by Alice and Bob, respectively, and an independent switch state . Signal communication between Alice and Bob is only restricted to a partial order. However, the quantum switch can send the information under the indefinite causal order of quantum channels [8, 9, 10, 11, 12]. Given a state on which these channels act, the quantum switch produces an output if and if . When the switch state is in a superposition of and , such as with (), the output becomes a quantum superposition of two alternative orders and . Here, the quantum switch can be considered a function of hybrid input .

We use our QR to mimic the behavior of the quantum switch applied to the input sequence. Given a delay , we demonstrate that the QR with current inputs and can utilize memory effects to reconstruct and . We consider as two depolarizing quantum channels and the reconstruction of from as the nonlinear channel equalization task (see Methods). Here, is an i.i.d. sequence of one-qubit density matrices, and is an i.i.d. discrete sequence of symbols, which are selected from with equal probability. The switch state at each is , and the distorted input is transformed from via both linear and nonlinear channels [37] (see Methods). If , it requires a QR with the nonlinear effect and a memory of both quantum and classical inputs.

The QR’s output is divided into two parts: the tomography result in the real vector form and the equalized result . is then transformed in the density matrix form with the consideration of a projection to obtain a positive semidefinite matrix (see Methods). is converted back into a nearest symbol . The training is performed at (), and the tomography performance is evaluated via the root mean square of fidelities (RMSF)

(3)

where and . The equalization performance is evaluated via the symbol error rate (SER)

(4)

Figure 2(a) illustrates a sequence of one-qubit quantum input in the evaluation phase (upper panel) and a result for the channel equalizer (bottom panel) with delay (see Supplementary Information for results with other values). Here, the predict and target sequences for the reconstruction of classical symbols are overlapped at almost all time steps. The density matrix at each time step is represented as a real vector by stacking the real and imaginary parts. Figure 2(b) depicts that the quantum target sequence can be reconstructed well.

We systematically evaluate the performance of the tomography and channel equalizer tasks via the RMSF (left axis) and SER (right axis) in Fig. 3(a) for different and . A large value of compared with and leads to non-ergodic behavior in the QR, i.e., a strong and qualitative dependence on the initial state at (Fig. S1 in Supplementary Information). In addition, in Supplementary Information, we further investigate the effects of the classical input in the reconstruction of the quantum input. With a large , the input state is incident with weak coupling () under a strong effect of the classical input to the QR’s dynamics, which means that not much information regarding quantum inputs can be retained in the QR. In contrast, a small reduces the memory effect in reconstructing the previous classical input. This explains the existence of a region of for an optimal performance ().

The left panel of Fig. 3(b) displays the RMSF of the tomography task when we increase the number of reservoir sites. In the right panel of Fig. 3(b), we further compare the performance in the equalization task with the Echo State Network (ESN) in classical reservoir computing under the condition of the same number of computational nodes (see Methods). Here, we set the input scaling as and use the QR with the measurement multiplexity ; therefore, the QR containing computational nodes corresponds to sites in the reservoir. We confirm that with appropriate setting of the constant coherent field , we can obtain almost the same performance with the ESN.

Continuous Variable Tomography and Closed Loop. We modify the situation in the tomography task where, after the training phase, we were unable to access the information from the classical control . Surprisingly, owing to the advantages of multitasking, our QR can autonomously generate in a closed-loop manner while performing the tomography task with the hybrid input. In the training phase, is learned in an open loop where we predict the next step given the input . After training, the prediction is used as the classical input for the next step, forming a closed-loop control without any external interventions. This model-free prediction is well established in classical reservoir computing, for example, to predict low-dimensional chaotic systems [37] or large spatiotemporally chaotic systems [38]. However, to the best of our knowledge, our demonstration is the first to combine the closed-loop setting with the quantum tomography task, which is only effective in the QR setting.

Continuous variable tomography and closed-loop control of periodic classical signals. (a) Closed-loop control of classical signals with
Figure 4: Continuous variable tomography and closed-loop control of periodic classical signals. (a) Closed-loop control of classical signals with , , , and and . (b) Continuous variable tomography at typical time steps in the closed loop with . The last panel displays the absolute difference between the target and reconstructed Wigner functions. (c) Stability after adding a small perturbation to the trajectory for different input scaling .

We consider the quantum tomography of continuous variable states. The target is to reconstruct the output in the Wigner function form defined on a grid of continuous variables and (see Methods). We use 300 randomly generated one-mode thermal states and the periodic signals in the training phase. The target is created by applying one-mode squeezing operator to as

(5)

where . In Supplementary Information, we consider another encoding: . Here, we consider the cutoff Fock space dimension (the effective dimension) of these continuous variables states is .

Figure 4(a) shows examples of the control signals in the training and closed-loop phase for . With and sites, the control signal is almost reconstructed perfectly for all time steps in the closed-loop phase. This QR can efficiently reconstruct the Wigner function even without accessing the control signal [Fig. 4(b)]. We further investigate the stability of the closed-loop trajectories plotted in the plane [Fig. 4(c)]. The QR presents a stable embedding of sinusoidal classical inputs if the trajectory can return to the target after adding a small perturbation (green line) into a predicted value, suggesting that our system successfully learned the target attractor. We observe an appropriate setting of input scaling to obtain stable closed loops (. Intriguingly, if we increase , for example to , the closed loop fails to reconstruct the trajectory of the sinusoidal input in the evaluation stage but can produce chaotic-like behavior in the embedding space. In this case, the generated trajectory is not elliptical as the trajectory of sinusoidal inputs but still robust with respect to a small perturbation. We also observe the dependency of the performance of closed-loop control and the production of chaotic-like behavior on time scales of the control signals, which are investigated in detailed in Supplementary Information.

Quantum Readout and Depolarizing Channel. Finally, we present an application using the quantum readout scheme to output quantum states. We use the QR to prepare a depolarizing quantum channel , where are randomly generated in a -dimensional Hilbert space and is a random sequence in .

First, we consider a sequence of one-qubit quantum states for the training and states for the evaluation. The baseline is computed when we set the output as the same as the input. We use the Nelder–Mead simplex algorithm [39] (see Methods) to minimize the fidelity error

(6)

where and are the target and preparing quantum states, respectively. In Fig. 5(a), the evaluated fidelity errors with different readout and training configurations are presented for the QR with sites, , and . The interquartile range is contained within the box, and the 5th and 95th percentiles are marked by whiskers. The median is the line across the box, and the outliers are located outside the whiskers of each box plot. Here, IN, RV, and ALL correspond to the setting where only input modes , only reservoir modes , or both of them are considered as the readout nodes, respectively. Wo and Wio correspond to the situation where only readout weights or both readout weights and interaction coefficients are considered as the training parameters, respectively. The result implies that the consideration of both input and reservoir modes as readout modes and both interaction coefficients and readout weights for training leads to the best performance. Under this setting, we display the variation in fidelity errors EF with the input scaling and in Fig. 5(b). Even with a small QR () we can prepare the target channel with a relatively low error (), which is significantly better compared with the baseline (). Furthermore, increasing basically leads to a better performance where more information regarding the classical input is integrated.

The error in training and evaluating the quantum readout to prepare the depolarizing quantum channel. (a) Combinations of readout nodes and training parameters, where only input modes (IN), only reservoir modes (RV), or both of them (ALL) are considered as
Figure 5: The error in training and evaluating the quantum readout to prepare the depolarizing quantum channel. (a) Combinations of readout nodes and training parameters, where only input modes (IN), only reservoir modes (RV), or both of them (ALL) are considered as readout nodes. The training parameters are readout weights (Wo) or both readout weights and interaction coefficients (Wio). Fidelity error with one-qubit input states (b) and error taken in the Wigner representation with continuous variable states (c) varying with input scaling .

Finally, we prepare the depolarizing channel using the input quantum states as random squeezed thermal states in the continuous variable form. We minimize the cost function taken in the Wigner representation as follows:

(7)

Owing to the scale limitation, we only simulate the continuous variable states of the effective dimension , where . Figure 5(c) presents the errors in 50 training and 50 evaluating data varying with . We can observe a similar trend in Fig. 5(b), that is, with sufficient classical information (), the error EW () with readout nodes is significantly lower than the baseline’s error (). This result is still below a considerably good preparation (), but it demonstrates that hybrid inputs can be effectively considered for training the quantum readout.

Discussion

We proposed a framework for an analog QR processor with hybrid inputs and classical and quantum readouts for learning heterogeneous quantum-classical data. This aligns well with scenarios where one wishes to model a quantum device to process quantum input but must rely on classical control signals in physical experiments. Our framework, therefore, has the potential to be physically implemented in quantum network systems where classical control and quantum sources can interact with nonlinear quantum systems to form a quantum channel. It can help realize quantum adaptive systems capable of quantum information processing. These agents can be used to interpret and memorize both classical and quantum signals from their environment and to respond accordingly to the actions of their surroundings [40].

Processing hybrid quantum and classical data is a promising idea to facilitate future innovative use cases for quantum computers. This concept aims to leverage the advantages of quantum mechanics in ML with an unconventional computing framework and intriguing applications. It is not limited to the conventional discussion on practical quantum advantages, such as the “beating speedup” of quantum to classical ML methods [41]. For example, classical readouts lead to interesting applications of multitasking where quantum data can be processed in a closed loop of the classical control. Furthermore, adding this closed-loop mechanism allows us to utilize the unique coherence properties of quantum systems to generate unique classical dynamics. We consider the quantum readout to avoid the measurement process of preparing the quantum output. However, optimization can be challenging and requires improvement, since we need to simulate or drive the quantum system and evaluate the cost function for a wide range of parameters.

A further enticing discussion would be the case of the correlation between the processing of quantum data and classical data in a hybrid setting of the QR. We can consider a QR to simultaneously process quantum data and classical data as separate tasks. An intriguing research question arises: Can this multitasking mechanism induce positive or negative effects on information processing? For example, if we repeatedly modify the coherent field strengths of the QR via a classical input with a large magnitude, it can limit the short-term memory properties of quantum data processing (see Supplementary Information). However, one can also expect positive effects and not only negative ones. There may exist a situation where simultaneously processing different modals of data can actually bring an optimal regime rather than solely solving a single task. We can start by investigating relations between hybrid input protocols with the dynamics of the QR, such as the classical input may induce the dynamical phase transition in the QR [42]. We can also study how classical and quantum data are processed via the QR’s dynamics, such as by decomposing the readout reservoir states in terms of basis polynomials for input history [43, 44]. Along with this research line, one can refer to a recent study demonstrating that quantum noise in real quantum processors can induce the information processing capability when using classical data [45].

References

Methods

Reservoir Computing (RC). RC is based on the modeling for the transformation of the input sequence in high-dimensional trajectories [15, 16, 17, 18]. RC contains three main parts: the input part to store the input sequence, the reservoir, and the readout part. A reservoir is a dynamical system driven by an input to encode recurrent relations and nonlinear dynamics of the input history. The readout part with connections to the reservoir can extract reservoir states, which are useful features retained by the reservoir for emulating the target sequence. In general, we only need to train the readout connections, making RC particularly suitable for physical implementations.

Mathematically, RC is described by the input-driven map , where and are the input and the reservoir’s state space, respectively. Here, is considered the dimension of the reservoir’s state. If we feed a discrete-time input sequence into the reservoir, the readout reservoir state is represented by the following recurrent relation:

(8)

In temporal supervised learning tasks, we are given an input sequence and the corresponding target sequence , where with is the output dimension. We consider a parameterized readout map , where the output signal is . The readout map is often taken as a linear combination of the readout reservoir states as . Here, is the trainable parameter obtained by minimizing the error between and over . For example, we often consider the mean square error

(9)

where denotes the Euclidean norm between two vectors in . For training, we add a constant bias term to the readout reservoir state and optimize via the linear regression . Here, is the target matrix and is the matrix that combines the readout reservoir states of the training data. The optimal value of is obtained via the Ridge regression in the matrix form , where is a positive constant for the regularization.

Echo State Network (ESN). ESN is a realization of the input-driven map in RC. It belongs to the concept of artificial recurrent neural network (RNN), as we have a large network with randomly fixed inner and recurrent connections. Consider ESN with computational nodes and a discrete-time input sequence , the reservoir state at time step is described by

where is the activation function applied on vector as . Here, and are the input weight matrix and recurrent weight matrix, respectively. In the channel equalization task, the input weight matrix is generated from random uniform distribution in . We also set the connection probability and the spectral radius of the recurrent weight matrix to 0.1 and 0.9, respectively.

Learning Quantum Tomography. A quantum device can be described by a function of quantum input and classical control as , where we consider the scalar for ease of notation. Given a sequence of hybrid inputs , , …and a quantum device with a time-dependent behavior, we can describe it using the temporal map of the current and past inputs [33]. We assume that we have full tomography for the corresponding output states of in the training, where we are given a hybrid input sequence and the corresponding target sequence . Here, is the real vector form of . If is described by the density matrix, is formed by stacking the real and imaginary elements of . In the evaluation stage, we are given an input sequence with the corresponding target , where . The output sequence is , which is rearranged in the matrix form . To obtain the final positive semidefinite matrix , we project onto the spectrahedron such that the trace of is equal to 1 and the Frobenius norm of is minimized [46, 47].

Tomography learning can be performed with other forms of , for example, in the Wigner function representation of continuous variable states. Given a density matrix , the continuous variable states associated with can be described by the Wigner function

(10)

where the integral is evaluated in the whole space and the states represent continuous position bases. We evaluate Wigner functions on a grid of and , where we divide the interval into equal intervals for the range of and . The target of continuous variable tomography is to reconstruct these Wigner functions, i.e., the real dimensional matrices.

Quantum Switch. In the classical counterpart, a switch is an operation of control that can route a target system through two classical channels and in series following one causal order ( then ) or the other ( then ). The quantum switch is different in that it induces entirely new quantum trajectories where the order of the two operators is indefinite. Technically, a quantum switch includes two quantum channels and to create a new channel , which uses the channels and in an order that is entangled with an independent switch quantum state . The channel returns the state if and if . When is in a superposition of and , the channel returns a correlated state as a result of and acting on in a superposition of two alternative orders.

To describe , we denote the Kraus operators of channels and as and , respectively, where and . The Kraus operators of are defined as

(11)

The action of the quantum switch is given by

(12)

In our study, we consider and as two depolarizing channels with parameters and , which are given by

(13)
(14)

where is the dimension of and , are orthonormal bases of the space of matrices. Here, we introduce the notation and . We define the extension Kraus operators for and as for and for , respectively. We can express the Kraus operators of as

(15)

We consider the control state , where (). The output of the quantum switch is given by

(16)

where

(17)
(18)
(19)
(20)

Nonlinear Channel Equalization. In wireless communication, signals sent from the antenna of a transmitter are transmitted to a receiver by following various paths while being reflected by structures such as buildings. Consequently, the transmitted signal is received with distortion due to the influence of noise added during transmission and the difference in transmission time depending on the path. Since this distortion depends on the frequency (channel), it is necessary to remove the distortion using an equalizer to demodulate the signal at the receiver. This process is called channel equalization.

In our numerical experiments, the distorted input is transformed from via the linear channel

(21)

and the nonlinear channel

(22)

where is an i.i.d. Gaussian noise [37]. We consider with zero mean adjusted in power to yield a signal-to-noise ratio as 24 dB.

Training the Quantum Readout. In the classical readout, the training process is simply a linear regression of measurement results to target data, such as the tomography of the quantum state. However, it is more complicated in the quantum readout since the target is the physical quantum state. An advantage of PRC is that we can keep the inner parameter fixed and train readout parameters and the interaction between the reservoir and the input.

In the quantum readout, we rely on the fact that any unitary matrix that describes the mixing between optical modes can be implemented with linear optics devices such as phase shifters and beam spliters [36]. Therefore, we can implement the combination of the transmitted fields to generate quantum output modes with complex coefficients . The output modes must satisfy the commutation relations , which impose the condition .

Let us consider as the vector of transformed real parameters for the interaction coefficients and readout coefficients . Given training data with hybrid inputs and target quantum states , the cost function evaluates the difference between the quantum states described via and the target quantum states . In our numerical simulations, is defined via the fidelity error [Eq. (6)] or the error taken in the Wigner representation [Eq. (7)]. Here, becomes a nonlinear function of parameters . We find the optimal such that is minimized. Several methods can be used for this nonlinear optimization problem, and we use the Nelder–Mead simplex algorithm [39], which is fast and effective for problems with a large number of parameters. The algorithm starts from an initial guess for the parameters and generates a simplex in the multidimensional parameter space. In each iteration, the cost function is evaluated at each point in the simplex. Under a selecting and replacing procedure, the points in the simplex with the worst value of the cost function are reconstructed for each step until a convergence condition is satisfied. In our simulation, we use the Julia framework [48] for simulating the quantum master equation and the built-in function with default parameters in the Optim package for the Nelder–Mead algorithm. We refer to Supplementary Information for more detailed results obtained using the Nelder–Mead steps in the optimization process.

Acknowledgements.
The authors acknowledge Shumpei Kobayashi for fruitful discussions. This work is supported by MEXT Quantum Leap Flagship Program (MEXT Q-LEAP) Grant Nos. JPMXS0118067394 and JPMXS0120319794.

Author contributions

All authors conceived the research and contributed significantly to interpreting the results. Q.H.T conceived the model, performed the main analysis for the experimental data and prepared the manuscript. S.G. developed the concept and designed the initial simulation for quantum reservoir. K.N. supervised the research and contributed to the ideation and design of the research. All authors contributed to writing the manuscript.

Competing interests

The authors declare no competing interests.

Additional information

Supplementary information The online version contains supplementary material.

Correspondence and requests for materials should be addressed to Q. H. Tran.