This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Universal quantum gates, artificial neurons and pattern recognition
simulated by LC resonators

Motohiko Ezawa Department of Applied Physics, University of Tokyo, Hongo 7-3-1, 113-8656, Japan
Abstract

We propose to simulate quantum gates by LC resonators, where the amplitude and the phase of the voltage describe the quantum state. By controlling capacitance or inductance of resonators, it is possible to control the phase of the voltage arbitrarily. A set of resonators acts as the phase-shift, the Hadamard and the CNOT gates. They constitute a set of universal quantum gates. We also discuss an application to an artificial neuron. As an example, we study a pattern recognition of numbers and alphabets by evaluating the similarity between an input and the reference pattern. We also study a colored pattern recognition by using a complex neural network.

I Introduction

Quantum computation is one of the most exciting fields of current physicsFeynman ; DiVi ; Nielsen . It is realized in various systems including superconductorsNakamura , photonic systemsKnill , quantum dotsLoss , trapped ionsCirac and nuclear magnetic resonanceVander ; Kane . For universal quantum computation, it is well known that only three quantum gates are enough, which are the phase-shift, the Hadamard and the CNOT gatesDeutsch ; Dawson ; Universal .

Recently, electric circuits attract renewed attention in the context of topological physicsComPhys ; TECNature ; Garcia ; Hel ; Rosen ; Lu ; EzawaTEC ; Hu ; Hofmann ; Research ; EzawaLCR ; EzawaNH ; EzawaMajo ; HelSkin . There are also some attempts to simulate various quantum gates by electric circuitsEzawaUniv ; EzawaDirac ; EzawaTQC . Among them, a network of telegrapher lines is capable to simulate the universal quantum gatesEzawaUniv ; EzawaDirac , because we may rewrite the Kirchhoff law in the form of the Schrödinger equationEzawaSch . This formulation requires long wires for a long quantum algorithm, where quantum states evolve spatially from the left wires to the right wires.

Quantum machine learning is an emerging field of contemporary physics Lloyd ; Schuld ; Biamonte ; Wittek ; Harrow ; Wiebe ; Reben ; ZLi ; SchuldB ; Hav ; Lamata ; Cong . Neural networks are often used in machine learning, where artificial neurons are basic elementsDeep ; Zurada . An artificial neuron has an internal degree of freedom called the weight. The output is determined from the input data by taking the inner product between the input data and the weight, and by applying an activation function to it. The inner product of two objects measures the similarity between them. For instance, using a series of numbers representing a reference pattern as the weight, we may analyze the similarity between an input pattern and the reference pattern as an output. Artificial neuron is simulated by quantum computerSchuldA ; WiebeA ; Cao ; Tacc ; Torro ; Kris ; Killo . Taking the inner product is the heaviest process, which will be executable by a quantum computerTacc ; Mangi .

In this paper, we propose to simulate one qubit by a pair of LC resonators, where a set of voltage and current represents a wave function. First, we construct a phase-shift gate with an arbitrary phase by tuning the capacitance of an LC resonator. Next, we construct the Hadamard gate by tuning the inductance of an inductor bridging two LC resonators. We also construct the CNOT and the controlled phase-shift gate by using a voltage-controlled inductor or capacitor. Finally, we discuss applications to artificial neuron and pattern recognition. The calculation of the inner product may be executed by the operation of LC resonators for arbitrary inputs and weights. We elucidate the difference between the standard quantum-circuit implementation and the present electric-circuit implementation of the inner product.

This paper is composed as follows. In Sec.II, we start with a discussion how to store the information of NN qubits |j|n1n2nN\left|j\right\rangle\!\rangle\equiv|n_{1}n_{2}\cdots n_{N}\rangle in a set of LC resonators, where ni=0,1n_{i}=0,1. Then, we propose to construct various quantum gates including a set of universal quantum gates by LC resonators.

In Sec.III, we apply our formalism to study artificial neurons, where we express various data with the aid of so-called real equally weighted (REW) statesDJ ; Grover ; HyperGraph . They are superposition states of NN-qubits with coefficients αj=±1/2N\alpha_{j}=\pm 1/\sqrt{2^{N}}. In Sec.IV, we discuss a pattern recognition by calculating the inner product of an input data and the reference data. We present explicit examples of number recognition and alphabet recognition.

In Sec.V, we generalize REW states to include complex coefficients αj=eiθj/2N\alpha_{j}=e^{i\theta_{j}}/\sqrt{2^{N}}. We call them complex equally weighted (CEW) states. Then, we introduce complex-artificial neurons to deal with the inner product of CEW states. In Sec.VI, we propose to represent a colored pattern by a CEW state, where colored pattern recognition is done by evaluating the inner product of two CEW states representing the reference and an input pattern.

In Sec.VII, we present an electric-circuit implementation of quantum gates for calculation of an inner product starting from the initial NN-qubit state |000|00\cdots 0\rangle.

In Sec.VIII, we explore REW states from a viewpoint of graph and hypergraph states. We also introduce weighted graph and hypergraph states to represent CEW states. Sec.IX is devoted to discussions.

II LC resonators, qubits and gates

We use a set of 2N2^{N} identical LC resonators to simulate NN-qubit quantum computation. An instance of N=2N=2 is illustrated in Fig.1(a). The voltage of the jjth LC resonator is expressed as

Vj(t)=Vj0cos(ω0t+θj),V_{j}\left(t\right)=V_{j}^{0}\cos\left(\omega_{0}t+\theta_{j}\right), (1)

where ω0=1/LC\omega_{0}=1/\sqrt{LC} is the resonant frequency, Vj0V_{j}^{0} is the absolute value of the voltage and θj\theta_{j} is the phase shift.

A qubit state is defined by a superposition of the two states |0\left|0\right\rangle and |1\left|1\right\rangle as |ψ=α0|0+α1|1\left|\psi\right\rangle=\alpha_{0}\left|0\right\rangle+\alpha_{1}\left|1\right\rangle. Similarly, an NN-qubit state is defined by a superposition of the 2N2^{N} states as

|ψ=nj=0,1αn1n2nN|n1n2nN,\left|\psi\right\rangle=\sum_{n_{j}=0,1}\alpha_{n_{1}n_{2}\cdots n_{N}}|n_{1}n_{2}\cdots n_{N}\rangle, (2)

which is expressed equivalently as

|ψ=j=02N1αj|j,\left|\psi\right\rangle=\sum_{j=0}^{2^{N}-1}\alpha_{j}\left|j\right\rangle\!\rangle, (3)

where jj is the decimal number corresponding to the binary nuber (n1n2nN)(n_{1}n_{2}\cdots n_{N}) such as |0=|000\left|0\right\rangle\!\rangle=\left|0\cdots 00\right\rangle, |1=|001\left|1\right\rangle\!\rangle=\left|0\cdots 01\right\rangle, \cdots , |2N1=|111\left|2^{N}-1\right\rangle\!\rangle=\left|11\cdots 1\right\rangle.

It is a key observationEzawaTQC that we may set

αj=Vj0eiθj/j(Vj0)2\alpha_{j}=V_{j}^{0}e^{i\theta_{j}}/\sqrt{\sum_{j}(V_{j}^{0})^{2}} (4)

in the LC-resonator realization of quantum computation. Thus we store the information of NN qubits in a set of LC resonators.

Here we propose to carry out a gate process by controlling externally the value CC of a capacitance as in Fig.1(b) or the value L1L_{1} of an inductor bridging two LC resonators as in Fig.1(c). For each gate process the initial and the final systems are the same set of 2N2^{N} identical LC resonators with the same energy, although the coefficient αj\alpha_{j} may be modified for some jj. A gate process is required to be adiabatic.

The gate UU is represented by a 2N×2N2^{N}\times 2^{N} matrix UjkU_{jk} such that

U|j=k=02N1Ujk|k.U\left|j\right\rangle\!\rangle=\sum_{k=0}^{2^{N}-1}U_{jk}\left|k\right\rangle\!\rangle. (5)

By this operation, the initial state ψini\psi^{\text{ini}} is brought to the final state ψfin=Uψini\psi^{\text{fin}}=U\psi^{\text{ini}}, where ψini=j=02N1αjini|j\psi^{\text{ini}}=\sum_{j=0}^{2^{N}-1}\alpha_{j}^{\text{ini}}\left|j\right\rangle\!\rangle and ψfin=k=02N1αkfin|k\psi^{\text{fin}}=\sum_{k=0}^{2^{N}-1}\alpha_{k}^{\text{fin}}\left|k\right\rangle\!\rangle. It follows that

αkfin=j=02N1αjiniUjk=j=02N1Ukjαjini,\alpha_{k}^{\text{fin}}=\sum_{j=0}^{2^{N}-1}\alpha_{j}^{\text{ini}}U_{jk}=\sum_{j=0}^{2^{N}-1}U_{kj}\alpha_{j}^{\text{ini}}, (6)

since UU is a symmetric matrix in universal quantum computation.

Refer to caption

Figure 1: (a) Two qubits made of four LC resonators. (b) Phase-shift gate consisting a pair of LC resonators. The capacitance of the state |1|1\rangle is controlled. (c) Mixing gate. The inductance of the inductor L1L_{1} bridging two resonators is controlled. The Hadamard gate is constructed by a combination of the mixing gate and the phase-shift gate. (d) CNOT gate. We bridge the resonators representing |10|10\rangle and |11|11\rangle by the inductor L1L_{1} (e) Controlled phase-shift gate. We control the capacitance of the resonator representing |11|11\rangle.

Kirchhoff law and Schrödinger equation. We first consider a set of independent LC resonators. The Kirchhoff law of the jjth LC resonator may be rewritten in the form of the Schrödinger equationEzawaSch ; EzawaUniv ,

iddtψj=Hψj,i\frac{d}{dt}\psi_{j}=H\psi_{j}, (7)

where H(t)=ω0σyH\left(t\right)=-\omega_{0}\sigma_{y} is the Hamiltonian, and

ψj=(j,𝒱j)t=(L/CIj,Vj)t\psi_{j}=\left(\mathcal{I}_{j},\mathcal{V}_{j}\right)^{t}=\left(\sqrt{L/C}I_{j},V_{j}\right)^{t} (8)

is the wave function.

Energy conservation and probability conservation. The total energy of the system is given by UT=UE+UMU_{\text{T}}=U_{\text{E}}+U_{\text{M}} with

UE=C2jVj2,UM=L2jIj2,U_{\text{E}}=\frac{C}{2}\sum_{j}V_{j}^{2},\qquad U_{\text{M}}=\frac{L}{2}\sum_{j}I_{j}^{2}, (9)

where UEU_{\text{E}} and UMU_{\text{M}} are the electrostatic energy and the magnetic energy, respectively.

On the other hand, by using (8), the probability of the wave function is rewritten as

