Chinese Physics Letters, 2017, Vol. 34, No. 7, Article code 070302 Implementing Classical Hadamard Transform Algorithm by Continuous Variable Cluster State * Yu Wang(王宇)**, Qi Su(苏琦) Affiliations State Key Laboratory of Cryptology, Beijing 100878 Received 19 January 2017 *Supported by the National Natural Science Foundation of China under Grant Nos 11504024, 61502041, 61602045 and 61602046, and the National Key Research and Development Program of China under Grant No 2016YFA0302600.
**Corresponding author. Email: wangy@sklc.org
Citation Text: Wang Y and Su Q 2017 Chin. Phys. Lett. 34 070302 Abstract Measurement-based one-way quantum computation, which uses cluster states as resources, provides an efficient model to perform computation. However, few of the continuous variable (CV) quantum algorithms and classical algorithms based on one-way quantum computation were proposed. In this work, we propose a method to implement the classical Hadamard transform algorithm utilizing the CV cluster state. Compared with classical computation, only half operations are required when it is operated in the one-way CV quantum computer. As an example, we present a concrete scheme of four-mode classical Hadamard transform algorithm with a four-partite CV cluster state. This method connects the quantum computer and the classical algorithms, which shows the feasibility of running classical algorithms in a quantum computer efficiently. DOI:10.1088/0256-307X/34/7/070302 PACS:03.67.Lx, 21.60.Gx, 42.50.Xa, 82.80.Nj © 2017 Chinese Physics Society Article Text Quantum computation (QC) is expected to be more efficient than classical computation. A quantum computer is built from a circuit containing wires and elementary quantum gates to carry around and manipulate the quantum information.[1] In recent years, esoteric and attractive ideas about quantum computers have been incrementally converted into the visible realization, along with the experimental demonstrations of various quantum logic operations in both discrete variable (DV) and continuous variable (CV) domains.[2,3] Furthermore, some famous quantum algorithms have been realized theoretically and experimentally, such as Shor's algorithm,[4] Grover algorithm,[5] and solving linear equations algorithm.[6,7] Measurement-based one-way QC performs computation by measurement and classical feedforward on a multipartite cluster entangled state.[8,9] Following the first theoretical proposal on universal quantum computation with CV cluster states,[9] four-partite and eight-partite CV cluster states have been successfully prepared.[10-13] Recently, up to 10000–qumode[14] optical CV cluster states have been prepared for QC. Based on the prepared CV cluster state, several quantum logic gates have been demonstrated, such as squeezing and Fourier transformation operation,[15,16] controlled-$x$ operation,[17] controlled-phase[18] and a gate sequence.[19] In the development of QC, some fundamental questions still need to be answered, such as which classical math algorithm can be speeded up in a quantum way, and which math problems are always run faster with the classical computer than a quantum one? The classical computer may be incapable of computing quantum algorithms, so can quantum computers carry out some classical algorithms more efficiently? If we find some classical algorithms which can be performed in quantum computers, the scope and application of the quantum computation will be expanded. The classical Hadamard transform (HT), which can be regarded as being built out of size-2 discrete Fourier transform (DFT), is a special case of a classical example of fast Fourier transform (FFT).[20] The basic element of HT, whose transformation matrix is $\left(\begin{matrix} 1 & 1 \\ 1 & -1\end{matrix} \right)$, is also called the Hadamard gate in quantum mechanics. Many research groups have carried out research on how to achieve the Hadamard gate. A probabilistic Hadamard gate has been demonstrated by coherent state qubits,[21] and squeezed superposition of coherent states.[22] However, higher order research on HT is very little, except in 2012 quantum interference observed as a function of Berry's phase in a Hadamard optical network.[23]
cpl-34-7-070302-fig1.png
Fig. 1. (Color online) Basic element for achieving HT with the cluster state. (a) Two-mode classical HT algorithm, red lines (solid): addition operation; green lines (dashed): subtraction operation. (b) Theoretical scheme of the basic element HT algorithm with the EPR state, $a_{1}$ and $a_{2}$: EPR states; AM: amplitude modulator; PM: phase modulator; HBS: half beam splitter; BS: beam splitter; $a_{10}$ and $a_{20}$: vacuum states; $\eta_{1}$ and $\eta_{2}$: transmittances of BS.
Although Gaussian operations can be simulated efficiently on a classical computer, it is not well understood whether Gaussian operations and preparations are sufficient to reproduce classical algorithms in the general case. In this work, we propose a method to achieve the HT algorithm with CV cluster states and Gaussian operations, which would expand the application scenarios of one-way QC. Actually our scheme is a realization of optical information processing, and it can be applied directly to the one-way QC model by using cluster states. We find that the use of one-way QC with the cluster state to achieve the HT algorithm requires fewer operations than classical computation, i.e., the one-way CV cluster QC needs only half the operations of the normal classical computation. As an example, we show the implementation of the four-mode HT algorithm with four-partite CV cluster states. The signal-to-noise ratio (SNR) is used to quantify the performance of the HT algorithm. It should be emphasized that we do not propose a new quantum algorithm for one-way QC, but propose a new method to realize a special classical algorithm (HT algorithm) by using the CV one-way QC. The HT, which is also named as the Walsh–Hadamard transform, Hadamard–Rademacher–Walsh transform, Walsh transform, and Walsh–Fourier transform, is an example of a generalized class of Fourier transforms. It performs an orthogonal, symmetric, linear operation on $2^{k}$ real numbers.[20] HT is widely used in computer science and many other different applications, such as power spectrum analysis, digital signal processing, filtering, processing speech, medical signal fields, calculating large integer multiplication, multiplexing and coding in communications, characterizing non-linear signals, solving non-linear differential equations and calculating the linear approximation of any Boolean functions to the linear functions. Given a $2^{k}\times 2^{k}$ matrix $H_{2^{k}}$, and a $2^{k}$ real-number input unit vector ${\boldsymbol M}$, we would like to calculate the $2^{k} $ real-number output vector ${\boldsymbol N}$, where the relationship between input vector and output vector satisfies ${\boldsymbol N}=H_{2^{k}}\times {\boldsymbol M}$. For $k\geq 1$, the matrix $H_{2^{k}}$ is $$ H_{2^{k}}=H_{2}\otimes H_{2^{k-1}},~~ \tag {1} $$ where we have $H_{1}=1$, $H_{2}=\left(\begin{matrix} 1 & 1 \\1 & -1\end{matrix}\right)$, and the normalization coefficient is omitted. The cluster state is a type of multipartite quantum entangled graph state corresponding to some mathematical graphs.[9,24-26] The CV cluster quadrature correlations (so-called nullifiers) can be expressed by[24-26] $$ (\hat{p}_{a}-\sum_{b\in N_{a}}\hat{x}_{b})\rightarrow 0,~\forall a\in G,~~ \tag {2} $$ where $\hat{x}_{a}=(\hat{a}+\hat{a}^†)/2$ and $\hat{p}_{a}=(\hat{a}-\hat{a}^†)/2i$ represent the quadrature-amplitude and quadrature-phase operators of an optical mode $\hat{a}$, respectively. The subscript $a(b)$ expresses the designated mode $\hat{a}$ ($\hat{b}$). The modes of $a\in G$ denote the vertices of the graph $G$, while the modes of $b\in N_{a}$ are the nearest neighbors of mode $\hat{a}$. For an ideal cluster state, the left-hand side of Eq. (2) tends to zero, which represents a simultaneous zero eigenstate of the quadrature combination.[26] The CV cluster quantum entanglements generated by experiments are deterministic, but imperfect, the entanglement features of which have to be verified and quantified by the sufficient conditions for the full inseparability of multipartite CV entanglement.[10,11] The classical HT algorithm can be decomposed into several basic elements (the transform matrix $H_{2}$) which is shown in Fig. 1(a). The basic element of classical HT algorithm consists of two input modes $m_{1}$ and $m_{2}$, two output modes $n_{1}$ and $n_{2}$, one addition operation and one subtraction operation. After utilizing addition and subtraction operations to the input vector ${\boldsymbol M}=\binom{m_{1}}{m_{2}}$, we obtain the output vector ${\boldsymbol N}=\binom{n_{1}}{n_{2}}$. If the input modes and output modes satisfy $n_{1}=m_{1}+m_{2}$ and $n_{2}=m_{1}-m_{2}$, the simplest and most basic HT algorithm is achieved. Now we explain how to achieve the basic element of the HT algorithm with the basic optical element: a half beam splitter (HBS) and a two-partite CV cluster state. The quadrature components of the CV cluster state are used to compute and transmit information. The nullifiers of the two-partite CV cluster state can be obtained from those of the Einstein–Podolsky–Rosen (EPR) entangled state with a local phase shift, thus the two states are equivalent up to a phase shift in the infinite squeezing limit. For the EPR entangled states, the quadratures satisfy $\langle {\it \Delta} ^{2}(\hat{x}_{a_{1}}+\hat{x}_{a_{2}}) \rangle =2e^{-2r}$ and $\langle {\it \Delta} ^{2}( \hat{p}_{a_{1}}-\hat{p}_{a_{2}}) \rangle =2e^{-2r}$, where $0 < r < \infty$ is the correlation parameter of the EPR entangled states, $r=0$ without any quantum correlation and $r\rightarrow \infty $ corresponding to the ideal correlation,[27] the entanglement degree of the EPR state is $-10\log e^{-2r}$. Firstly we encode the information ($m_{1}$ and $m_{2}$) of the input vector, which can be generated from the signal generator, onto the quadrature components of the EPR state $\hat{a}_{1}$ and $\hat{a}_{2}$ by amplitude and phase modulators, respectively (Fig. 1(b)). The frequency of modulated modes is usually about several MHz, which is at the side bands of the optical frequency. The measurement frequency of the homodyne detection is chosen to be the same as the frequency of the modulated modes. After interference on the HBS, the amplitude quadratures and the phase quadratures of $\hat{n}_{1}$ and $\hat{n}_{2}$ can be expressed as $$\begin{align} \hat{x}_{n_{1}}=\,& \frac{1}{\sqrt{2}}(\hat{x}_{a_{1}}+\hat{x}_{a_{2}}+\hat{x}_{m_{1}}+\hat{x}_{m_{2}}), \\ \hat{p}_{n_{1}}=\,& \frac{1}{\sqrt{2}}(\hat{p}_{a_{1}}+\hat{p}_{a_{2}}+\hat{p}_{m_{1}}+\hat{p}_{m_{2}}), \\ \hat{x}_{n_{2}}=\,& \frac{1}{\sqrt{2}}(\hat{x}_{a_{1}}-\hat{x}_{a_{2}}+\hat{x}_{m_{1}}-\hat{x}_{m_{2}}), \\ \hat{p}_{n_{2}}=\,& \frac{1}{\sqrt{2}}(\hat{p}_{a_{1}}-\hat{p}_{a_{2}}+\hat{p}_{m_{1}}-\hat{p}_{m_{2}}).~~ \tag {3} \end{align} $$ Among the amplitude and phase quadratures of modes $\hat{n}_{1}$ and $\hat{n}_{2}$, the amplitude quadrature of $\hat{n}_{1}$ and the phase quadrature of $\hat{n}_{2}$ are used to realize the two-mode HT algorithm. For the ideal EPR entangled states, we can write variances of the amplitude quadrature of $\hat{n}_{1}$ and the phase quadrature of $\hat{n}_{2}$ in the following form[28] $$\begin{align} \langle \delta ^{2}(\hat{x}_{n_{1}})\rangle=\,&\frac{1}{2}\langle \delta ^{2}(\hat{x}_{m_{1}}+\hat{x}_{m_{2}})\rangle, \\ \langle \delta ^{2}(\hat{p}_{n_{2}})\rangle=\,&\frac{1}{2}\langle \delta ^{2}(\hat{p}_{m_{1}}-\hat{p}_{m_{2}})\rangle.~~ \tag {4} \end{align} $$ When the resource state is an ideal EPR entangled state, we can finally use the homodyne technology to obtain the element of the output vector: $m_{1}+m_{2}$ and $m_{1}-m_{2}$ simply by measuring the amplitude quadrature of $\hat{n}_{1}$ and the phase quadrature of $\hat{n}_{2}$. Here we have assumed that the variance of modulated signal $\hat{x}_{n_{i}}$ and $\hat{p}_{n_{i}}$ ($i=(1,2)$) are equal. The outputs $\hat{x}_{n_{1}}$, $\hat{p}_{n_{2}}$ represent the outputs ($n_{1}$ and $n_{2}$) of the HT algorithm, respectively. With the help of the optical interference on the HBS, we can achieve one addition and one subtraction operation at the same time, while the classical computer needs to carry out the addition and subtraction operation separately. Therefore, The number of operations needed by the HT algorithm using the CV one-way quantum computer with the cluster state is just half of the classical computer. The calculation we discuss here is the classical data by using quantum computer, and just classical calculation result would be needed, which is quite different from quantum computation. In quantum computation theory, quantum states are the basic computational resources and carriers of quantum information. Through the evolution and operation of the quantum state one can obtain the required calculation results, and all the parameters of the quantum state in the evolution should be changed at the same time. For example, in CV quantum theory the amplitude quadrature $\hat{x}$ and the phase quadrature $\hat{p}$ could correspond to quadrature amplitudes of a mode in the electromagnetic field. In the Heisenberg picture, applying a Hamiltonian $\hat{H}$ gives a time evolution for operators $\dot{A}=i[ \hat{H},\hat{A}]$. In our theory, we only need to use partial parameters of the quantum state to obtain the final calculation result. The remaining parameters of the quantum state would be used for identity authentication, eavesdropping detection, error correction and so on. Such as in the scheme of basic element for achieving HT with the cluster state (Fig. 1), we just use the amplitude quadrature of $\hat{n}_{1}$ ($\hat{x}_{n_{1}}$) and the phase quadrature of $\hat{n}_{2}$ ($\hat{p}_{n_{2}}$), but not the phase quadrature of $\hat{n}_{1}$ ($\hat{p}_{n_{1}}$) and the amplitude quadrature of $\hat{n}_{2}$ ($\hat{x}_{n_{2}}$). Although our scheme can be considered as a realization of optical information processing, it should be applied directly to the one-way QC model by using cluster states, because the output of our scheme can be fed back directly to other cluster states which can perform the subsequent job. In our scheme, both input and output are classical data, thus we analyze the classical SNR[29] to compare the level of a desired signal to the level of background noise. SNR can be given by the following equation with the variance of the signal $\langle \delta ^{2}({\rm sig})\rangle$ and noise $\langle \delta ^{2}({\rm noise}) \rangle$,[29] $$ {\rm SNR}=10\log _{10}\Big(\frac{\langle \delta ^{2}({\rm sig})\rangle}{\langle \delta ^{2}({\rm noise}) \rangle}\Big).~~ \tag {5} $$ The real cluster state is affected by ambient noise during transmission, which can be described by the beam splitter model (Fig. 1(b)). The transmittance of BSs are $\eta _{1}$ and $\eta _{2}$, we assume $\eta _{1}=\eta _{2}=\eta $. After interference at HBS, the amplitude quadrature of $\hat{n}_{1}$ and the phase quadrature of $\hat{n}_{2}$ can be calculated by $$\begin{align} \hat{x}_{n_{1}}=\,& \frac{1}{\sqrt{2}}(\sqrt{\eta}\hat{x}_{a_{1}}+\sqrt{\eta}\hat{x}_{a_{2}}+\sqrt{\eta}\hat{x}_{m_{1}}+\sqrt{\eta}\hat{x}_{m_{2}} \\ &+\sqrt{1-\eta}\hat{x}_{a_{10}}+\sqrt{1-\eta}\hat{x}_{a_{20}}), \\ \hat{p}_{n_{2}}=\,& \frac{1}{\sqrt{2}}(\sqrt{\eta}\hat{p}_{a_{1}}-\sqrt{\eta}\hat{p}_{a_{2}}+\sqrt{\eta}\hat{p}_{m_{1}}-\sqrt{\eta}\hat{p}_{m_{2}} \\ & +\sqrt{1-\eta}\hat{p}_{a_{10}}-\sqrt{1-\eta}\hat{p}_{a_{20}}),~~ \tag {6} \end{align} $$ where $\hat{x}_{a_{10}}$ ($\hat{x}_{a_{20}}$) and $\hat{p}_{a_{10}}$ ($\hat{p}_{a_{20}}$) are the amplitude and phase quadratures of the vacuum state $a_{10}$ ($a_{20}$), respectively. For the non-ideal EPR entangled states, the variances of amplitude quadrature of $\hat{n}_{1}$ and the phase quadrature of $\hat{n}_{2}$ can be written as $$\begin{alignat}{1} \langle \delta ^{2}(\hat{x}_{n_{1}}) \rangle =\,&\frac{\eta}{2}\langle \delta ^{2}(\hat{x}_{m_{1}}+\hat{x}_{m_{2}}) \rangle +\eta e^{-2r}+1-\eta, \\ \langle \delta ^{2}(\hat{p}_{n_{2}}) \rangle =\,&\frac{\eta}{2}\langle \delta ^{2}(\hat{p}_{m_{1}}-\hat{p}_{m_{2}}) \rangle +\eta e^{-2r}+1-\eta.~~ \tag {7} \end{alignat} $$ The first item of each equation in Eq. (7) ($\langle \delta ^{2}(\hat{x}_{m_{1}}+\hat{x}_{m_{2}}) \rangle $ and $\langle \delta ^{2}(\hat{p}_{m_{1}}-\hat{p}_{m_{2}}) \rangle $) can be regarded as the signal $\langle \delta ^{2}({\rm sig}) \rangle $ and the rest as the noise $\langle \delta ^{2}({\rm noise}) \rangle $. Based on Eq. (5), Fig. 2(a) shows the dependence of the SNR on entanglement degree of the CV cluster state, where $\langle \delta ^{2}({\rm sig}) \rangle $ is chosen to be 10. When no entanglement exists, SNR will correspond to the classical limit. We compare the dependence of the SNR on entanglement degree of the CV cluster state when the transmittance equals 0.2, 0.4, 0.6 and 0.8, respectively.
cpl-34-7-070302-fig2.png
Fig. 2. (Color online) (a) The dependence of SNR on the entanglement degree of the cluster state. (b) The dependence of SNR on the transmittance $\eta$.
We compare the dependence of SNR on the transmittance in Fig. 2(b) when the entanglement degree equals 0 dB, 5 dB, 10 dB and 20 dB, respectively. In the high loss cases ($\eta < 0.18$), we cannot distinguish signal from noise no matter what entanglement state is used. The simulation results in both Figs. 2(a) and 2(b) show that the use of the cluster state can distinguish the signal better. Our scheme can be considered as a realization of optical information processing, where BSs are used to achieve addition and subtraction operations, and the cluster state is used to suppress noise. A BS can be simply described by a transformation from two input mode operators, $\hat{a}_{1_{\rm in}}$ and $\hat{a}_{2_{\rm in}}$, into two output mode operators, $\hat{b}_{1_{\rm out}}$ and $\hat{b}_{2_{\rm out}}$. The relationship between input and output modes can be expressed as[30] $$ \binom{\hat{b}_{1_{\rm out}}}{\hat{b}_{2_{\rm out}}}=M\binom{\hat{a}_{1_{\rm in}}}{\hat{a}_{2_{\rm in}}}=\left(\begin{matrix} \sqrt{\eta} & \sqrt{1-\eta} \\ \sqrt{1-\eta} & -\sqrt{\eta} \end{matrix}\right) \binom{\hat{a}_{1_{\rm in}}}{\hat{a}_{2_{\rm in}}},~~ \tag {8} $$ where we describe the properties of the BS by the intensity reflection coefficient $\eta$. When $\eta =1/2$, the matrix $M$ in Eq. (8) equals $H_{2}$ in Eq. (1).
cpl-34-7-070302-fig3.png
Fig. 3. (Color online) The input–output relation of the four-mode HT algorithm.
We have achieved the basic element of HT algorithm (the transform matrix $H_{2}$) utilizing the EPR state. HT algorithm can be decomposed into a combination of two-mode transformation ($H_{2}$). Take the four-mode HT algorithm as an example (Fig. 3). First, two-mode HT transformations ($H_{2}$) are performed on $m_1$, $m_2$ modes and $m_3$, $m_4$ modes, respectively. Secondly, two-mode HT transformations ($H_{2}$) are performed on the addition mode (the subtraction mode) of $m_1$, $m_2$ and the addition mode (the subtraction mode) of $m_3$, $m_4$, respectively. Then the output result $n_1-n_4$ is obtained. Therefore for high-order cases, with suitable and large enough cluster states, arbitrary HT algorithms can be achieved in principle. Here we present an example of achieving a four-mode HT algorithm by suitable cluster state. The four-mode HT algorithm consists of four input modes ($m_{1}$, $m_{2}$, $m_{3}$ and $m_{4}$), four output modes ($n_{1}$, $n_{2}$, $n_{3}$ and $n_{4}$), four addition operations and four subtraction operations. The relationship between input modes and output modes can be shown in Fig. 3. When $k=2$ the transform matrix of the four-mode HT algorithm is $$ H_{4}=\left(\begin{matrix} 1 & 1 & 1 & 1 \\ 1 & -1 & 1 & -1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & -1 & 1 \end{matrix}\right).~~ \tag {9} $$ After the HT algorithm transform, the input and output modes have the following relationship $$\begin{align} n_{1}=\,& m_{1}+m_{2}+m_{3}+m_{4}, \\ n_{2}=\,& m_{1}-m_{2}+m_{3}-m_{4}, \\ n_{3}=\,& m_{1}+m_{2}-m_{3}-m_{4}, \\ n_{4}=\,& m_{1}-m_{2}-m_{3}+m_{4}.~~ \tag {10} \end{align} $$ When using four p-squeezed states as input states, three kinds of four-partite CV cluster states can be achieved by linear optics.[11] They are linear cluster state, square cluster state and T-shape cluster state. We choose a four-partite T-shape cluster state as the resource state to implement the four-mode HT algorithm. The quantum correlations among the four-partite T-shape cluster state are given by $$\begin{alignat}{1} \!\!\!\!\!\!\!\!&\hat{p}_{1}-\hat{x}_{2}-\hat{x}_{3}-\hat{x}_{4}=2e^{-r}\hat{p}_{2}^{(0)}, \\ \!\!\!\!\!\!\!\!&\hat{p}_{2}-\hat{x}_{1}=\sqrt{2}e^{-r}\hat{p}_{1}^{(0)}, \\ \!\!\!\!\!\!\!\!&\hat{p}_{3}-\hat{x}_{1}=\frac{1}{\sqrt{2}}e^{-r}\hat{p}_{2}^{(0)}+e^{-r}\hat{p}_{3}^{(0)} +\frac{1}{\sqrt{2}}e^{-r}\hat{p}_{4}^{(0)}, \\ \!\!\!\!\!\!\!\!&\hat{p}_{4}-\hat{x}_{1}=\frac{1}{\sqrt{2}}e^{-r}\hat{p}_{2}^{(0)}+e^{-r}\hat{p}_{3}^{(0)} -\frac{1}{\sqrt{2}}e^{-r}\hat{p}_{4}^{(0)},~~ \tag {11} \end{alignat} $$ where four p-squeezed states, with mode operators $\hat{a}_{i}=e^{r_{i}}\hat{x}_{i}^{(0)}+ie^{-r_{i}}\hat{p}_{i}^{(0)}$ ($i=1$–4) are used to create the four-partite T-shape cluster states. The superscript (0) denotes the initial vacuum modes, which has a noise variance $\langle {\it \Delta} ^{2}\hat{x}_{i}^{(0)}\rangle =\langle {\it \Delta} ^{2}\hat{p}_{i}^{(0)}\rangle =1/4$, and $r_{i}\in[0,\infty)$ is the squeezing parameter of the $i$th mode.
cpl-34-7-070302-fig4.png
Fig. 4. (Color online) The scheme of realizing the four-mode HT algorithm with a four-partite T-shape cluster state. Here $m_{1}$–$m_{4}$: input data of HT algorithm, $n_{1}$–$n_{4}$: output data of HT algorithm, $b_{1}$–$b_{4}$: four-partite T-shape cluster state, $c_{1}$–$c_{4}$: homodyne detectors, $-1$ is a $-180^{\circ}$ rotation, $-i$ is a $-90^{\circ}$ rotation.
We design the network for achieving four-mode HT algorithm with four-partite T-shape cluster states just utilizing four HBSs. The schematic diagram of optical setups is shown in Fig. 4. The input information of $m_{1}$, $m_{2}$, $m_{3}$ and $m_{4}$ is encoded to the four submodes $\hat{b}_{1}$–$\hat{b}_{4}$ of the T-shape cluster state by using the amplitude (AM) and phase (PM) modulators. Every attenuator (ATT) in different lines controls the intensity of the four signals, which are generated from the same signal generator ($sig$), respectively. They satisfy the relationship $sig_{1}:sig_{2}:sig_{3}:sig_{4}=m_{1}:m_{2}:m_{3}:m_{4}$. For achieving the HT algorithm, the amplitude and phase quadratures of $m_{1}$ should be set to the same phase, while the amplitude and phase quadratures of $m_{2}$–$m_{4}$ should be set to the opposite phase. The amplitude and phase quadratures relationship between the optical modulated modes $\hat{d}_{1}$–$\hat{d}_{4}$ and the T-shape cluster state $\hat{b}_{1}$–$\hat{b}_{4}$ are given by $$\begin{align} \hat{x}_{d_{1}} =\,&\hat{x}_{b_{1}}+\hat{x}_{m_{1}},~~\hat{p}_{d_{1}} =\hat{p}_{b_{1}}+\hat{p}_{m_{1}},\\ \hat{x}_{d_{2}} =\,&\hat{x}_{b_{2}}-\hat{x}_{m_{2}},~~\hat{p}_{d_{2}} =\hat{p}_{b_{2}}+\hat{p}_{m_{2}},\\ \hat{x}_{d_{3}} =\,&\hat{x}_{b_{3}}-\hat{x}_{m_{3}},~~\hat{p}_{d_{3}} =\hat{p}_{b_{3}}+\hat{p}_{m_{3}},\\ \hat{x}_{d_{4}} =\,&\hat{x}_{b_{4}}-\hat{x}_{m_{4}},~~\hat{p}_{d_{4}} =\hat{p}_{b_{4}}+\hat{p}_{m_{4}},~~ \tag {12} \end{align} $$ where we have assumed that the variances of modulated input signals $\hat{x}_{m_{i}}$ and $\hat{p}_{m_{i}}$ ($i=1$–4) are equal. After combining the submodes $\hat{d}_{1}$–$\hat{d}_{4}$ on four half beam-splitters respectively, as shown in Fig. 4, we obtain the output modes $\hat{c}_{1}$–$\hat{c}_{4}$. From Fig. 4, we can easily obtain the relations between input and output modes, $$\begin{align} \hat{c}_{1} =\,&\frac{1}{2}(\hat{d}_{1}-i\hat{d}_{2}-i\hat{d}_{3}-i\hat{d}_{4}), \\ \hat{c}_{2} =\,&\frac{1}{2}(\hat{d}_{1}+i\hat{d}_{2}-i\hat{d}_{3}+i\hat{d}_{4}),\\ \hat{c}_{3} =\,&\frac{1}{2}(\hat{d}_{1}-i\hat{d}_{2}+i\hat{d}_{3}+i\hat{d}_{4}),\\ \hat{c}_{4} =\,&\frac{1}{2}(\hat{d}_{1}+i\hat{d}_{2}+i\hat{d}_{3}-i\hat{d}_{4}).~~ \tag {13} \end{align} $$ We only use half quadratures of $\hat{c}_{1}$–$\hat{c}_{4}$ to achieve the four-mode HT algorithm. They are phase quadrature of $\hat{c}_{1}$ and amplitude quadratures of $\hat{c}_{2}$–$\hat{c}_{4}$. Based on Eq. (11), the amplitude and phase quadratures of these modes can be expressed as $$\begin{alignat}{1} \!\!\!\!\!\!\!\!\!\!\langle \delta ^{2}(\hat{p}_{c_{1}}) \rangle=\,&\frac{1}{4}\langle \delta ^{2}(\hat{p}_{m_{1}}+\hat{x}_{m_{2}}+\hat{x}_{m_{3}}+\hat{x}_{m_{4}}) \rangle \\ \!\!\!\!\!\!\!\!\!\!&+e^{-2r}\langle \delta ^{2}(\hat{p}_{2}^{(0)}) \rangle, \\ \!\!\!\!\!\!\!\!\!\!\langle \delta ^{2}(\hat{x}_{c_{2}}) \rangle =\,&\frac{1}{4}\langle \delta ^{2}(\hat{x}_{m_{1}}-\hat{p}_{m_{2}}+\hat{p}_{m_{3}}-\hat{p}_{m_{4}})\rangle \\ \!\!\!\!\!\!\!\!\!\!& +\frac{1}{2}e^{-2r}\langle \delta ^{2}(\hat{p}_{1}^{(0)}) \rangle +\frac{1}{2}e^{-2r}\langle \delta^{2}(\hat{p}_{4}^{(0)})\rangle, \\ \!\!\!\!\!\!\!\!\!\!\langle \delta ^{2}(\hat{x}_{c_{3}})\rangle =\,&\frac{1}{4}\langle \delta ^{2}(\hat{x}_{m_{1}}+\hat{p}_{m_{2}}-\hat{p}_{m_{3}}-\hat{p}_{m_{4}}) \rangle \\ \!\!\!\!\!\!\!\!\!\!& +\frac{1}{2}e^{-2r}\langle \delta ^{2}(\hat{p}_{1}^{(0)}) \rangle +\frac{1}{2}e^{-2r}\langle \delta^{2}(\hat{p}_{2}^{(0)})\rangle \\ \!\!\!\!\!\!\!\!\!\!& +e^{-2r}\langle \delta ^{2}(\hat{p}_{3}^{(0)}) \rangle, \\ \!\!\!\!\!\!\!\!\!\!\langle \delta ^{2}(\hat{x}_{c_{4}}) \rangle =\,&\frac{1}{4}\langle \delta ^{2}(\hat{x}_{m_{1}}-\hat{p}_{m_{2}}-\hat{p}_{m_{3}}+\hat{p}_{m_{4}}) \rangle \\ \!\!\!\!\!\!\!\!\!\!& +\frac{1}{2}e^{-2r}\langle \delta ^{2}(\hat{p}_{1}^{(0)}) \rangle +\frac{1}{2}e^{-2r}\langle \delta^{2}(\hat{p}_{4}^{(0)})\rangle.~~ \tag {14} \end{alignat} $$ The output data $n_{1}$ is given by the phase quadrature of $\hat{c}_{1}$, and the output data $n_{2}$–$n_{4}$ are given by the amplitude quadratures of $\hat{c}_{2}$–$\hat{c}_{4}$, respectively. It is obvious that in the limit of infinite squeezing ($r\rightarrow \infty $), the phase quadrature $\hat{p}_{c_{1}}$ and the amplitude quadrature $\hat{x}_{c_{2}}$–$\hat{x}_{c_{4}}$ are determined by the amplitude and phase quadratures of the input field, i.e., the input–output relationship of Eq. (10) is achieved. The four-mode HT transform is obtained only when the quantum correlations of the four-partite T-shape CV cluster state is utilized. If the experimental setup is regarded as a black box, the output data $n_{1}$–$n_{4}$ can be obtained by simply inputting the data $m_{1}$–$m_{4}$, which can complete the four-mode HT transformation. In summary, we have presented the scheme to implement the classical HT algorithm with the CV cluster state as a resource state. As an example, the concrete scheme to implement the four-mode classical HT algorithm with a four-partite CV cluster state is analyzed, which only needs four HBSs operated on the input modes, while at least eight operations (four addition operations and four subtraction operations) are needed in the classical computation model. The HT algorithm is one of the widely used algorithms in normal classical computation, and the CV one-way cluster quantum computation would be the possible model of quantum computer. Our work shows that some special classical algorithms can be run in classical computer as well as quantum one. Moreover, by using the quantum interference, the operations we used for HT algorithm by the CV cluster quantum computer is just half of the classical computation. Once quantum computers can be applied in practice, both quantum algorithms and some special classical algorithms can be run in it. A complex computational problem may contain several algorithms. If we can summarize which classical algorithms can be run in quantum computers, the computational problem involving only quantum algorithms and those classical algorithms that can be run in quantum computers would be designed. This will improve the operating efficiency of quantum computers by avoiding the transmission of data between quantum computer and classical computer.
References Demonstration of a Fundamental Quantum Logic GateDemonstration of a universal one-way quantum quadratic phase gatePolynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum ComputerQuantum Algorithm for Linear Systems of EquationsExperimental Quantum Computing to Solve Systems of Linear EquationsA One-Way Quantum ComputerUniversal Quantum Computation with Continuous-Variable Cluster StatesExperimental Preparation of Quadripartite Cluster and Greenberger-Horne-Zeilinger Entangled States for Continuous VariablesExperimental generation of four-mode continuous-variable cluster statesExperimental Realization of Multipartite Entanglement of 60 Modes of a Quantum Optical Frequency CombExperimental preparation of eight-partite cluster state for photonic qumodesUltra-large-scale continuous-variable cluster states multiplexed in the time domainDemonstration of Unconditional One-Way Quantum Computations for Continuous VariablesGates for one-way quantum computation based on Einstein-Podolsky-Rosen entanglementToward demonstrating controlled-X operation based on continuous-variable four-partite cluster states and quantum teleportersDemonstration of a Controlled-Phase Gate for Continuous-Variable One-Way Quantum ComputationGate sequence for continuous variable one-way quantum computationOn the Equivalence Between One-Dimensional Discrete Walsh-Hadamard and Multidimensional Discrete Fourier TransformsExperimental demonstration of a Hadamard gate for coherent state qubitsBuilding of one-way Hadamard gate for squeezed coherent statesObservation of Quantum Interference as a Function of Berry?s Phase in a Complex Hadamard Optical NetworkContinuous-variable Gaussian analog of cluster statesBuilding Gaussian cluster states by linear opticsQuantum computing with continuous-variable clustersDemonstration of the Einstein-Podolsky-Rosen paradox using nondegenerate parametric amplificationQuantum communication network utilizing quadripartite entangled states of optical fieldSignal-to-noise ratio
[1]Nielsen M A and Chuang I 2000 Quantum Computation and Quantum Information (Cambridge: Cambridge University Press)
[2] Monroe C et al 1995 Phys. Rev. Lett. 75 4714
[3] Miwa Y et al 2009 Phys. Rev. A 80 050303
[4] Shor P W 1997 SIAM J. Computing 26 1484
[5]Grover L K 1996 Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing p 212
[6] Harrow A W et al 2009 Phys. Rev. Lett. 103 150502
[7] Cai X D et al 2013 Phys. Rev. Lett. 110 230501
[8] Raussendorf R and Briegel H J 2001 Phys. Rev. Lett. 86 5188
[9] Menicucci N C et al 2006 Phys. Rev. Lett. 97 110501
[10] Su X L et al 2007 Phys. Rev. Lett. 98 070502
[11] Yukawa M et al 2008 Phys. Rev. A 78 012301
[12] Chen M et al 2014 Phys. Rev. Lett. 112 120505
[13] Su X L et al 2012 Opt. Lett. 37 5178
[14] Yokoyama S et al 2013 Nat. Photon. 7 982
[15] Ukai R et al 2011 Phys. Rev. Lett. 106 240504
[16] Hao S H et al 2014 Phys. Rev. A 89 032311
[17] Wang Y et al 2010 Phys. Rev. A 81 022311
[18] Ukai R et al 2011 Phys. Rev. Lett. 107 250501
[19] Su X L et al 2013 Nat. Commun. 4 2828
[20] Kunz H O 1979 IEEE Trans. Comput. C-28 267
[21] Tipsmark A et al 2011 Phys. Rev. A 84 050301
[22] Podoshvedov S A 2013 Phys. Rev. A 87 012307
[23] Laing A et al 2012 Phys. Rev. Lett. 108 260505
[24] Zhang J and Braunstein S L 2006 Phys. Rev. A 73 032318
[25] van Loock P et al 2007 Phys. Rev. A 76 032321
[26] Gu M et al 2009 Phys. Rev. A 79 062318
[27] Reid M D 1989 Phys. Rev. A 40 913
[28] Shen H et al 2009 Phys. Rev. A 80 042320
[29] Johnson D H 2006 Scholarpedia 1 2088
[30]Bachor H A and Ralph T C A 2004 Guide to Experiments in Quantum Optics (New York: Wiley-VCH)