j|ψj|2=jj2+𝒱j2=jLCIj2+Vj2=2CUT.\sum_{j}\left|\psi_{j}\right|^{2}=\sum_{j}\mathcal{I}_{j}^{2}+\mathcal{V}_{j}^{2}=\sum_{j}\frac{L}{C}I_{j}^{2}+V_{j}^{2}=\frac{2}{C}U_{\text{T}}. (10)

Hence, the conservation of the probability of the wave function is assured by the conservation of the total energyEzawaDirac . As we have stated, we arrange a gate process so that the total energy is the same before and after the gate process. It corresponds to the conservation of the probability for qubits j|αj|2=1\sum_{j}\left|\alpha_{j}\right|^{2}=1.

Phase-shift gate. The phase-shift gate is defined by the matrix

Uϕ=(100eiϕ),U_{\phi}=\left(\begin{array}[]{cc}1&0\\ 0&e^{i\phi}\end{array}\right), (11)

which acts on the one-qubit state (|0,|1)t\left(\left|0\right\rangle,\left|1\right\rangle\right)^{t}. Namely, the action is

Uϕ|0=|0,Uϕ|1=eiϕ|1.U_{\phi}\left|0\right\rangle=\left|0\right\rangle,\qquad U_{\phi}\left|1\right\rangle=e^{i\phi}\left|1\right\rangle. (12)

To generate the phase shift ϕ\phi in the wave function, it is enough to control only the capacitance CC in the LC resonator externally during the gating process as shown in Fig.1(b). We control the capacitance as C(t)=C0+C1(t)C\left(t\right)=C_{0}+C_{1}\left(t\right), where

C1(t)=C102(tanhtt1Ttanhtt2T),C_{1}\left(t\right)=\frac{C_{1}^{0}}{2}\left(\tanh\frac{t-t_{1}}{T}-\tanh\frac{t-t_{2}}{T}\right), (13)

with four parameters C10C_{1}^{0}, t1t_{1}, t2t_{2} and TT, as shown in Fig.2(a1), (b1) and (c1).

Refer to caption

Figure 2: Phase-shift gate for (a) ϕ=π/4\phi=\pi/4, (b) ϕ=π/2\phi=\pi/2 and (c) ϕ=π\phi=\pi. The phase delay is controlled by a time duration of the capacitance perturbation C1(t)C_{1}\left(t\right). (*1) Time evolution of the perturbed capacitance. (*2) Time evolution of the voltage V2V_{2}. The voltage V2V_{2} with (without) the perturbation is represented by a magenta (cyan) curve. (*3) Voltage V2V_{2} in the final states. (*4) Phase delay as a function of time tt. The horizontal axis is time tt. Time span is 0<t<50π0<t<50\pi for (*1), (*2) and *(4). It is 46π<t<50π46\pi<t<50\pi for (*3), representing the final state. We set C10/C0=0.1C_{1}^{0}/C_{0}=0.1 and T=10ω0T=10\omega_{0} for 0<ω0t<50π0<\omega_{0}t<50\pi. We set ω0t1=10π\omega_{0}t_{1}=10\pi for all phase-shift gate. We also set ω0t2=15π\omega_{0}t_{2}=15\pi for the π/4\pi/4 phase-shift gate, ω0t2=20π\omega_{0}t_{2}=20\pi for the π/2\pi/2 phase-shift gate and ω0t2=30π\omega_{0}t_{2}=30\pi for the π\pi phase-shift (i.e., Pauli Z) gate,

It is possible to determine analytically how the phase shift ϕ\phi depends on these parameters by calculating the Berry phase. Since the voltage evolution V(t)V\left(t\right) is written as a Schrödinger equation, we may use an adiabatic approximation. The snap shot wave function at time t=τt=\tau is given by ψ(τ)=2L/CI0ψ¯(τ)\psi(\tau)=\sqrt{2L/C}I_{0}\bar{\psi}(\tau), where ψ¯(τ)\bar{\psi}(\tau) is the normalized wave function,

ψ¯(τ)=12exp(iωττ)(1i),\bar{\psi}(\tau)=\frac{1}{\sqrt{2}}\exp(i\omega_{\tau}\tau)\left(\begin{array}[]{c}1\\ -i\end{array}\right), (14)

with ωτ\omega_{\tau} the snapshot frequency,

ωτ=1/LC(τ).\omega_{\tau}=1/\sqrt{LC\left(\tau\right)}. (15)

The Berry phase is calculated as

γ=\displaystyle\gamma= i0tψ¯(τ)|τ|ψ¯(τ)𝑑τ\displaystyle i\int_{0}^{t}\left\langle\bar{\psi}\left(\tau\right)\right|\partial_{\tau}\left|\bar{\psi}\left(\tau\right)\right\rangle d\tau
=\displaystyle= 0t12LC(τ)3/2(2C(τ)τdC(τ)dτ)𝑑τ\displaystyle\int_{0}^{t}\frac{1}{2\sqrt{L}C\left(\tau\right)^{3/2}}\left(2C\left(\tau\right)-\tau\frac{dC\left(\tau\right)}{d\tau}\right)d\tau
=\displaystyle= 0t[ω(τ)τLC(τ)3/2dC(τ)dτ]𝑑τ.\displaystyle\int_{0}^{t}\left[\omega\left(\tau\right)-\frac{\tau}{\sqrt{L}C\left(\tau\right)^{3/2}}\frac{dC\left(\tau\right)}{d\tau}\right]d\tau. (16)

When the perturbation C1(t)C_{1}\left(t\right) is small enough with respect to C0C_{0}, it is calculated as

γiω0tϕ,\gamma\simeq i\omega_{0}t-\phi, (17)

where ϕ\phi is the phase shift given by

ϕ=ω00tC1(τ)2C𝑑τ.\phi=\omega_{0}\int_{0}^{t}\frac{C_{1}\left(\tau\right)}{2C}d\tau. (18)

It is explicitly calculated as

ϕ=\displaystyle\phi= ω0C102CT(logcoshtt1Tlogcosht1T\displaystyle\omega_{0}\frac{C_{1}^{0}}{2C}T\left(\log\cosh\frac{t-t_{1}}{T}-\log\cosh\frac{t_{1}}{T}\right.
logcoshtt2T+logcosht2T),\displaystyle\qquad\quad\left.-\log\cosh\frac{t-t_{2}}{T}+\log\cosh\frac{t_{2}}{T}\right), (19)

which yields

ϕ=C10ω02C(t2t1),\phi=\frac{C_{1}^{0}\omega_{0}}{2C}\left(t_{2}-t_{1}\right), (20)

provided Tt1<t2tT\ll t_{1}<t_{2}\ll t. Hence, we can tune the phase shift ϕ\phi arbitrary by controlling the magnitude of (t2t1)C10\left(t_{2}-t_{1}\right)C_{1}^{0}.

We next solve numerically the differential equation (7) to study the time evolution of the voltage V(t)V(t), and confirm the phase-shift formula (20). When we fix C10=0.1C0C_{1}^{0}=0.1C_{0} and ω0t1=10π\omega_{0}t_{1}=10\pi, we have

ϕ=120(ω0t210π).\phi=\frac{1}{20}\left(\omega_{0}t_{2}-10\pi\right). (21)

We present numerical results of the time evolution V(t)V(t) by choosing ω0t2=15π\omega_{0}t_{2}=15\pi, 20π20\pi and 30π30\pi in Fig.2(a2), (b2) and (c2). See Fig.2(a3), (b3) and (c3) for V(t)V(t) for tt2t\gg t_{2}, representing the final state. The phase shift is found to occur due to the perturbation C1(t)C_{1}\left(t\right). The phase shift ϕ(t)\phi(t) during a gating process is shown in Fig.2(a4), (b4) and (c4). After the gating process, the resonance frequency returns to ω0\omega_{0} but the phase ϕ\phi becomes different from the initial value. It reads ϕ=π/4,π/2\phi=\pi/4,\pi/2 and π\pi as in Fig.2(a4), (b4) and (c4). These numerical results confirm the analytical formula (20).

Hadamard gate. The Hadamard gate is defined by the matrix

UH12(1111),U_{\text{H}}\equiv\frac{1}{\sqrt{2}}\left(\begin{array}[]{cc}1&1\\ 1&-1\end{array}\right), (22)

which acts the one-qubit state (|0,|1)t\left(\left|0\right\rangle,\left|1\right\rangle\right)^{t}. It is known to be given byEzawaUniv ; EzawaDirac

UH=eiπ/4Uπ/2UmixUπ/2,U_{\text{H}}=e^{-i\pi/4}U_{\pi/2}U_{\text{mix}}U_{\pi/2}, (23)

where Uπ/2U_{\pi/2} is the π/2\pi/2 phase-shift gate, while UmixU_{\text{mix}} is the mixing gate defined by

Umix=12(eiπ/4eiπ/4eiπ/4eiπ/4).U_{\text{mix}}=\frac{1}{\sqrt{2}}\left(\begin{array}[]{cc}e^{i\pi/4}&e^{-i\pi/4}\\ e^{-i\pi/4}&e^{i\pi/4}\end{array}\right). (24)

We construct the mixing gate (24) in what follows.

We consider a pair of LC resonators bridged by an inductor L1L_{1} as shown in Fig.1(c), where the inductance L1L_{1} is controlled externally. The Kirchhoff law reads

ddt(I1I2I3V1V2)=(0001L00001L11L100001L1C1C00001C1C00)(I1I2I3V1V2),\frac{d}{dt}\left(\begin{array}[]{c}I_{1}\\ I_{2}\\ I_{3}\\ V_{1}\\ V_{2}\end{array}\right)=\left(\begin{array}[]{ccccc}0&0&0&\frac{1}{L}&0\\ 0&0&0&-\frac{1}{L_{1}}&\frac{1}{L_{1}}\\ 0&0&0&0&-\frac{1}{L}\\ -\frac{1}{C}&\frac{1}{C}&0&0&0\\ 0&-\frac{1}{C}&\frac{1}{C}&0&0\end{array}\right)\left(\begin{array}[]{c}I_{1}\\ I_{2}\\ I_{3}\\ V_{1}\\ V_{2}\end{array}\right), (25)

where I1I_{1}, I2I_{2}, I3I_{3}, V1V_{1} and V2V_{2} are defined in Fig.1(c). It is rewritten in the form of the Schrödinger equation as in Eq.(7) with the Hamiltonian

H=1LC(000i0000iL/L1(t)iL/L1(t)0000iii0000ii00),H=\frac{1}{\sqrt{LC}}\left(\begin{array}[]{ccccc}0&0&0&i&0\\ 0&0&0&-iL/L_{1}\left(t\right)&iL/L_{1}\left(t\right)\\ 0&0&0&0&-i\\ -i&i&0&0&0\\ 0&-i&i&0&0\end{array}\right), (26)

and the wave function

(1,2,3,𝒱1,𝒱2)=(LCI1,LCI2,LCI3,V1,V2).\left(\mathcal{I}_{1},\mathcal{I}_{2},\mathcal{I}_{3},\mathcal{V}_{1},\mathcal{V}_{2}\right)=\left(\sqrt{\frac{L}{C}}I_{1},\sqrt{\frac{L}{C}}I_{2},\sqrt{\frac{L}{C}}I_{3},V_{1},V_{2}\right). (27)

By making a snapshot approximation, the eigenvalues are given by

E=0,±ω0,±(t)ω0,E=0,\pm\omega_{0},\pm\ell\left(t\right)\omega_{0}, (28)

with

(t)=1+2L/L1(t)\ell\left(t\right)=\sqrt{1+2L/L_{1}\left(t\right)} (29)

at each tt.

Refer to caption

Figure 3: (a) Mixing gate. (b) NOT gate. (a1) and (b1) Time-depending perturbation introduced to the inductance. (a2) and (b2) Time evolution of the voltage V1V_{1} (V2V_{2}) at the left (right) LC resonator is represented by a magenta (cyan) curve. (*3) Time evolution of V1V_{1} and V2V_{2} for 0<ω0t<4π0<\omega_{0}t<4\pi, represending the initial state, where V2=0V_{2}=0. (*4) Time evolution V1V_{1} and V2V_{2} for 116π<t<120π116\pi<t<120\pi, representing the final state, where the voltage without the perturbation is represented by a black curve. We set L1/L=0.1L_{1}/L=0.1 and T=10ω0T=10\omega_{0} for 0<ω0t<120π0<\omega_{0}t<120\pi. We set ω0t1=50π\omega_{0}t_{1}=50\pi and ω0t2=55π\omega_{0}t_{2}=55\pi for the mixing gate and ω0t1=55π\omega_{0}t_{1}=55\pi and ω0t2=65π\omega_{0}t_{2}=65\pi for the NOT gate. The orange lines represent the voltage ±V0/2\pm V_{0}/\sqrt{2}.

We consider a process where the inductor L1L_{1} is bridged to the LC resonators during a time interval t1<t<t2t_{1}<t<t_{2} but not for t<t1t<t_{1} and t>t2t>t_{2}. For example, we may take

1L1(t)=12L1(tanhtt1Ttanhtt2T),\frac{1}{L_{1}\left(t\right)}=\frac{1}{2L_{1}}\left(\tanh\frac{t-t_{1}}{T}-\tanh\frac{t-t_{2}}{T}\right), (30)

which we have illustrated in Fig.3(a).

We solve (25) numerically with the use of (30) and show how the voltage evolves in Fig.3. By tuning t2t1t_{2}-t_{1} and L1L_{1} appropriately, in order to construct the mixing gate (24), we make the magnitudes of V1V_{1} and V2V_{2} identical in the final state, i.e., for tt2t\gg t_{2}. We find the phase delay π/4\pi/4 in V1V_{1} and the phase advance π/4\pi/4 in V2V_{2} as in Fig.3(a4).

We may discuss the process analytically. For this purpose, we approximate (30) by a step function such that 1/L1(t)=01/L_{1}\left(t\right)=0 for t<t1t<t_{1}, L1(t)=L1L_{1}\left(t\right)=L_{1} for t1<t<t2t_{1}<t<t_{2} and 1/L1(t)=01/L_{1}\left(t\right)=0 for t>t2t>t_{2}. Two resonators are decoupled when 1/L1(t)=01/L_{1}\left(t\right)=0. For definiteness we choose t1=0t_{1}=0.

First, we analyze the case where only the left AC resonator is active for t0t\leq 0, or

V1ini(t)=V0cos(ω0t),V2ini(0)=0.V_{1}^{\text{ini}}\left(t\right)=V_{0}\cos(\omega_{0}t),\qquad V_{2}^{\text{ini}}\left(0\right)=0. (31)

At t=t1t=t_{1}, the perturbation L1(t)L_{1}(t) is set on.

(i) For 0tt20\leq t\leq t_{2}, we may solve the Kirchhoff equation (25) for the voltages as

V1(t)=\displaystyle V_{1}\left(t\right)= V0cos[+12ω0t]cos[12ω0t],\displaystyle V_{0}\cos\left[\frac{\ell+1}{2}\omega_{0}t\right]\cos\left[\frac{\ell-1}{2}\omega_{0}t\right], (32)
V2(t)=\displaystyle V_{2}\left(t\right)= V0sin[+12ω0t]sin[12ω0t],\displaystyle V_{0}\sin\left[\frac{\ell+1}{2}\omega_{0}t\right]\sin\left[\frac{\ell-1}{2}\omega_{0}t\right], (33)

where we have chosen the initial condition to meet (31), or

V1(0)=V0,V2(0)=0.V_{1}\left(0\right)=V_{0},\qquad V_{2}\left(0\right)=0. (34)

When 1\ell\simeq 1, the oscillation modes are made of the high-frequency mode +12ω0\frac{\ell+1}{2}\omega_{0} and the low-frequency mode 12ω0\frac{\ell-1}{2}\omega_{0}.

Refer to caption

Figure 4: Equivalent quantum-circuit representation of (a) CZ gate and (b) CCZ gate.

(ii) At t=t2t=t_{2}, we require the amplitudes of V1(t)V_{1}\left(t\right) and V2(t)V_{2}\left(t\right) to be identical. Since the amplitude is determined by the low-frequency mode, the condition reads

cos[12ω0t2]=sin[12ω0t2]=12.\cos\left[\frac{\ell-1}{2}\omega_{0}t_{2}\right]=\sin\left[\frac{\ell-1}{2}\omega_{0}t_{2}\right]=\frac{1}{\sqrt{2}}. (35)

Since the connection is weak, we have L/L11L/L_{1}\ll 1, which leads to 1+L/L1\ell\simeq 1+L/L_{1}. We use it to derive the relation

L2L1ω0t2=π4,\frac{L}{2L_{1}}\omega_{0}t_{2}=\frac{\pi}{4}, (36)

which fixes t2t_{2} to generate the mixing gate (24). The voltages read

V1(t2)=\displaystyle V_{1}\left(t_{2}\right)= V02cos[+12ω0t2]=V02cos[ω0t2+π4],\displaystyle\frac{V_{0}}{\sqrt{2}}\cos\left[\frac{\ell+1}{2}\omega_{0}t_{2}\right]=\frac{V_{0}}{\sqrt{2}}\cos\left[\omega_{0}t_{2}+\frac{\pi}{4}\right], (37)
V2(t2)=\displaystyle V_{2}\left(t_{2}\right)= V02sin[+12ω0t2]=V02cos[ω0t2π4],\displaystyle\frac{V_{0}}{\sqrt{2}}\sin\left[\frac{\ell+1}{2}\omega_{0}t_{2}\right]=\frac{V_{0}}{\sqrt{2}}\cos\left[\omega_{0}t_{2}-\frac{\pi}{4}\right], (38)

where use was made of (32), (33) and (36). There are phase shifts ±π4\pm\frac{\pi}{4}.

(iii) For t>t2t>t_{2}, since the perturbation is off, two LC resonators resonate independently with the initial condition (37) and (38), or

V1fin(t)=\displaystyle V_{1}^{\text{fin}}(t)= V02cos[ω0t+π4],\displaystyle\frac{V_{0}}{\sqrt{2}}\cos\left[\omega_{0}t+\frac{\pi}{4}\right], (39)
V2fin(t)=\displaystyle V_{2}^{\text{fin}}(t)= V02cos[ω0tπ4].\displaystyle\frac{V_{0}}{\sqrt{2}}\cos\left[\omega_{0}t-\frac{\pi}{4}\right]. (40)

It followed that

α1ini=\displaystyle\alpha_{1}^{\text{ini}}= 1,α2ini=0,\displaystyle 1,\qquad\alpha_{2}^{\text{ini}}=0, (41)
α1fin=\displaystyle\alpha_{1}^{\text{fin}}= 12eiπ/4,α2fin=12eiπ/4\displaystyle\frac{1}{\sqrt{2}}e^{i\pi/4},\qquad\alpha_{2}^{\text{fin}}=\frac{1}{\sqrt{2}}e^{-i\pi/4} (42)

from Eqs.(4), (31), (39) and (40).

Next, we analyze the case where only the right AC resonator is active for t0t\leq 0, or

V1ini(t)=0,V2ini(0)=V0cos(ω0t)V_{1}^{\text{ini}}\left(t\right)=0,\qquad V_{2}^{\text{ini}}\left(0\right)=V_{0}\cos(\omega_{0}t) (43)

instead of (31). By making precisely the same analysis, we obtain

α1ini=\displaystyle\alpha_{1}^{\text{ini}}= 0,α2ini=1,\displaystyle 0,\qquad\alpha_{2}^{\text{ini}}=1, (44)
α1fin=\displaystyle\alpha_{1}^{\text{fin}}= 12eiπ/4,α2fin=12eiπ/4.\displaystyle\frac{1}{\sqrt{2}}e^{-i\pi/4},\qquad\alpha_{2}^{\text{fin}}=\frac{1}{\sqrt{2}}e^{i\pi/4}. (45)

The results (41), (42) (44) and (45) are summarized as the mixing gate (24) based on the definition (6).

NOT gate. The NOT gate is defined by the matrix

UNOT=(0110),U_{\text{NOT}}=\left(\begin{array}[]{cc}0&1\\ 1&0\end{array}\right), (46)

which acts on one qubit. We find from Eq.(24) that

UNOT=Umix2.U_{\text{NOT}}=U_{\text{mix}}^{2}. (47)

It is given by the sequential applications of the mixing gate. The construction is similar to that of the mixing gate provided the duration of the inductor L1L_{1} is made twice. We present numerical results in Fig.3(b). With respect to an analytical study, the main equation is

L2L1ω0t2=π2\frac{L}{2L_{1}}\omega_{0}t_{2}=\frac{\pi}{2} (48)

in place of Eq.(36).

One qubit universal gate. We may construct a combination of the Hadamard and phase-shift gates such as

U1bit=eiθ/2Uϕ+πUHUθUH=(cosθ2isinθ2ieiϕsinθ2eiϕcosθ2),U_{\text{1bit}}=e^{-i\theta/2}U_{\phi+\pi}U_{\text{H}}U_{\theta}U_{\text{H}}=\left(\begin{array}[]{cc}\cos\frac{\theta}{2}&-i\sin\frac{\theta}{2}\\ ie^{i\phi}\sin\frac{\theta}{2}&-e^{i\phi}\cos\frac{\theta}{2}\end{array}\right), (49)

which represents any SU(2) generator. It is called the one-qubit universal-quantum gate.

CNOT gate. The CNOT gate is defined by a matrix

UCNOT=(1000010000010010),U_{\text{CNOT}}=\left(\begin{array}[]{cccc}1&0&0&0\\ 0&1&0&0\\ 0&0&0&1\\ 0&0&1&0\end{array}\right), (50)

which acts the two-qubit state (|00,|01,|10,|11)t\left(\left|00\right\rangle,\left|01\right\rangle,\left|10\right\rangle,\left|11\right\rangle\right)^{t}. Two-qubit operation is constructed by using four LC resonators as in Fig.1. The CNOT gate is constructed by applying the NOT gate between the resonators representing |10\left|10\right\rangle and |11\left|11\right\rangle, as shown in Fig.1(d).

Controlled Z gate. The CZ gate is defined by a matrix

UCZ=diag.[1,1,1,1],U_{\text{CZ}}=\text{diag.}\left[1,1,1,-1\right], (51)

which acts on the two-qubit state (|00,|01,|10,|11)t\left(\left|00\right\rangle,\left|01\right\rangle,\left|10\right\rangle,\left|11\right\rangle\right)^{t}. It follows from the definition that the controlled and target qubits are symmetric in the CZ gate, which leads to various equivalence quantum circuits as shown in Fig.4(a). We denote the CZ gate by the two black disks connected by a line.

CCZ gate. In a similar way to the CZ gate, we can construct the controlled-controlled Z (CCZ) gate acting on three qubits. It flips the sign x7x_{7} of the state |111\left|111\right\rangle. Namely, we flip x7x_{7} to x7-x_{7}. As in the case of the CZ gate, the CCZ gate is symmetric with respect to the exchange of the controlled and target qubits shown in Fig.4(b). We denote the CCZ gate by the three black disks connected by a line.

Cp-1Z gate. We further generalize the CCZ gate to the Cp-1Z gate. It is a pp-qubit gate, which flips the sign x2p1x_{2^{p}-1} of the coefficient of the state |111\left|11\cdots 1\right\rangle. As in the case of the CZ and CCZ gates, the Cp-1Z gate is symmetric with respect to the controlled and target qubits.

More generally, we may take an NN-qubit system with N>pN>p. We may consider a Cp-1Z gate acting a pp-qubit subspace. We denote it by pp black disks connected by a line. Such Cp-1Z gates play an essential role to make a hypergraph state as we will soon see.

Controlled phase-shift gate. The controlled phase-shift gate is defined by the matrix

UZϕ=diag.[1,1,1,eiϕ],U_{\text{Z}_{\phi}}=\text{diag.}\left[1,1,1,e^{i\phi}\right], (52)

which acts on two qubits. There is no action on the target qubit if the control qubit is |0\left|0\right\rangle, while the ϕ\phi phase-shift gate is applied if the control qubit is |1\left|1\right\rangle. The controlled phase-shift gate is constructed by applying the phase-shift gate for the LC resonators representing |11\left|11\right\rangle, as shown in Fig.1(e).

Note that the CZ gate (51) is obtained by setting ϕ=π\phi=\pi in the controlled phase-shift gate (52). Namely, it may be viewed as a generalization of the CZ gate, and hence we call it the CZϕ gate.

Cp-1Zϕ gate. In a similar way to Cp-1Z gates, we may define multi-controlled phase-shift gates, which we denote by Cp-1Zϕ gates. It is a pp-qubit gate, which multiplies the phase eiϕe^{i\phi} to the coefficient α2p1\alpha_{2^{p}-1} of the state |111\left|11\cdots 1\right\rangle.

Refer to caption

Figure 5: (a) Schematic for an artificial neuron. It has mm real inputs xjx_{j} and real internal degree of freedom named weights wjw_{j}. Output is obtained by calculating the inner product jwjxj\sum_{j}w_{j}x_{j} and then by applying an activation function Φ(jwjxj)\Phi(\sum_{j}w_{j}x_{j}). (b) Schematic for a complex neuron. It has complex mm inputs xjx_{j} and complex weights wjw_{j} with the inner product jwjxj\sum_{j}w^{*}_{j}x_{j}.

III Artificial neuron

An artificial neuron is a mathematical modelDeep ; Zurada to simulate a biological neuron. There are mm inputs x0x_{0}, x1x_{1}, \cdots, xm1x_{m-1} and mm weights w0w_{0}, w1w_{1}, \cdots, wm1w_{m-1}, where, xjx_{j} and wjw_{j} are real numbers. We represent the input and the weight by wave functions asTacc

|ψx=12Nj=02N1xj|j,|ψw=12Nj=02N1wj|j,\left|\psi_{x}\right\rangle=\frac{1}{\sqrt{2^{N}}}\sum_{j=0}^{2^{N}-1}x_{j}\left|j\right\rangle\!\rangle,\quad\left|\psi_{w}\right\rangle=\frac{1}{\sqrt{2^{N}}}\sum_{j=0}^{2^{N}-1}w_{j}\left|j\right\rangle\!\rangle, (53)

where |j\left|j\right\rangle\!\rangle forms the NN qubit basis as in Eq.(3). Note the difference between the coefficients αj\alpha_{j} in Eq.(3) and xjx_{j}, wjw_{j} in Eq.(53) by the factor 1/2N1/\sqrt{2^{N}}.

The first step in the artificial neuron is to calculate the inner product jwjxj\sum_{j}w_{j}x_{j}. The inner product of the input data and the weight data measures the similarity between them. For instance, using a series of numbers representing a set of reference patterns as the weight, we may calculate the similarity between an input pattern and the reference pattern.

The inner product is outputted after applying an activation function,

y=Φ(jwjxj).y=\Phi(\sum_{j}w_{j}x_{j}). (54)

The activation function Φ\Phi has various forms such as the step functionRosenF ; McC , a linear function, a sigmoid function, a ramp functionGlo and so on. We show a schematic of a neuron in Fig.5(a). In the process of artificial neuron, the heaviest procedure is the calculation of jwjxj\sum_{j}w_{j}x_{j}, which is efficiently done by using a quantum computerTacc .

We implement the wave functions (53) by unitary transformations from the initial state |0\left|0\right\rangle\!\rangle,

|ψx=Ux|0,|ψw=Uw|0.\left|\psi_{x}\right\rangle=U_{x}\left|0\right\rangle\!\rangle,\qquad\left|\psi_{w}\right\rangle=U_{w}^{{\dagger}}\left|0\right\rangle\!\rangle. (55)

Then, the inner product is calculated as

jwjxj=2Nψw|ψx=2N0|UwUx|0.\sum_{j}w_{j}x_{j}=2^{N}\langle\psi_{w}|\psi_{x}\rangle=2^{N}\langle\!\langle 0|U_{w}U_{x}\left|0\right\rangle\!\rangle. (56)

We explicitly construct UxU_{x} and UwU_{w} later in this section. On the other hand, the application of Φ\Phi is easy with the use of a classical computer since it is a one-to-one map.

Refer to caption

Figure 6: Assignment of binary numbers to (a) 5×45\times 4 pixels for the number recognition and (b) 6×56\times 5 pixels for the alphabet recognition.

A simplest artificial neuron is given by the perceptron modelRosenF ; McC . Here, the input and the weight wave functions are given by Eq.(53) with xj=±1x_{j}=\pm 1 and wj=±1w_{j}=\pm 1. Such states are called real equally weighted (REW) states. Furthermore, the step function is used as the activation function,

y=Θ(jwjxjh),y=\Theta(\sum_{j}w_{j}x_{j}-h), (57)

where Θ\Theta is a step function with the threshold hh, Θ(xh)=1\Theta\left(x-h\right)=1 for xhx\geq h and Θ(xh)=1\Theta\left(x-h\right)=-1 for x<hx<h.

In our application of artificial neuron to pattern recognition we use REW states as in the perceptron model but without employing the activation function (57). We use the inner product itself as the output.

We now discuss how to construct a REW state from the initial state |0\left|0\right\rangle\!\rangle, or how to determine UxU_{x} and UwU_{w}^{{\dagger}} in Eq.(55) in the standard quantum-circuit implementationTacc and also in the electric-circuit implementation.

In the first step, we prepare the equal-coefficient state defined by

|ψ0=12Nj=02N1|j12Nnj=0,1|n1n2nN.\left|\psi_{0}\right\rangle=\frac{1}{\sqrt{2^{N}}}\sum_{j=0}^{2^{N}-1}\left|j\right\rangle\!\rangle\equiv\frac{1}{\sqrt{2^{N}}}\sum_{n_{j}=0,1}|n_{1}n_{2}\cdots n_{N}\rangle. (58)

This is done by way of the Walsh-Hadamard transform of the initial state |0\left|0\right\rangle\!\rangle,

|ψ0=s=1NUH(s)|0,\left|\psi_{0}\right\rangle=\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}\left|0\right\rangle\!\rangle, (59)

where UH(s)U_{\text{H}}^{\left(s\right)} is the Hadamard gate acting on the ssth qubit.

Refer to caption

Figure 7: Neural networks for (a) number recognition and (b) alphabet recognition.

In the second step, we construct |ψx\left|\psi_{x}\right\rangle and |ψw\left|\psi_{w}\right\rangle from the equal-coefficient state as

|ψx=Vx|ψ0,|ψw=Vw|ψ0.\left|\psi_{x}\right\rangle=V_{x}\left|\psi_{0}\right\rangle,\qquad\left|\psi_{w}\right\rangle=V_{w}^{{\dagger}}\left|\psi_{0}\right\rangle. (60)

Here, VxV_{x} is an operation by changing the coefficient xjx_{j} in the state |ψx\left|\psi_{x}\right\rangle to xj-x_{j} if xj=1x_{j}=-1 for all jj. Hence, VxV_{x} is given by a sequential application of Cp-1Z gates. For this purpose, we search for the qubit state |j\left|j\right\rangle\!\rangle whose coefficient is xj=1x_{j}=-1. Then, we apply an appropriate Cp-1Z gate to the state to change its coefficient to xj=1x_{j}=1. An explicit example is given in Appendix A.

We find from (55), (59) and (60) that

Ux=Vxs=1NUH(s),Uw=Vws=1NUH(s),U_{x}=V_{x}\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)},\quad U_{w}^{{\dagger}}=V_{w}^{{\dagger}}\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}, (61)

and from (56) and (61) that

jwjxj=2Nψw|ψx=2N0|s=1NUH(s)VwVxs=1NUH(s)|0.\sum_{j}w_{j}x_{j}=2^{N}\langle\psi_{w}|\psi_{x}\rangle=2^{N}\langle\!\langle 0|\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}V_{w}V_{x}\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}\left|0\right\rangle\!\rangle. (62)

This is the basic formula to calculate the inner product by a quantum computer starting from the initial state |0\left|0\right\rangle\!\rangle. An explicit example of implementation is given in Sec.VII

Refer to caption


Figure 8: (a) Reference patterns and (b) input patterns of numbers. (c) Self similarity ψw|ψw\langle\psi_{w}|\psi_{w}\rangle and (d) cross similarity ψw|ψx\langle\psi_{w}|\psi_{x}\rangle of the number recognition.

IV Pattern recognition

Pattern recognition is one of the most useful applications of artificial neurons. As an example, we consider a pattern made of rectangular pixels painted in black and white. We show two patterns made of 5×45\times 4 pixels and 6×56\times 5 pixels, which are labelled by binary codes as in Fig.6(a) and (b). Next, we assign xj=1x_{j}=1 for white pixel and xj=1x_{j}=-1 for black pixel. Here, jj is a decimal number representing a binary code assigned to a pixel, 0jNp10\leq j\leq N_{p}-1.

In order to represent Nx×NyN_{x}\times N_{y} pixels, we prepare NN qubits satisfying 2N1<Nx×Ny2N2^{N-1}<N_{x}\times N_{y}\leq 2^{N}. These NN-qubit states are REW states, which are Eq.(53) with xj=±1x_{j}=\pm 1 and wj=±1w_{j}=\pm 1. Let there be NpN_{p} patterns to be classified. It is Np=10N_{p}=10 for the number recognition and Np=26N_{p}=26 for the alphabet recognition as in Fig.7(a) and (b), respectively. We use a set of reference patterns as the weight wave function |ψw(j)|\psi_{w}\left(j\right)\rangle, and compare them with a set of input patterns |ψx(j)|\psi_{x}\left(j\right)\rangle: Examples are given in Fig.8 for Np=10N_{p}=10 and in Fig.9 for Np=26N_{p}=26. In these cases, it is enough to prepare five qubits. We estimate the similarity between an input pattern and the reference pattern by calculating the inner product ψw|ψx\langle\psi_{w}|\psi_{x}\rangle. We determine which input pattern is most similar to the reference pattern by searching the largest inner product ψw|ψx\langle\psi_{w}|\psi_{x}\rangle. This process is expressed by a single layer neural network with Nx×NyN_{x}\times N_{y} inputs and NpN_{p} outputs as in Fig.7. The inner product is calculated as

ψw|ψx=Np2NerrorNp,\langle\psi_{w}|\psi_{x}\rangle=\frac{N_{p}-2N_{\text{error}}}{N_{p}}, (63)

where NerrorN_{\text{error}} is the number of errors between the reference and the input patterns defined by

Nerror=j=0Np1(xjwj2)2.N_{\text{error}}=\sum_{j=0}^{N_{p}-1}\left(\frac{x_{j}-w_{j}}{2}\right)^{2}. (64)

We note that ψw|ψx\langle\psi_{w}|\psi_{x}\rangle can be negative for NerrorNp/2N_{\text{error}}\geq N_{p}/2. We find |ψw|ψx|1\left|\langle\psi_{w}|\psi_{x}\rangle\right|\leq 1, where ψw|ψx=1\langle\psi_{w}|\psi_{x}\rangle=1 indicates the perfect matching.

Refer to caption

Figure 9: (a) Reference patterns and (b) input patterns of alphabets. (c) Self similarity ψw|ψw\langle\psi_{w}|\psi_{w}\rangle and (d) cross similarity ψw|ψx\langle\psi_{w}|\psi_{x}\rangle of the alphabet recognition.

As the first example, we study a recognition of numbers. We choose a set of the reference patterns of numbers as given by Fig.8(a). We implement them into a wave function |ψw|\psi_{w}\rangle. Explicit forms are shown in Appendix B. Then, we take a set of input patterns. See Fig.8(b) for an instance. First, we calculate the self similarity defined by ψw(j1)|ψw(j2)\langle\psi_{w}\left(j_{1}\right)|\psi_{w}\left(j_{2}\right)\rangle, which is shown in Fig.8(c). The maximum values are taken when j=j1=j2j=j_{1}=j_{2} with ψw(j)|ψw(j)=1\langle\psi_{w}\left(j\right)|\psi_{w}\left(j\right)\rangle=1. In order to well recognize different patterns as different ones, it is necessary that ψw(j1)|ψw(j2)\langle\psi_{w}\left(j_{1}\right)|\psi_{w}\left(j_{2}\right)\rangle is small for j1j2j_{1}\neq j_{2}. From Fig.8(c), we find that 1, 2, 3, 4, 5 and 7 are well distinguishable because ψw(j1)|ψw(j2)\langle\psi_{w}\left(j_{1}\right)|\psi_{w}\left(j_{2}\right)\rangle is low. On the other hand, 6, 8 and 9 are hardly distinguishable because the similarity is 0.9, where only one pixel is different.

Next, we study a cross similarity between the input and the reference patterns by calculating ψw(j1)|ψx(j2)\langle\psi_{w}\left(j_{1}\right)|\psi_{x}\left(j_{2}\right)\rangle. We fix j2j_{2} for the input pattern and determine which reference pattern is most similar by choosing the largest inner product. We find 0, 1, 2, 3, 4, 5, 6, 7 and 9 are correctly recognized, but 8 is ill recognized to be 3. See Fig.8(d).

In a similar way, we study an alphabet recognition. We choose a set of the reference patterns of alphabets as in Fig.9(a) and a set of input patterns in Fig.9(b). The self-similarity and the cross-similarity are shown in Fig.9(c) and (d). We find the following properties from the self similarity: Alphabets are easier to differentiate comparing to numbers. "F" is hardly differentiated from "P", where the similarity is 14/15. "C", "D", "G" and "O" are hardly differentiable among themselves, and "M" and "N" are hardly differentiated one another, where the similarity is 13/15. We find the following properties from the cross similarity: There are ill recognitions of "D" to "Q", "E" to "F", "O" to "D", "X" to "Y" and "Z" to "T". In addition, "C" has equal similarity to both "C" and "D" in the reference pattern, "G" has equal similarity to both "D" and "G". "I" has equal similarity to both "I" and "T". For other cases, the input patterns are well recognized with respect to the reference patterns.

V Complex-artificial neuron

We proceed to study a complex-artificial neuron, where the input and the weight are given by CEW states. Namely, the wave functions are given by (53) with complex coefficients xj=eiθjxx_{j}=e^{i\theta_{j}^{x}} and wj=eiθjww_{j}=e^{i\theta_{j}^{w}}. The inner product reads

ψw|ψx=12Njwjxj=12Njei(θjxθjw).\langle\psi_{w}|\psi_{x}\rangle=\frac{1}{2^{N}}\sum_{j}w_{j}^{\ast}x_{j}=\frac{1}{2^{N}}\sum_{j}e^{i\left(\theta_{j}^{x}-\theta_{j}^{w}\right)}. (65)

The output is given byMangi

y=Φ(jwjxj),y=\Phi(\sum_{j}w_{j}^{\ast}x_{j}), (66)

where Φ\Phi is a complex-activation function.

Refer to caption

Figure 10: Standard quantum circuits for a generation process of the CEW state for (a) three qubits and (b) four qubits. An isolated magenta disk indicates a Z gate. Magenta disks connected by a line indicate a Cp-1Zϕ gate.

Any CEW state is generated by a sequential application of Cp-1Zϕ gates to the equal-coefficient state (58) precisely as the REW state is generated by a sequential application of Cp-1Z gates to it. Let us explain it by taking the most general CEW state |ψ\left|\psi\right\rangle in the 33-qubit system. It is given by

|ψ=nj=0,1αn1n2n3|n1n2n3,\left|\psi\right\rangle=\sum_{n_{j}=0,1}\alpha_{n_{1}n_{2}n_{3}}|n_{1}n_{2}n_{3}\rangle, (67)

with

αn1n2n3=12Nexp(iθn1n2n3),\alpha_{n_{1}n_{2}n_{3}}=\frac{1}{\sqrt{2^{N}}}\exp(i\theta_{n_{1}n_{2}n_{3}}), (68)

where we set θ000=0\theta_{000}=0 without loss of generality.

We list up all possible Cp-1Zϕ gates in Fig.10(a). Recall that all Cp-1Zϕ gates are commutative. The generated CEW state is given by

UCCZϕ123(123)UCZϕ23(23)UCZϕ13(13)UCZϕ12(12)UZϕ3(3)UZϕ2(2)UZϕ1(1)s=14UH(s)|0\displaystyle U_{\text{CCZ}_{\phi_{123}}}^{\left(123\right)}U_{\text{CZ}_{\phi_{23}}}^{\left(23\right)}U_{\text{CZ}_{\phi_{13}}}^{\left(13\right)}U_{\text{CZ}_{\phi_{12}}}^{\left(12\right)}U_{\text{Z}_{\phi_{3}}}^{\left(3\right)}U_{\text{Z}_{\phi_{2}}}^{\left(2\right)}U_{\text{Z}_{\phi_{1}}}^{\left(1\right)}\bigotimes_{s=1}^{4}U_{\text{H}}^{\left(s\right)}\left|0\right\rangle\!\rangle
=\displaystyle= 18(|000+eiϕ3|001+eiϕ2|010+ei(ϕ2+ϕ3+ϕ23)|011\displaystyle\frac{1}{\sqrt{8}}(|000\rangle+e^{i\phi_{3}}|001\rangle+e^{i\phi_{2}}|010\rangle+e^{i\left(\phi_{2}+\phi_{3}+\phi_{23}\right)}|011\rangle
+eiϕ1|100+ei(ϕ1+ϕ3+ϕ13)|101+ei(ϕ1+ϕ2+ϕ12)|110\displaystyle+e^{i\phi_{1}}|100\rangle+e^{i\left(\phi_{1}+\phi_{3}+\phi_{13}\right)}|101\rangle+e^{i\left(\phi_{1}+\phi_{2}+\phi_{12}\right)}|110\rangle
+ei(ϕ1+ϕ2+ϕ3+ϕ12+ϕ13+ϕ23+ϕ123)|111),\displaystyle+e^{i\left(\phi_{1}+\phi_{2}+\phi_{3}+\phi_{12}+\phi_{13}+\phi_{23}+\phi_{123}\right)}|111\rangle), (69)

where the angle ϕ1\phi_{1} is that of the Zϕ1{}_{\phi_{1}} gate, ϕ12\phi_{12} is that of CZϕ12{}_{\phi_{12}} and ϕ123\phi_{123} is that of CCZϕ123{}_{\phi_{123}}, and so on.

Refer to caption

Figure 11: (a) Color circle, (b) reference color pattern and (c) input color pattern. The input pattern is made by changing randomly colors of the reference pattern within 20% randomness.

It is easy to see that the angles associated with Cp-1Zϕ gates (69) are uniquely fixed in terms of θn1n2n3\theta_{n_{1}n_{2}n_{3}} in the given CEW state (67) because there are seven independent variables in both of these equations. Indeed, by equating (67) and (69), we obtain relations

ϕ1\displaystyle\phi_{1} =\displaystyle= θ100,ϕ2=θ010,ϕ3=θ001,\displaystyle\theta_{100},\quad\phi_{2}=\theta_{010},\quad\phi_{3}=\theta_{001},
ϕ12\displaystyle\phi_{12} =\displaystyle= θ110θ100θ010,\displaystyle\theta_{110}-\theta_{100}-\theta_{010},
ϕ13\displaystyle\phi_{13} =\displaystyle= θ101θ100θ001,\displaystyle\theta_{101}-\theta_{100}-\theta_{001}, (70)
ϕ23\displaystyle\phi_{23} =\displaystyle= θ011θ010θ001,\displaystyle\theta_{011}-\theta_{010}-\theta_{001},
ϕ123\displaystyle\phi_{123} =\displaystyle= θ111+θ100+θ010+θ001θ110θ101θ011.\displaystyle\theta_{111}+\theta_{100}+\theta_{010}+\theta_{001}-\theta_{110}-\theta_{101}-\theta_{011}.

We have shown which Cp-1Zϕ gates we have to prepare in order to generate the most general CEW state (67) in the 33-qubit system.

We also list up all possible Cp-1Zϕ gates for the 44-qubit system in Fig.10(b). In general, we can always construct an arbitrary CEW state by applying Cp-1Zϕ gates in NN-qubit systems.

Refer to caption

Figure 12: (a) Standard quantum-circuit model for the calculation of the inner product (71) for an example given by (74) and (75). We use a four-qubit state |n1n2n3n4\left|n_{1}n_{2}n_{3}n_{4}\right\rangle (b) Corresponding electric-circuit simulation. The Hadamard gates are denoted by filled or unfilled black disks connected by a link. The Hadamard bridges with unfilled disks are not necessary since they are irrelevant for the input state |0\left|0\right\rangle\!\rangle and the output state 0|\langle\!\langle 0|.

VI Colored pattern recognition

The color circle is a color pallet indexed by a number on a circle as shown in Fig.11(a). It has a one-to-one correspondence to eiθe^{i\theta}. For example, θ=0\theta=0 indicates red and θ=π\theta=\pi indicates cyan. Hence, a color pattern made of pixels is well represented by a CEW state. By using a complex neural network, we can estimate a similarity between two colored patterns.

For example, we show a reference colored pattern in Fig.11(b). It is enough to prepare 4 qubits for a pattern with 16 pixels. We make an input colored pattern by modifying color randomly within 20%. The inner product of two patterns is 0.9930.096i0.993-0.096i. It is relatively large although the color of each pixel is modified by 20%. This is because the input pattern is created from the reference pattern by adding noise, where the noise is cancelled by adding all contributions from pixels. Hence, our scheme can evaluate similarity between two colored patterns with color noise.

The merit of our color representation scheme is that the color circle is naturally represented by a continuous circle eiθe^{i\theta}. In the standard digital representation, we have to digitalize color. The number of classical bits increases as the increase of hue decomposition. On the other hand, all color is continuously represented by one number eiθe^{i\theta} in our scheme.

VII Electric-circuit implementation

We implement these models by a set of LC resonators. We prepare 2N2^{N} LC resonators to represent the states |j\left|j\right\rangle\!\rangle or |n1n2nsnN\left|n_{1}n_{2}\cdots n_{s}\cdots n_{N}\right\rangle. The main issue is the electric-circuit implementation of the inner product formula (62), or

ψw|ψx=0|s=1NUH(s)VwVxs=1NUH(s)|0,\langle\psi_{w}|\psi_{x}\rangle=\langle\!\langle 0|\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}V_{w}V_{x}\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)}\left|0\right\rangle\!\rangle, (71)

which may be used for CEW states as well as REW states.

The first step is the construction of the equal-coefficient state (58) by applying s=1NUH(s)\bigotimes_{s=1}^{N}U_{\text{H}}^{\left(s\right)} to the initial state |0\left|0\right\rangle\!\rangle. The action of the Hadamard transformation UH(s)U_{\text{H}}^{\left(s\right)} for the ssth qubit is simulated by bridging two resonators |n1n2nsnN\left|n_{1}n_{2}\cdots n_{s}\cdots n_{N}\right\rangle and |n1n2n¯snN\left|n_{1}n_{2}\cdots\overline{n}_{s}\cdots n_{N}\right\rangle, when n¯s=1\overline{n}_{s}=1 for ns=0n_{s}=0 and n¯s=0\overline{n}_{s}=0 for ns=1n_{s}=1. In the case of N=4N=4, the Hadamard gate UH(1)U_{\text{H}}^{\left(1\right)} is simulated by the eight bridges between

|0000 and |1000,|0001 and |1001,|0010 and |1010,|0011 and |1011,|0100 and |1100,|0101 and |1101,|0110 and |1110,|0111 and |1111.\begin{array}[]{c}\left|0000\right\rangle\text{\quad and\quad}\left|1000\right\rangle,\\ \left|0001\right\rangle\text{\quad and\quad}\left|1001\right\rangle,\\ \left|0010\right\rangle\text{\quad and\quad}\left|1010\right\rangle,\\ \left|0011\right\rangle\text{\quad and\quad}\left|1011\right\rangle,\\ \left|0100\right\rangle\text{\quad and\quad}\left|1100\right\rangle,\\ \left|0101\right\rangle\text{\quad and\quad}\left|1101\right\rangle,\\ \left|0110\right\rangle\text{\quad and\quad}\left|1110\right\rangle,\\ \left|0111\right\rangle\text{\quad and\quad}\left|1111\right\rangle.\end{array} (72)

Although there are many bridges, their assignment is systematic. Apparently we need N2N1N2^{N-1} operations. Actually, many bridges shown by unfilled disks in Fig.12(b) are not necessary since we start with |0\left|0\right\rangle\!\rangle and end up with 0|\langle\!\langle 0| as in Eq.(71). Then, we may delete all operations which is irrelevant to the input and the output, which greatly reduces the number of operations. The necessary operation relating to the NN-qubit Hadamard gate is sN2s1=2N1\sum_{s}^{N}2^{s-1}=2^{N}-1.The reduction rate is

limN2N1N2N1=limN2N.\lim_{N\rightarrow\infty}\frac{2^{N}-1}{N2^{N-1}}=\lim_{N\rightarrow\infty}\frac{2}{N}. (73)

The second step is the operation of Cp-1Z gates in the case of REW states. In construct to the application of Cp-1Z gates in the standard quantum-circuit implementation, it is enough to apply the π\pi phase-shift only for |j\left|j\right\rangle\!\rangle with xj=1x_{j}=-1. More explicitly, the CZ gate for two qubits is simulated by the π\pi phase-shift gate applied to the resonator representing |11\left|11\right\rangle, while the CCZ gate for three qubits is simulated by the π\pi phase-shift gate applied to the resonator representing |111\left|111\right\rangle. In general, the Cp-1Z gate for pp qubits is simulated by the π\pi phase-shift gate applied only to the resonator representing |111\left|11\cdots 1\right\rangle.

We consider an example of an inner product for the input and the weight states given by

4|ψx=\displaystyle 4\left|\psi_{x}\right\rangle= |0000|0001+|0010+|0011\displaystyle-\left|0000\right\rangle-\left|0001\right\rangle+\left|0010\right\rangle+\left|0011\right\rangle
+|0100+|0101+|0110+|0111\displaystyle+\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle
+|1100+|1101+|1110+|1111,\displaystyle+\left|1100\right\rangle+\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle, (74)

and

4|ψw=\displaystyle 4\left|\psi_{w}\right\rangle= |0000+|0001|0010|0011\displaystyle\left|0000\right\rangle+\left|0001\right\rangle-\left|0010\right\rangle-\left|0011\right\rangle
|0100+|0101+|0110+|0111\displaystyle-\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle
+|1100+|1101+|1110+|1111,\displaystyle+\left|1100\right\rangle+\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle, (75)

where the inner product is ψw|ψx=3/8\langle\psi_{w}|\psi_{x}\rangle=3/8. The quantum circuit and the electric circuit to calculate this inner product based on the inner product formula (62) are given in Fig.12(a). Then, we apply the π\pi phase-shift gate for |0000\left|0000\right\rangle and |0001\left|0001\right\rangle in order to construct |ψx|\psi_{x}\rangle, while we apply the π\pi phase-shift gate for |0010\left|0010\right\rangle, |0011\left|0011\right\rangle and |0100\left|0100\right\rangle in order to construct |ψw|\psi_{w}\rangle as in Fig.12(b).

Refer to caption

Figure 13: Output yjy_{j} for each resonator representing |j\left|j\right\rangle\!\rangle. We measure the output y0y_{0} for the state |0\left|0\right\rangle\!\rangle, which gives an inner product 3/8=0.3753/8=0.375.

It is convenient to define the output yjy_{j} for each resonator representing |j\left|j\right\rangle\!\rangle in Fig.13 by

14j=015yj|j=(s=14UH(s))VwVx(s=14UH(s))|0000.\frac{1}{4}\sum_{j=0}^{15}y_{j}\left|j\right\rangle\!\rangle=\left(\bigotimes_{s=1}^{4}U_{\text{H}}^{\left(s\right)}\right)V_{w}V_{x}\left(\bigotimes_{s=1}^{4}U_{\text{H}}^{\left(s\right)}\right)\left|0000\right\rangle. (76)

The outs yjy_{j} are always real. Especially, we are interested in the output for |0000\left|0000\right\rangle, which is y=03/8{}_{0}=3/8. It reproduce a correct the inner product given below Eq.(75).

The generalization to the calculation of an inner product of CEW states is straightforward. As a characteristic feature of the present electric-circuit simulation, it is possible to create a ϕ\phi phase-shift gate with an arbitrary angle ϕ\phi just by tuning the capacitance of the relevant LC resonator according the formula (20). Hence, any CEW state is generated by applying Cp-1Zϕ gates with the use of appropriate ϕ\phi phase-shift gates.

Refer to caption

Figure 14: (*1) Quantum-circuit representation, and (*2) graph and hypergraph representation. Z gates correspond to self-loops, which are marked in orange disks in a graph or a hypergraph. CZ gates correspond to edges, which are marked in black lines in a hypergraph. Cp-1Z gates correspond to hyperedges, which are marked in colored ovals in a hypergraph. (a*) graph state, (b*) for ψx\psi_{x} and (c*) for ψw\psi_{w}.

VIII Graph theory

Graph states and hypergraph states. It is intriguing to examine the REW state in the context of graph theory. Such a state is referred to as a graph stateHein ; Hein2 ; Anders that is constructed by a sequential application of Z gates and CZ gates to the equal-coefficient state (58). The order of a Z gate and a CZ gate is irrelevant because they are diagonal operators and commutable. Then, we may establish one-to-one correspondence between a graph and a graph state. Indeed, in order to make a graph corresponding to a graph state, we first prepare NN vertices representing NN qubits, as in Fig.14(a2) for an instance of N=4N=4. We add self-loop links to the vertices to which Z gates are applied, while we connect two vertices by an edge where CZ gates are operated. Different graphs represent different graph states due to the commutative nature of the Z and the CZ gates. See Fig.14(a2).

The set of all graph states is a subgroup of the REW states by the following reasoning. The number of the Z gates is NN, while the number of the CZ gates is C2N{}_{N}C_{2}. Hence, we can express 2N+NC22^{N+_{N}C_{2}} graph states. On the other hand, the number of the REW states is 22N2^{2^{N}}. Here, 22N>2N+NC22^{2^{N}}>2^{N+_{N}C_{2}} for N3N\geq 3.

In order to represent a complete set of the REW states, it is necessary to introduce the notion of hypergraphHyperGraph ; Qu , which is a generalization of graph. In a hypergraph, we have a hyperedge connecting more than three vertices. For example, a CCZ gate is represented by a hyperedge with order 33, which connects three vertices, as in Fig.14(b2). In a similar way, a Cp-1Z gate is represented by a hyperedge with order pp, which connects pp vertices. The number of the Cp-1Z gates is given by CpN{}_{N}C_{p}. Then, the total number of gates is 2p=1N(CpN)=22N12^{\sum_{p=1}^{N}\left({}_{N}C_{p}\right)}=2^{2^{N}-1}. The overall phase is irrelevant and thus it is a complete representation. We show a hypergraph representation of |ψx|\psi_{x}\rangle and |ψw|\psi_{w}\rangle in Fig.14. In Fig.14(b), a hyperedge is represented by an oval containing three vertices connected by a hyperedge. In Fig.14(c), three hyperedges are represented by three ovals containing vertices connected by three hyperedge.

Weighted graph states and hypergraph states. As a generalization of graph states and hypergraph states, we may introduce the concepts of weighted graph states and weighted hypergraph states in the context of CEW states. A weighted graph state is defined by a sequential application of Zϕ gates and CZϕ gates to the equal-coefficient state (58), where eiϕe^{i\phi} is a weight. Next, a weighted hypergraph state is generated by a sequential application of Cp-1Zϕ gates to the equal-coefficient state (58). Here, we assign a pp-hyperedge to a Cp-1Zϕ gate as in the case of Cp-1Z gates, and then we assign a weight eiϕe^{i\phi} to each hyperedge.

IX Discussion

We have proposed an electric-circuit simulation of universal quantum gates on the basis of LC resonators bridged by inductors. Here, capacitance and inductance are controllable by using a variable capacitance diode and an active inductor, respectively.

An artificial neuron requires many Cp-1Z gates for various pp. It is actually a hard task to realize Cp-1Z gates in the standard quantum-circuit implementation even by employing modern technology such as superconductor, ion-trap or photonic systems for p3p\geq 3. This difficulty originates in the fact that a Cp-1Z gate implies a pp-body interaction. Although it is possible to decompose a Cp-1Z gate into simpler gates, there emerge many gatesNielsen . The problem becomes worse for a complex-artificial neuron, where we use Cp-1Zϕ gates instead of Cp-1Z gates. The Cp-1Zϕ gate contains the phase-shift gate with angle ϕ\phi. It is possible but quite tedious to construct a Cp-1Zϕ gate with the use of a set of universal quantum gates. On the contrary, it is simple to construct a Cp-1Zϕ gate by inserting one ϕ\phi phase-shift gate in the electric-circuit implementation.

Furthermore, it is a nontrivial problem to construct a superposition state such as REW or CEW states. It is necessary to design several quantum gates in order to make such a state, for which we need to use a classical computer in general. See a typical example in Fig.12(a) and Appendix A. On the other hand, it is sufficient to insert simply some ϕ\phi phase-shift gates in the electric-circuit implementation. Although the implementation of the Hadamard gates is harder, the assignment is systematic and trivial. See the corresponding example in Fig.12(b).

We have previously proposed another kind of electric-circuit simulation of universal quantum gates, where quantum gates are constructed by bridging telegrapher wiresEzawaUniv ; EzawaDirac . The number of elements of electric circuits increases as the increase of the number of quantum gates. On the other hand, the number of the elements is fixed in the present scheme irrespective to the number of quantum gates because the operation is performed in time evolution. Another merit comparing to the wire construction is that the present scheme is programmable because the gate is applied temporally, which is contrasted to the wire construction where the gates are constructed by setting wires.

The author is very much grateful to E. Saito and N. Nagaosa for helpful discussions on the subject. This work is supported by the Grants-in-Aid for Scientific Research from MEXT KAKENHI (Grants No. JP17K05490 and No. JP18H03676). This work is also supported by CREST, JST (JPMJCR16F1 and JPMJCR20T2).

Appendix A Example of hypergraph generation process

A REW state |ψx|\psi_{x}\rangle is given by Eq.(53) with xj=±1x_{j}=\pm 1. We explain how to create this state from the equal-coefficient state (58). Alternatively, we explain how to transform this state to the equal-coefficient state.

Let us explicitly study an example given by

4|ψx=\displaystyle 4|\psi_{x}\rangle= |0000|0001+|0010+|0011+|0100+|0101+|0110+|0111\displaystyle-\left|0000\right\rangle-\left|0001\right\rangle+\left|0010\right\rangle+\left|0011\right\rangle+\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011+|1100+|1101+|1110+|1111.\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle+\left|1100\right\rangle+\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle. (77)

First, we rewrite it so that the coefficient of |0000\left|0000\right\rangle is 11,

4|ψx=\displaystyle 4|\psi_{x}\rangle= (|0000+|0001|0010|0011|0100|0101|0110|0111\displaystyle-(\left|0000\right\rangle+\left|0001\right\rangle-\left|0010\right\rangle-\left|0011\right\rangle-\left|0100\right\rangle-\left|0101\right\rangle-\left|0110\right\rangle-\left|0111\right\rangle
|1000|1001|1010|1011|1100|1101|1110|1111).\displaystyle-\left|1000\right\rangle-\left|1001\right\rangle-\left|1010\right\rangle-\left|1011\right\rangle-\left|1100\right\rangle-\left|1101\right\rangle-\left|1110\right\rangle-\left|1111\right\rangle). (78)

We note that overall phase - is irrelevant in quantum computation.

(i) We focus on the states |n1n2n3n4|n_{1}n_{2}n_{3}n_{4}\rangle such that ini=1\sum_{i}n_{i}=1, among which the coefficients of |1000\left|1000\right\rangle, |0100\left|0100\right\rangle and |0010\left|0010\right\rangle are 1-1, while the coefficient of |0001\left|0001\right\rangle is 11. Then, we apply three ZZ gates to the first, second and third qubits, and obtain

4UZ(1)UZ(2)UZ(3)ψx=\displaystyle 4U_{\text{Z}}^{\left(1\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}\psi_{x}= (|0000+|0001+|0010+|0011+|0100+|0101|0110|0111\displaystyle-(\left|0000\right\rangle+\left|0001\right\rangle+\left|0010\right\rangle+\left|0011\right\rangle+\left|0100\right\rangle+\left|0101\right\rangle-\left|0110\right\rangle-\left|0111\right\rangle
+|1000+|1001|1010|1011|1100|1101+|1110+|1111)\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle-\left|1010\right\rangle-\left|1011\right\rangle-\left|1100\right\rangle-\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle) (79)

(ii) We focus on the states |n1n2n3n4|n_{1}n_{2}n_{3}n_{4}\rangle such that ini=2\sum_{i}n_{i}=2, among which the coefficients of |0110\left|0110\right\rangle, |1010\left|1010\right\rangle and |1100\left|1100\right\rangle are 1-1, while the coefficient of |0011\left|0011\right\rangle, |0101\left|0101\right\rangle and |1001\left|1001\right\rangle is 11. Then, we apply three CZCZ gates, and obtain

4UCZ(13)UCZ(23)UCZ(12)UZ(1)UZ(2)UZ(3)ψx=\displaystyle 4U_{\text{CZ}}^{\left(13\right)}U_{\text{CZ}}^{\left(23\right)}U_{\text{CZ}}^{\left(12\right)}U_{\text{Z}}^{\left(1\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}\psi_{x}= (|0000+|0001+|0010+|0011+|0100+|0101+|0110+|0111\displaystyle-(\left|0000\right\rangle+\left|0001\right\rangle+\left|0010\right\rangle+\left|0011\right\rangle+\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011+|1100+|1101|1110|1111)\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle+\left|1100\right\rangle+\left|1101\right\rangle-\left|1110\right\rangle-\left|1111\right\rangle) (80)

(iii) We focus on the states |n1n2n3n4|n_{1}n_{2}n_{3}n_{4}\rangle such that ini=3\sum_{i}n_{i}=3, among which the coefficients of |1110\left|1110\right\rangle is 1-1, while the coefficient of |0111\left|0111\right\rangle, |1011\left|1011\right\rangle and |1101\left|1101\right\rangle is 11. Then, we apply one CCZCCZ gate, and obtain the equal-coefficient state,

4UCCZ(123)UCZ(13)UCZ(23)UCZ(12)UZ(1)UZ(2)UZ(3)ψx=\displaystyle 4U_{\text{CCZ}}^{\left(123\right)}U_{\text{CZ}}^{\left(13\right)}U_{\text{CZ}}^{\left(23\right)}U_{\text{CZ}}^{\left(12\right)}U_{\text{Z}}^{\left(1\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}\psi_{x}= (|0000+|0001+|0010+|0011+|0100+|0101+|0110+|0111\displaystyle-(\left|0000\right\rangle+\left|0001\right\rangle+\left|0010\right\rangle+\left|0011\right\rangle+\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011+|1100+|1101+|1110+|1111).\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle+\left|1100\right\rangle+\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle). (81)

Hence, it follows from (60) that

Vx1=UCCZ(123)UCZ(13)UCZ(23)UCZ(12)UZ(1)UZ(2)UZ(3).V_{x}^{-1}=-U_{\text{CCZ}}^{\left(123\right)}U_{\text{CZ}}^{\left(13\right)}U_{\text{CZ}}^{\left(23\right)}U_{\text{CZ}}^{\left(12\right)}U_{\text{Z}}^{\left(1\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}. (82)

Consequently, |ψx|\psi_{x}\rangle is obtained by the inverse process as

ψx=UCCZ(123)UCZ(13)UCZ(23)UCZ(12)UZ(1)UZ(2)UZ(3)s=14UH(s)|0000,\psi_{x}=-U_{\text{CCZ}}^{\left(123\right)}U_{\text{CZ}}^{\left(13\right)}U_{\text{CZ}}^{\left(23\right)}U_{\text{CZ}}^{\left(12\right)}U_{\text{Z}}^{\left(1\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}\bigotimes_{s=1}^{4}U_{\text{H}}^{\left(s\right)}\left|0000\right\rangle, (83)

because all Cp-1Z gates are commutative and one Cp-1Z gate UU satisfies U2=1U^{2}=1.

In a similar way,

ψw=\displaystyle\psi_{w}= 14(|0000+|0001|0010|0011|0100+|0101+|0110+|0111\displaystyle\frac{1}{4}(\left|0000\right\rangle+\left|0001\right\rangle-\left|0010\right\rangle-\left|0011\right\rangle-\left|0100\right\rangle+\left|0101\right\rangle+\left|0110\right\rangle+\left|0111\right\rangle
+|1000+|1001+|1010+|1011+|1100+|1101+|1110+|1111)\displaystyle+\left|1000\right\rangle+\left|1001\right\rangle+\left|1010\right\rangle+\left|1011\right\rangle+\left|1100\right\rangle+\left|1101\right\rangle+\left|1110\right\rangle+\left|1111\right\rangle) (84)

is generated as

ψw=UCCCZ(1234)UCCZ(124)UCCZ(234)UCZ(12)UCZ(13)UCZ(24)UZ(2)UZ(3)s=14UH(s)|0000.\psi_{w}=U_{\text{CCCZ}}^{\left(1234\right)}U_{\text{CCZ}}^{\left(124\right)}U_{\text{CCZ}}^{\left(234\right)}U_{\text{CZ}}^{\left(12\right)}U_{\text{CZ}}^{\left(13\right)}U_{\text{CZ}}^{\left(24\right)}U_{\text{Z}}^{\left(2\right)}U_{\text{Z}}^{\left(3\right)}\bigotimes_{s=1}^{4}U_{\text{H}}^{\left(s\right)}\left|0000\right\rangle. (85)

Thus, it is a nontrivial problem to construct hypergraph generation circuits in the standard quantum-circuit implementation.

Appendix B Number recognition

We show binary representations of the pattern of each number for the reference and the input data in Fig.8, where the left hand side stands for the reference and the right one for the input data,

0:(11111001100110011111),(01101001100110010110),1:(01101010001000101111),(01100010001000100010),2:(11111001001001001111),(01110001001001000111),3:(01101001001010010110),(11111001001010011111),4:(10101010111100100010),(00101010111000100010),5:(11111000111100011111),(01101000111000011110),6:(11111000111110011111),(01101000111010011110),7:(11110001001000100100),(01100001001000100010),8:(11111001111110011111),(01101001011010010110),9:(11111001111100011111),(01101001011100010110),\begin{array}[]{c}0:\left(11111001100110011111\right),\qquad\left(01101001100110010110\right),\\ 1:\left(01101010001000101111\right),\qquad\left(01100010001000100010\right),\\ 2:\left(11111001001001001111\right),\qquad\left(01110001001001000111\right),\\ 3:\left(01101001001010010110\right),\qquad\left(11111001001010011111\right),\\ 4:\left(10101010111100100010\right),\qquad\left(00101010111000100010\right),\\ 5:\left(11111000111100011111\right),\qquad\left(01101000111000011110\right),\\ 6:\left(11111000111110011111\right),\qquad\left(01101000111010011110\right),\\ 7:\left(11110001001000100100\right),\qquad\left(01100001001000100010\right),\\ 8:\left(11111001111110011111\right),\qquad\left(01101001011010010110\right),\\ 9:\left(11111001111100011111\right),\qquad\left(01101001011100010110\right),\end{array} (86)

where 0 indicates a white pixel and 11 indicates a black pixel.

References

  • (1) R. Feynman, Int. J. Theor. Phys. 21, 467 (1982).
  • (2) D. P. DiVincenzo, Science 270, 255 (1995).
  • (3) M. Nielsen and I. Chuang, "Quantum Computation and Quantum Information", Cambridge University Press, (2016); ISBN 978-1-107-00217-3.
  • (4) Y. Nakamura; Yu. A. Pashkin; J. S. Tsai, Nature 398, 786 (1999).
  • (5) E. Knill, R. Laflamme and G. J. Milburn, Nature, 409, 46 (2001).
  • (6) D. Loss and D. P. DiVincenzo, Phys. Rev. A 57, 120 (1998).
  • (7) J. I. Cirac and P. Zoller, Phys. Rev. Lett. 74, 4091 (1995).
  • (8) L. M.K. Vandersypen, M. Steffen, G. Breyta, C. S. Yannoni, M. H. Sherwood, I. L. Chuang, Nature 414, 883 (2001).
  • (9) B. E. Kane, Nature 393, 133 (1998).
  • (10) D. Deutsch, Proceedings of the Royal Society A. 400, 97 (1985).
  • (11) C. M. Dawson and M. A. Nielsen arXiv:quant-ph/0505030.
  • (12) M. Nielsen and I. Chuang, "Quantum Computation and Quantum Information", Cambridge University Press, Cambridge, UK (2010).
  • (13) C. H. Lee , S. Imhof, C. Berger, F. Bayer, J. Brehm, L. W. Molenkamp, T. Kiessling and R. Thomale, Communications Physics, 1, 39 (2018).
  • (14) S. Imhof, C. Berger, F. Bayer, J. Brehm, L. Molenkamp, T. Kiessling, F. Schindler, C. H. Lee, M. Greiter, T. Neupert, R. Thomale, Nat. Phys. 14, 925 (2018).
  • (15) M. S.-Garcia, R. Susstrunk and S. D. Huber, Phys. Rev. B 99, 020304 (2019).
  • (16) T. Helbig, T. Hofmann, C. H. Lee, R. Thomale, S. Imhof, L. W. Molenkamp and T. Kiessling, Phys. Rev. B 99, 161114 (2019).
  • (17) E. I. Rosenthal, N. K. Ehrlich, M. S. Rudner, A. P. Higginbotham, and K. W. Lehnert, Phys. Rev. B 97, 220301(R) (2018).
  • (18) Y. Lu, N. Jia, L. Su, C. Owens, G. Juzeliunas, D. I. Schuster and J. Simon, Phys. Rev. B 99, 020302 (2019).
  • (19) M. Ezawa, Phys. Rev. B 98, 201402(R) (2018).
  • (20) Y. Li, Y. Sun, W. Zhu, Z. Guo, J. Jiang, T. Kariyado, H. Chen and X. Hu, Nat. Com. 9, 4598 (2018).
  • (21) T. Hofmann, T. Helbig, C. H. Lee, M. Greiter, R. Thomale, Phys. Rev. Lett. 122, 247702 (2019).
  • (22) K. Luo, R. Yu and H. Weng, Research (2018), ID 6793752.
  • (23) M. Ezawa, Phys. Rev. B 99, 201411(R) (2019).
  • (24) M. Ezawa, Physical Review B 99 (12), 121411 (2019).
  • (25) M. Ezawa, Phys. Rev. B 100, 045407 (2019).
  • (26) T. Helbig, T. Hofmann, S. Imhof, M. Abdelghany, T. Kiessling, L. W. Molenkamp, C. H. Lee, A. Szameit, M. Greiter, R. Thomale, Nature Physics, 16, 747 (2020).
  • (27) M. Ezawa, Phys. Rev. Research 2, 023278 (2020).
  • (28) M. Ezawa, J. Phys. Soc. Jpn. 89, 124712 (2020).
  • (29) M. Ezawa, Phys. Rev. B 102, 075424 (2020).
  • (30) M. Ezawa, Phys. Rev. B 100, 165419 (2019).
  • (31) S. Lloyd, M. Mohseni and P. Rebentrost, arXiv:1307.0411.
  • (32) M. Schuld, I. Sinayskiy, F. Petruccione, Contemporary Physics. 56, 172 (2014).
  • (33) J. Biamonte, Nature. 549, 195 (2017).
  • (34) P. Wittek, "Quantum Machine Learning: What Quantum Computing Means to Data Mining", Academic Press (2014); ISBN 978-0128100400.
  • (35) A. W. Harrow, A. Hassidim and S. Lloyd, Phys. Rev. Lett. 103 150502 (2009).
  • (36) N. Wiebe, D. Braun and S. Lloyd, Phys. Rev. Lett. 109, 050505 (2012).
  • (37) P. Rebentrost, M. Mohseni, S. Lloyd, Phys. Rev. Lett. 113, 130503 (2014).
  • (38) Z. Li, X. Liu, N. Xu and J. Du, Phys. Rev. Lett. 114, 140504 (2015).
  • (39) M. Schuld and N. Killoran, Phys. Rev. Lett. 122, 040504 (2019).
  • (40) V. Havlicek, A. D. Corcoles, K. Temme, A. W. Harrow, A. Kandala, J. M. Chow and J. M. Gambetta, Nature 567, 209 (2019).
  • (41) Mach. Learn.: Sci. Technol. 1, 033002 (2020).
  • (42) I. Cong, S. Choi and M. D. Lukin, Nature Physics 15, 1273 (2019).
  • (43) J. Schmidhuber, Neural Netw. 61, 85 (2015).
  • (44) J. M. Zurada, "Introduction to Artificial Neural Systems", West Group, St. Paul, MN, USA, (1992); ISBN 978-0314933911.
  • (45) M. Schuld, I. Sinayskiy and F. Petruccione, Phys. Lett. A 379, 660 (2015).
  • (46) N. Wiebe, A. Kapoor and K. N. Svore, arXiv:1602.04799.
  • (47) Y. Cao, G. G. Guerreschi and A. Aspuru-Guzik, arXiv:1711.11240.
  • (48) F. Tacchino, C. Macchiavello, D. Gerace and D. Bajoni, npj quantum information 5:26 (2019).
  • (49) E. Torrontegui and J. J. Garcia-Ripoll, EPL 125, 30004 (2019).
  • (50) L. B. Kristensen, M. Degroote, P. Wittek, A. Aspuru-Guzik and N. T. Zinner, arXiv:1907.06269.
  • (51) N. Killoran, T. R. Bromley, J. M. Arrazola, M. Schuld, N. Quesada and S. Lloyd, Phys. Rev. Res. 1, 033063 (2019).
  • (52) S. Mangini, F. Tacchino, D. Gerace, C. Macchiavello and D. Bajoni, Mach. Learn.: Sci. Technol. 1 045008 (2020).
  • (53) D. Deutsch and R. Jozsa, Proc. R. Soc. Lond. A 439, 553 (1992).
  • (54) L. Grover, Proc. 28th Annual ACM Symposium on the Theory of Computing, 212 (1996).
  • (55) M. Rossi, M. Huber, D. Bruss and C. Macchiavello, New J. Phys. 15 113022 (2013).
  • (56) F. Rosenblatt, Tech. Rep. Inc. Report No. 85-460-1, Cornell Aeronautical Laboratory (1957).
  • (57) W. S. McCulloch and W. Pitts, Bull. Math. Biophys. 5, 115 (1943).
  • (58) X. Glorot, A. Bordes and Y. Bengio, Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics (AISTATS-11) 15: 315.
  • (59) M. Hein, J. Eisert, and H. J. Briegel, Phys. Rev. A 69, 062311 (2004).
  • (60) M. Hein, W. D, J. Eisert, R. Raussendorf, M. Van den Nest, H.-J. Briegel, "Entanglement in Graph States and its Applications", Proceedings of the International School of Physics "Enrico Fermi" on "Quantum Computers, Algorithms and Chaos".
  • (61) S. Anders and H. J. Briegel, Phys. Rev. A 73, 022334 (2006).
  • (62) R. Qu, J. Wang, Z.-S. Li and Y.-R. Bao, Phys. Rev. A 87, 022311 (2013).