betaFeedback

WorksPhysics and Astronomy

Quantum simulation of classical RCL circuits via complexification and Schrödingerization

Abstract

The decomplexification procedure establishes a mathematical equivalence between finite dimensional quantum dynamics and classical dynamics by mapping the complex quantum domain onto the real classical one. Its inverse process, complexification — which lifts a classical dynamics to an equivalent quantum formulation — is of great interest, particularly because it enables the quantum simulation of equations that are of classical relevance. In this way, one can prepare the solution of classical differential equations to be implemented using quantum computation tools. In the present work, we recall the decomplexification procedure and also discuss several distinct strategies for performing the complexification of classical equations, so as to obtain the corresponding quantum-equivalent dynamics.

Introduction

The simulation of dynamical processes is central to science and, in particular, to physics as it allows for a better understanding of the laws governing those processes. The development of quantum computers promises a revolution in this field. On the one hand, quantum computers, as anticipated by Yuri Manin [1] and shortly after by Richard Feynman [2] offer the possibility of surpassing the inherent difficulty to simulate quantum systems as the size of the system grows [3, 4, 5]. On the other hand, quantum computers are also candidates to boost up, in an unprecedented way, calculations that are nowadays performed by classical computers [6, 7].

A crucial ingredient behind both topics is understanding the relationship between quantum and classical dynamics. The proof of the mathematical equivalence between quantum and classical dynamics of systems of finite dimension [8] is based upon the decomplexification procedure [9, 10]. By means of this technique, one solves the difficulty in comparing both dynamics due to the fact that Quantum Mechanics is defined in a complex space, while Classical Mechanics lives in a real space. The decomplexification procedure of a complex vector space is valid because any complex vector space can be rewritten as a real vector space [11]. In doing this, one has to omit the multiplication of a vector by a complex number because only the product by real numbers is allowed.

The decomplexification procedure, as well as its inverse one, complexification, has a precise mathematical meaning. Both procedures are briefly presented in the next section and related to the problem of equivalence between their corresponding dynamics.

The equivalence just described has two main consequences. On the one hand it provides the possibility of establishing a connection between quantum systems and classical oscillators, in particular with electric resonant circuits; on the other hand, complexification allows quantum simulations of classical equations. Therefore, this analysis leads to the possibility of simulating in the laboratory (or numerically) the time evolution of equivalent quantum systems [12, 13]. Moreover, inversely one may apply quantum computing technology to simulate classical systems.

The next section is devoted to a presentation of the complexification and decomplexification procedures. There, two cases are treated in detail, to fix ideas and to show the potentiality of both procedures. In section III we include, for completeness and for the scope of comparison, a recently proposed method [14] for "Schrödingerisation" of classical differential equations, which certainly implies the complexification of the original ones. This method appears very useful for computing solutions of the classical equations in the quantum domain. We end by drawing some conclusions of our analysis.

Decomplexification and complexification procedures

We next present a brief mathematical description of the decomplexification and complexification processes used in the analysis of differential equations to treat those cases where a real equation has complex eigenvalues. These cases are of particular interest because the real space is not enough to account for the equation and its solutions.

We first summarize the decomplexification formalism, which defines a classical analog of a quantum system, to establish the connection between quantum and classical dynamics. This can be ultimately presented as an analog description of quantum systems in terms of oscillatory electric circuits.

The decomplexification procedure [9] of quantum Hamiltonians is presented here for the simple case of a 2×22 \times2 Hamiltonian just to fix ideas, but this procedure works for any Hamiltonian of finite dimension. The starting Schrödinger equation is

i∂∂tΨ=HΨ.(1)i \frac{\partial}{\partial t}\Psi= H\Psi. \tag*{(1)}

where we use ℏ=1\hbar= 1. The Hamiltonian HH is a hermitian 2×22 \times2 matrix, and Ψ\Psi is a two component vector.

Using the notation

Re⁡(Ψi)=xi ;Im⁡(Ψi)=yi ;i=1,2,\operatorname{Re}(\Psi_i) = x_i \ ;\quad\operatorname{Im}(\Psi_i) = y_i \ ;\quad i = 1,2,
Re⁡(Hij)=fij ;Im⁡(Hij)=gij ;i,j=1,2,(2)\operatorname{Re}(H_{ij}) = f_{ij} \ ;\quad\operatorname{Im}(H_{ij}) = g_{ij} \ ;\quad i,j = 1,2, \tag*{(2)}

after separating real and imaginary parts and using matrix notation we get for the Schrödinger equation

\begin{bmatrix} \dot{x}_1 \\ \dot{y}_1 \\ \dot{x}_2 \\ \dot{y}_2 \end{bmatrix} = \begin{bmatrix} g_{11} & f_{11} & g_{12} & f_{12} \\ -f_{11} & g_{11} & -f_{12} & g_{12} \\ g_{21} & f_{21} & g_{22} & f_{22} \\ -f_{21} & g_{21} & -f_{22} & g_{22} \end{bmatrix} \begin{bmatrix} x_1 \\ y_1 \\ x_2 \\ y_2 \end{bmatrix}. \tag*{(3)}\end{bmatrix}

Defining

A=[g11g12g21g22] ;B=[f11f12f21f22](4)A=\begin{bmatrix} g_{11} & g_{12} \\ g_{21} & g_{22} \end{bmatrix} \ ;\qquad B=\begin{bmatrix} f_{11} & f_{12} \\ f_{21} & f_{22} \end{bmatrix} \tag*{(4)}

and

x=[x1x2] ;y=[y1y2](5)x=\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} \ ;\qquad y=\begin{bmatrix} y_1 \\ y_2 \end{bmatrix} \tag*{(5)}

the system of first order differential equations that has equivalent mathematical information as the starting quantum one becomes

x˙=Ax+Byy˙=Ay−Bx(6)\begin{aligned} \dot{x} &= Ax+By \\ \dot{y} &= Ay-Bx \tag*{(6)} \end{aligned}

These equations can be transformed into two separated second order differential equations for xx and yy that can immediately be identified with classical oscillators, namely

x¨=(A+BAB−1)x˙−(BAB−1A+BB)x,(7)\ddot{x}=(A+BAB^{-1})\dot{x}-(BAB^{-1}A+BB)x, \tag*{(7)}

and an entirely similar one for yy.

In Eq. (7), the matrix AA appearing in the coefficient of the first derivative of xx does it with the same sign as the second term of the same coefficient. This allows to describe in the formalism the dissipative part of the dynamics generated by an imaginary part of an effective Hamiltonian, thus making it possible to study decaying states. Conversely, the dynamics of a PT-symmetric Hamiltonian could be described if both terms had opposite signs.

As mentioned earlier, the above procedure can be formally extended to Hamiltonians of finite arbitrary dimension [8].

We now provide elements for introducing complexification, the opposite procedure to decomplexification. Namely, to build up the Hamiltonian HH or the complex differential equation of Schrödinger type, from the knowledge of what should be the equivalent classical dynamics.

We present first a procedure that starts from the set of differential equations of second order under consideration (in the example that follows, the equation is related to electric oscillators). These equations can be transformed, in the standard way, into a set of first order differential equations that are written in matrix notation. The next step is to find the eigenvalues of this matrix characterizing the system. Notice that this real matrix, the state matrix, can have real or complex conjugate eigenvalues. Since these eigenvalues can be complex, from a mathematical point of view, one has to extend the differential equation from the corresponding real space to a complex space. A way to do this is to find the matrix that diagonalizes the state matrix. Using the diagonalizing matrix two complex conjugate equations are generated, which show how one can go from a R2nR^{2n} space to a CnC^n space. By taking one of them one can construct a Schrödinger type equation simply by multiplying the equation by ii. In this way, one obtains a quantum equivalent Hamiltonian. This proposal, involving the solution of algebraic equations, although it can be generalized for larger dimensions, implies the solution of complex algebraic equations that in most cases have to be treated by numerical methods.

To fix ideas, we present a couple of examples. Let us first consider a very simple case of the differential equation of only one classical damped oscillator, namely, a resonant circuit that satisfies

d2dt2V+2γddtV+ω2V=0(8)\frac{d^2}{dt^2}V + 2\gamma\frac{d}{dt}V + \omega^2 V = 0 \tag*{(8)}

with some initial conditions, non relevant for the moment. This equation can be transformed into a system of first order differential equations as follows. Calling

x=V ;y=dVdtx = V \ ;\quad y = \frac{dV}{dt}

equation (8) becomes

ddt[xy]=[01−ω2−2γ][xy](9)\frac{d}{dt} \begin{bmatrix} x\\ y \end{bmatrix} = \begin{bmatrix} 0 & 1\\ -\omega^2 & -2\gamma \end{bmatrix} \begin{bmatrix} x\\ y \end{bmatrix} \tag*{(9)}

which has the form

ddt(x⃗)=Ax⃗(10)\frac{d}{dt}\left(\vec{x}\right) = A\vec{x} \tag*{(10)}

where, in general, the state vector x⃗\vec{x} has nn components (2 in this example) in a real space (RnR^n) and AA is a (n×n)(n \times n) matrix with real elements (2 × 2 in this case)

For the example under consideration, the state vector is

[xy]\begin{bmatrix} x\\ y \end{bmatrix}

and

A=[01−ω2−2γ].(11)A = \begin{bmatrix} 0 & 1\\ -\omega^2 & -2\gamma \end{bmatrix}. \tag*{(11)}

The next step is to find the eigenvalues of AA, which are

λ1=−γ+iω2−γ2 ;λ2=−γ−iω2−γ2(12)\lambda_{1}=-\gamma+i\sqrt{\omega^{2}-\gamma^{2}}\ ;\quad\lambda_{2}=-\gamma-i\sqrt{\omega^{2}-\gamma^{2}} \tag*{(12)}

clearly being complex conjugate of each other when ω2≥γ2\omega^{2}\ge\gamma^{2}. Then, these eigenvalues escape from the real space, and the same happens with the eigenstates of AA

\begin{bmatrix} \lambda_{1} \\ \omega^{2} \end{bmatrix}\ ; \tag*{(13)}\end{bmatrix}
\begin{bmatrix} \lambda_{2} \\ \omega^{2} \end{bmatrix}\ . \tag*{(14)}\end{bmatrix}

Consequently, one has to extend the differential equation from the real space R2\mathbb{R}^{2} to the complex space (C2\mathbb{C}^{2}, in this case). To do this it is enough to find the matrix that diagonalizes AA, namely

S=12ω2−γ2[−iω2iλ2iω2−iλ1](15)S=\frac{1}{2\sqrt{\omega^{2}-\gamma^{2}}} \begin{bmatrix} -i\omega^{2} & i\lambda_{2}\\ i\omega^{2} & -i\lambda_{1} \end{bmatrix} \tag*{(15)}

Then,

ddtS[xy]=S[01−ω2−2γ]S−1S[xy](16)\frac{d}{dt}S\begin{bmatrix}x\\y\end{bmatrix} =S\begin{bmatrix}0&1\\-\omega^{2}&-2\gamma\end{bmatrix}S^{-1}S\begin{bmatrix}x\\y\end{bmatrix} \tag*{(16)}

which, after introducing the complex eigenstates, gives rise to

S[xy]=[−iω2iλ2iω2−iλ1][xy](17)S\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix} -i\omega^{2} & i\lambda_{2}\\ i\omega^{2} & -i\lambda_{1} \end{bmatrix} \begin{bmatrix}x\\y\end{bmatrix} \tag*{(17)}
=[y(1+ω2−γ2)−i(γy+xω2)y(1+ω2−γ2)+i(γy+xω2)]=[zz∗].(18)= \begin{bmatrix} y\left(1+\sqrt{\omega^{2}-\gamma^{2}}\right)-i\left(\gamma y+x\omega^{2}\right)\\ y\left(1+\sqrt{\omega^{2}-\gamma^{2}}\right)+i\left(\gamma y+x\omega^{2}\right) \end{bmatrix} = \begin{bmatrix}z\\z^{*}\end{bmatrix}. \tag*{(18)}

Being complex conjugate of each other, one can proceed taking into account only one of them and one has complexified the real equation going from R2\mathbb{R}^{2} to the complex space C1\mathbb{C}^{1}. The equation now is

ddtz=(−γ+iω2−γ2)z=λ1z,(19)\frac{d}{dt}z=\left(-\gamma+i\sqrt{\omega^{2}-\gamma^{2}}\right)z=\lambda_{1}z, \tag*{(19)}

which can be read as a Schrödinger equation with the, as expected, non hermitian Hamiltonian

H=iλ1(20)H=i\lambda_{1} \tag*{(20)}

a complex number in this trivial case. Now we present in detail the case of complexification of the differential equations that correspond to two PTPT-symmetric resonant circuits, coupled by gyrator, represented in Figure 1, namely

Figure 1. Gyrator-coupled oscillator circuit.

V¨1−γV˙1+ω2V1+γgV˙2=0(21)\ddot{V}_1-\gamma\dot{V}_1+\omega^2V_1+\gamma_g\dot{V}_2=0 \tag*{(21)}
V¨2+γV˙2+ω2V2−γgV˙1=0,(22)\ddot{V}_2+\gamma\dot{V}_2+\omega^2V_2-\gamma_g\dot{V}_1=0, \tag*{(22)}

where

ω02=1LC ;γ=1RC ;γg=GgC.(23)\omega_0^2=\frac{1}{LC}\ ;\quad\gamma=\frac{1}{RC}\ ;\quad\gamma_g=\frac{G_g}{C}. \tag*{(23)}

Recall that a gyrator is a non-reciprocal passive element of two ports with a given conductance [15].

Calling as before xx and yy to the potentials and their derivatives, one gets

ddt[x1x2y1y2]=[00100001−ω20γγg0−ω2−γg−γ][x1x2y1y2]=A[x1x2y1y2],(24)\frac{d}{dt} \begin{bmatrix} x_1\\ x_2\\ y_1\\ y_2 \end{bmatrix} = \begin{bmatrix} 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1\\ -\omega^2 & 0 & \gamma& \gamma_g\\ 0 & -\omega^2 & -\gamma_g & -\gamma \end{bmatrix} \begin{bmatrix} x_1\\ x_2\\ y_1\\ y_2 \end{bmatrix} =A \begin{bmatrix} x_1\\ x_2\\ y_1\\ y_2 \end{bmatrix}, \tag*{(24)}

where the matrix AA has the characteristic polynomial

det⁡(A−XI)=X4+(−γ2+2ω2+γg2)X2+ω4(25)\det(A-XI)=X^4+(-\gamma^2+2\omega^2+\gamma_g^2)X^2+\omega^4 \tag*{(25)}

which can be written, by defining T=X2T=X^2, as

T2+(−γ2+2ω2+γg2)T+ω4,(26)T^2+(-\gamma^2+2\omega^2+\gamma_g^2)T+\omega^4, \tag*{(26)}

and has the eigenvalues

−λ1=12γ2−ω2−12γg2−12(γ2−γg2)(γ2−4ω2−γg2)−λ2=12γ2−ω2−12γg2+12(γ2−γg2)(γ2−4ω2−γg2)(27)\begin{aligned} -\lambda_1 &= \frac{1}{2}\gamma^2-\omega^2-\frac{1}{2}\gamma_g^2-\frac{1}{2}\sqrt{\left(\gamma^2-\gamma_g^2\right)\left(\gamma^2-4\omega^2-\gamma_g^2\right)}\\ -\lambda_2 &= \frac{1}{2}\gamma^2-\omega^2-\frac{1}{2}\gamma_g^2+\frac{1}{2}\sqrt{\left(\gamma^2-\gamma_g^2\right)\left(\gamma^2-4\omega^2-\gamma_g^2\right)} \tag*{(27)} \end{aligned}

To simplify the notation, one defines

a2=ω2−γ24+γg24,(28)a^2=\omega^2-\frac{\gamma^2}{4}+\frac{\gamma_g^2}{4}, \tag*{(28)}

and the eigenvalues can be written as

−λ1=−14(2a−γg2−γ2)2−λ2=−14(2a+γg2−γ2)2(29)\begin{aligned} -\lambda_1&=-\frac{1}{4}\left(2a-\sqrt{\gamma_g^2-\gamma^2}\right)^2\\ -\lambda_2&=-\frac{1}{4}\left(2a+\sqrt{\gamma_g^2-\gamma^2}\right)^2 \tag*{(29)} \end{aligned}

Finally, the four roots of the characteristic polynomial of AA are

λ1=i12(2a−γg2−γ2)λ2=i12(2a+γg2−γ2)λ3=λ1∗λ4=λ2∗(30)\begin{aligned} \lambda_1&=i\frac{1}{2}\left(2a-\sqrt{\gamma_g^2-\gamma^2}\right)\\ \lambda_2&=i\frac{1}{2}\left(2a+\sqrt{\gamma_g^2-\gamma^2}\right)\\ \lambda_3&=\lambda_1^*\\ \lambda_4&=\lambda_2^* \tag*{(30)} \end{aligned}

The corresponding eigenvectors are certainly complex conjugate of each other, and this allows one to restrict the space of states to the complex space C2C^2. Consequently, we write the complexified equation in a similar way that we presented for the case of only one circuit, restricting the analysis to

ddt[z1z2]=[i12(2a+γg2−γ2)00i12(2a−γg2−γ2)][z1z2],(31)\frac{d}{dt} \begin{bmatrix} z_1\\ z_2 \end{bmatrix} = \begin{bmatrix} i\frac{1}{2}\left(2a+\sqrt{\gamma_g^2-\gamma^2}\right) & 0\\ 0 & i\frac{1}{2}\left(2a-\sqrt{\gamma_g^2-\gamma^2}\right) \end{bmatrix} \begin{bmatrix} z_1\\ z_2 \end{bmatrix}, \tag*{(31)}

which, as before, can be seen as an equivalent Schrödinger equation with the Hamiltonian

H=[−12(2a+γg2−γ2)00−12(2a−γg2−γ2)].(32)H= \begin{bmatrix} -\frac{1}{2}\left(2a+\sqrt{\gamma_g^2-\gamma^2}\right) & 0\\ 0 & -\frac{1}{2}\left(2a-\sqrt{\gamma_g^2-\gamma^2}\right) \end{bmatrix}. \tag*{(32)}

This expression has successfully completed the complexification of the initial classical case. Just to make more clear the connection between the coupled classical circuits and the PTPT-symmetric conventional expression of the Hamiltonian, we next perform a similarity transformation.

To do so, let us start recalling the characteristic polynomial of the matrix HH

X2+2aX+a2+γ24−γg24.(33)X^2+2aX+a^2+\frac{\gamma^2}{4}-\frac{\gamma_g^2}{4}. \tag*{(33)}

Then, we can propose a general 2×22 \times2 matrix MM, so that it reproduces the same characteristic polynomial as above

M=[x1x3x4x2],(34)M = \begin{bmatrix} x_1 & x_3 \\ x_4 & x_2 \end{bmatrix}, \tag*{(34)}

and try to determine its parameters by taking into account that, for this general matrix, the characteristic polynomial is

X2+(−x1−x2)X+(x1x2−x3x4),(35)X^2 + (-x_1 - x_2)X + (x_1x_2 - x_3x_4), \tag*{(35)}

which allows one to identify its coefficients with those of Eq. (35)

(x1+x2)=−2a.(36)(x_1 + x_2) = -2a. \tag*{(36)}

One can choose

x1=−a−iγ4 ;x2=−a+iγ4.(37)x_1 = -a - i\frac{\gamma}{4} \ ; \quad x_2 = -a + i\frac{\gamma}{4}. \tag*{(37)}

On the other hand, from the independent term of the polynomial

a2+γ24−γg24=(x1x2−x3x4)=a2+γ2−x3x4(38)a^2 + \frac{\gamma^2}{4} - \frac{\gamma_g^2}{4} = (x_1x_2 - x_3x_4) = a^2 + \gamma^2 - x_3x_4 \tag*{(38)}

we get

γg2=x3x4,(39)\gamma_g^2 = x_3x_4, \tag*{(39)}

which is verified if

x3=iγg ;x4=−iγg.(40)x_3 = i\gamma_g \ ; \quad x_4 = -i\gamma_g. \tag*{(40)}

Finally, the similarity transformed Hamiltonian results in

H=[−a−iγiγg−iγg−a+iγ],(41)H = \begin{bmatrix} -a - i\gamma& i\gamma_g \\ -i\gamma_g & -a + i\gamma\end{bmatrix}, \tag*{(41)}

which clearly displays the usual form of a PTPT-symmetric Hamiltonian

From the above examples, it is clear how to generalize the complexification procedure to a general finite dimension. Certainly, the required algebraic manipulations could be quite cumbersome, so that a more general approach is needed for a larger electric circuit. Such approach is addressed in the following section.

Quantum simulation of differential equations

The examples discussed in the previous section can be brought to the more general arena of simulating a system of differential equations using quantum algorithms on quantum hardware. There have been several proposals, with different complexity reduction, as compared to classical methods. For a recent review, we refer the reader to [16]. A specific quantum algorithm has been introduced to simulate the dynamics of electrical circuits consisting of resistors, inductors, and capacitors along with power sources, which provides an exponential speed-up over classical algorithms [17].

The complexification method offers a way to undergo this task, by mapping the original real system into a Schrödinger equation. However, the procedure quickly becomes cumbersome and impractical as the size of the system is increased, and one would like to design a more straightforward path that allows for such direct mapping. Here, we wish to emphasize a method that aligns well with the ideas developed in previous sections, in the sense that it aims for the most direct possible conversion of a system of differential equations into an evolution governed by the Schrödinger equation, using a Hamiltonian that includes an additional variable. Indeed, the authors describe the method as a process of "Schrödingerization” [14]. This method ends with equations that can be handled even in involved cases by numerical simulations, an has been applied to finding the numerical solution in some practical cases, such as the heat, convection, Fokker-Planck, linear Boltzmann, and Black-Scholes equations [18]. Here we relate this procedure to the problem of simulating an electric circuit, which provides an additional test for the Schrödingerization method.

We briefly summarize the Schrödingerization procedure. Let us consider the following equation

∂∂t∣u(t)⟩=A∣u(t)⟩(42)\frac{\partial}{\partial t}|u(t)\rangle= A|u(t)\rangle \tag*{(42)}

where ∣u(t)⟩|u(t)\rangle is a vector on an “internal” NN-dimensional Hilbert space HI\mathcal{H}_I, and AA is a N×NN \times N matrix. The Schrödingerization first decomposes it into the Hermitian and anti-Hermitian parts:

A=H1+iH2,H1=A+A†2,H2=A−A†2i(43)A = H_1 + iH_2,\qquad H_1 = \frac{A + A^\dagger}{2},\qquad H_2 = \frac{A - A^\dagger}{2i} \tag*{(43)}

It next defines a warp transformation

∣ω(p,t)⟩=e−ip∣u(t)⟩(44)|\omega(p,t)\rangle= e^{-ip}|u(t)\rangle \tag*{(44)}

The new variable pp has to be interpreted as a new degree of freedom associated to an extra Hilbert space Hp\mathcal{H}_p, so that ∣ω(p,t)⟩|\omega(p,t)\rangle belongs to the composed space H=HI⊗HpH=\mathcal{H}_I\otimes\mathcal{H}_p. For the transformed vector one readily obtains

i∂∂t∣ω(p,t)⟩=H1(−i∂∂p)∣ω(p,t)⟩−H2∣ω(p,t)⟩.(45)i\frac{\partial}{\partial t}|\omega(p,t)\rangle=H_1\left(-i\frac{\partial}{\partial p}\right)|\omega(p,t)\rangle-H_2|\omega(p,t)\rangle. \tag*{(45)}

Notice that, in the above equation, the derivative in pp can be interpreted as a momentum operator Pp=−i∂∂pP_p=-i\frac{\partial}{\partial p} acting on the Hp\mathcal{H}_p space. The main point is that Eq. (45) describes an unitary evolution, even if the initial (42) was not. In the following subsections we discuss how Eq. (45) can be solved on a quantum computer for the case of just one simple oscillator, although it can be easily generalized to more complicated circuits.

Quantum circuit implementation

For an implementation on a quantum computer, the auxiliary variable pp has to be represented by a finite-dimensional quantum register. We truncate the auxiliary domain to the finite interval

p∈[−L/2,L/2),(46)p\in[-L/2,L/2), \tag*{(46)}

and discretize it using

Np=2np(47)N_p=2^{n_p} \tag*{(47)}

grid points. The grid points are defined as

pj=−L2+jΔp,j=0,…,Np−1,(48)p_j=-\frac{L}{2}+j\Delta p,\qquad j=0,\ldots,N_p-1, \tag*{(48)}

with

Δp=LNp.(49)\Delta p=\frac{L}{N_p}. \tag*{(49)}

The auxiliary Hilbert space is then spanned by the computational basis states

∣j⟩p,j=0,…,Np−1,(50)|j\rangle_p,\qquad j=0,\ldots,N_p-1, \tag*{(50)}

which encode the discretized values pjp_j.

An internal space of dimension NN requires ⌈log⁡2N⌉\lceil\log_{2} N \rceil qubits, while the auxiliary register requires np=log⁡2Npn_p = \log_{2} N_p qubits.

In the discretized representation, the enlarged state is written as

∣ω(t)⟩=∑α=0N−1∑j=0Np−1ωα,j(t)∣α⟩∣j⟩p.(51)\lvert\omega(t) \rangle= \sum_{\alpha=0}^{N-1} \sum_{j=0}^{N_p-1} \omega_{\alpha,j}(t) \lvert\alpha\rangle\lvert j \rangle_p. \tag*{(51)}

Here, ∣α⟩\lvert\alpha\rangle labels the internal degrees of freedom, while ∣j⟩p\lvert j \rangle_p labels the auxiliary coordinate.

On the finite grid, PpP_p is diagonal in the discrete Fourier basis, with momentum values

kn=2πLνn,νn=0,1,…,Np2−1,−Np2,…,−1,(52)k_n = \frac{2\pi}{L}\nu_n,\qquad\nu_n = 0,1,\ldots,\frac{N_p}{2}-1,-\frac{N_p}{2},\ldots,-1, \tag*{(52)}

for even NpN_p. Defining

Dk=diag⁡(kn),(53)D_k = \operatorname{diag}(k_n), \tag*{(53)}

the momentum operator can be written, using the QFT convention adopted in PennyLane [19], as

Pp=QFTNpDkQFTNp†,(54)P_p = \mathrm{QFT}_{N_p}D_k\mathrm{QFT}_{N_p}^{\dagger}, \tag*{(54)}

or equivalently,

QFTNp†PpQFTNp=Dk.(55)\mathrm{QFT}_{N_p}^{\dagger}P_p\mathrm{QFT}_{N_p} = D_k. \tag*{(55)}

Therefore, QFTNp†\mathrm{QFT}_{N_p}^{\dagger} transforms the auxiliary register from the pp basis to the momentum basis, where the momentum operator is diagonal. After the evolution, QFTNp\mathrm{QFT}_{N_p} transforms the register back to the pp basis.

Using this representation, the Schrödingerized Hamiltonian

HSch=H1⊗Pp−H2⊗Ip(56)H_{\mathrm{Sch}} = H_1 \otimes P_p - H_2 \otimes I_p \tag*{(56)}

can be implemented through the equivalent momentum-basis Hamiltonian

Hmom=H1⊗Dk−H2⊗Ip.(57)H_{\mathrm{mom}} = H_1 \otimes D_k - H_2 \otimes I_p. \tag*{(57)}

The complete time evolution is then given by

∣ω(t)⟩=(I⊗QFTNp)e−iHmomt(I⊗QFTNp†)∣ω(0)⟩.(58)\lvert\omega(t) \rangle= \left(I \otimes\mathrm{QFT}_{N_p}\right)e^{-iH_{\mathrm{mom}}t}\left(I \otimes\mathrm{QFT}_{N_p}^{\dagger}\right)\lvert\omega(0) \rangle. \tag*{(58)}

Thus, the Fourier transformation is performed coherently on the auxiliary quantum register through the QFT rather than as a classical preprocessing step.

Single-oscillator implementation. We now apply the Schrödingerization procedure to the single damped oscillator introduced in the previous section, see Eq. (9).

For the numerical example considered here, we take

ω=2,γ=1,(59)\omega= 2,\qquad\gamma= 1, \tag*{(59)}

so that

A=[01−4−2].(60)A = \begin{bmatrix} 0 & 1 \\ -4 & -2 \end{bmatrix}. \tag*{(60)}

The eigenvalues of AA are −1±i3-1 \pm i\sqrt{3}, corresponding to a stable underdamped oscillator.

The exact classical solution used for comparison is

uexact(t)=eAtu0.(61)u_{\mathrm{exact}}(t) = e^{At}u_0. \tag*{(61)}

With initial condition

u0=[10],(62)u_0 = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, \tag*{(62)}

one readily obtains uexact(t)=e−t(sin⁡3t3+cos⁡3t,−4sin⁡3t3)Tu_{\mathrm{exact}}(t) = e^{-t}\left(\frac{\sin\sqrt{3}t}{\sqrt{3}}+\cos\sqrt{3}t,-\frac{4\sin\sqrt{3}t}{\sqrt{3}}\right)^{T}.

The decomposition defined in Eq. (43) gives

H1=[0−32−32−2],(63)H_1 = \begin{bmatrix} 0 & -\frac{3}{2} \\ -\frac{3}{2} & -2 \end{bmatrix}, \tag*{(63)}

and

H2=[0−52i52i0].(64)H_2 = \begin{bmatrix} 0 & -\frac{5}{2}i \\ \frac{5}{2}i & 0 \end{bmatrix}. \tag*{(64)}

Since the internal space has dimension two, a single qubit is sufficient to encode the oscillator variables.

The lifted initial condition is chosen as

∣ω(0)⟩=∣u0⟩⊗∣g⟩(65)\lvert\omega(0)\rangle= \lvert u_0\rangle\otimes\lvert g\rangle \tag*{(65)}

where the auxiliary state ∣g⟩\lvert g\rangle encodes the symmetrized profile

g(pj)=e−∣pj∣.(66)g(p_j) = e^{-\lvert p_j\rvert}. \tag*{(66)}

Since the state must be normalized for quantum state preparation, we define

∣g⟩=1Ng∑j=0Np−1e−∣pj∣∣j⟩p(67)\lvert g\rangle= \frac{1}{\mathcal{N}_g}\sum_{j=0}^{N_p-1}e^{-\lvert p_j\rvert}\lvert j\rangle_p \tag*{(67)}

where

Ng=(∑j=0Np−1e−2∣pj∣)1/2.(68)\mathcal{N}_g = \left(\sum_{j=0}^{N_p-1}e^{-2\lvert p_j\rvert}\right)^{1/2}. \tag*{(68)}

Choice of the auxiliary domain and recovery. The auxiliary domain must be sufficiently large for two reasons. First, the recovery point must lie inside the discretized interval. Second, the artificial periodic boundary introduced by the Fourier representation must be sufficiently far from the relevant region so that the auxiliary profile has decayed to a negligible value.

Following the Schrödingerization prescription, the original solution can be recovered from

∣u(t)⟩=ep∣ω(p,t)⟩(69)\lvert u(t)\rangle= e^p\lvert\omega(p,t)\rangle \tag*{(69)}

provided that pp is chosen within the appropriate recovery region. Notice that, in this example, the eigenvalues of H1H_1 are λ1=−(1+132)≃−2.80278\lambda_1=-\left(1+\frac{\sqrt{13}}{2}\right)\simeq-2.80278, and λ2=12(13−2)≃0.802776\lambda_2=\frac{1}{2}\left(\sqrt{13}-2\right)\simeq0.802776. As discussed in [20], the existence of non-negative eigenvalues of H1H_1 requires special attention for the recovery process to work. In our implementation, a fixed grid point satisfying

pj≥p⋄(70)p_j \ge p^\diamond \tag*{(70)}

is used for all evolution times, where

p⋄=λmax⁡+(H1)T.(71)p^\diamond= \lambda_{\max}^{+}(H_1)T. \tag*{(71)}

Here, TT denotes the final evolution time and λmax⁡+(H1)\lambda_{\max}^{+}(H_1) is the largest positive eigenvalue of H1H_1. For the oscillator considered here,

λmax⁡+(H1)=λ2.(72)\lambda_{\max}^{+}(H_1)=\lambda_2. \tag*{(72)}

For a total evolution time

T=6,(73)T=6, \tag*{(73)}

the corresponding recovery threshold is

p⋄≃4.8167.(74)p^\diamond\simeq4.8167. \tag*{(74)}

The length of the auxiliary interval is chosen such that the exponentially decaying auxiliary profile is negligible at the boundaries. In the numerical implementation, LL is determined from the condition

e−L/2+λmax⁡+(H1)T≃ε,(75)e^{-L/2+\lambda_{\max}^{+}(H_1)T}\simeq\varepsilon, \tag*{(75)}

where ε\varepsilon is a prescribed numerical tolerance. We use

ε=10−6.(76)\varepsilon=10^{-6}. \tag*{(76)}

This choice keeps the recovery region well inside the discretized interval while suppressing the influence of the artificial periodic boundary.

After the time evolution, the amplitudes of the Schrödingerized state are reshaped into the matrix

W(t)=[ωα,j(t)]∈C2×Np,(77)W(t)=[\omega_{\alpha,j}(t)]\in\mathbb{C}^{2\times N_p}, \tag*{(77)}

where the first index labels the internal oscillator variables and the second index labels the auxiliary grid points. The recovered solution is then obtained from the column associated with a grid point in the recovery region,

urec(t)=W:,j(t)g(pj),pj≥p⋄.(78)u_{\mathrm{rec}}(t)=\frac{W_{:,j}(t)}{g(p_j)},\qquad p_j\geq p^\diamond. \tag*{(78)}

For positive pjp_j, this procedure corresponds to undoing the exponential warp factor used in the construction of the Schrödingerized state, while also accounting for the normalization introduced in the preparation of the auxiliary state.

Circuit implementation. The circuit implementation follows directly from Eq. (58). In PennyLane, the corresponding sequence is

StatePrep  ⟶  QFT†  ⟶  e−iHmomt  ⟶  QFT.(79)\mathrm{StatePrep} \;\longrightarrow\; \mathrm{QFT}^{\dagger} \;\longrightarrow\; e^{-iH_{\mathrm{mom}}t} \;\longrightarrow\; \mathrm{QFT}. \tag*{(79)}

For the numerical simulations presented below, we use Np=2048N_p = 2048, corresponding to an auxiliary register of np=11n_p = 11 qubits. Together with the single qubit encoding the oscillator, the complete state is represented using 12 qubits. Displaying the corresponding full circuit would be unnecessarily cumbersome. Therefore, Figure 2 illustrates the same construction for Np=8N_p = 8, which requires three auxiliary qubits and gives a four-qubit circuit in total. Increasing NpN_p changes the size of the auxiliary register but not the structure of the algorithm.

Figure 2. Schematic quantum circuit for the Schrödingerization of the single damped oscillator using Np=8N_p = 8. The first qubit encodes the two-dimensional oscillator state, while the remaining three qubits encode the auxiliary variable pp. The initial state ∣u0⟩⊗∣g⟩\lvert u_0\rangle\otimes\lvert g\rangle is prepared coherently, followed by an inverse QFT on the auxiliary register, evolution under the momentum-basis Hamiltonian HmomH_{\mathrm{mom}}, and a final QFT that transforms the auxiliary register back to the pp basis. The numerical simulations use Np=2048N_p = 2048, corresponding to 11 auxiliary qubits and 12 qubits in total; the circuit shown here illustrates the analogous structure for a smaller auxiliary register.

Implementation summary. The complete quantum implementation can therefore be summarized as follows:

  1. The original differential equation is written in first-order form,

ddtu(t)=Au(t),(80)\frac{d}{dt}u(t) = Au(t), \tag*{(80)}

and its generator is decomposed as A=H1+iH2A = H_1 + iH_2.

  1. The auxiliary coordinate pp is discretized using Np=2npN_p = 2^{n_p} grid points and encoded in an npn_p-qubit register.

  1. The initial state ∣u0⟩⊗∣g⟩|u_0\rangle\otimes|g\rangle is prepared, where ∣g⟩|g\rangle encodes the normalized auxiliary profile e−∣p∣e^{-|p|}.

  1. An inverse QFT is applied to the auxiliary register to transform the state from the pp basis to the momentum basis.

  1. The enlarged state evolved under the Hermitian momentum-basis Hamiltonian

Hmom=H1⊗Dk−H2⊗Ip.(81)H_{\mathrm{mom}} = H_1 \otimes D_k - H_2 \otimes I_p. \tag*{(81)}
  1. A QFT is applied to transform the auxiliary register back to the pp basis.

  1. The original solution is reconstructed from a grid point satisfying pj≥p⋄p_j \ge p^\diamond using Eq. (78).

Numerical results

To assess the accuracy of the quantum implementation, the reconstructed solution is compared with the exact classical evolution. We consider separately the two components x(t)x(t) and y(t)=x˙(t)y(t) = \dot{x}(t) and, in addition, evaluate the normalized direction error

ϵdir(t)=∥uexact(t)∥uexact(t)∥−urec(t)∥urec(t)∥∥2.(82)\epsilon_{\mathrm{dir}}(t) = \left\lVert\frac{u_{\mathrm{exact}}(t)}{\lVert u_{\mathrm{exact}}(t)\rVert} - \frac{u_{\mathrm{rec}}(t)}{\lVert u_{\mathrm{rec}}(t)\rVert} \right\rVert_2. \tag*{(82)}

Figure 3 shows the numerical results obtained for the single damped oscillator using Np=2048N_p = 2048. The left and central panels compare the exact classical dynamics with the solution recovered from the Schrödingerized evolution for x(t)x(t) and y(t)y(t), respectively. In both cases, the reconstructed solution closely follows the exact evolution, with the two curves being practically indistinguishable over most of the simulated time interval. In particular, the method accurately reproduces both the oscillatory behavior and the exponential damping of the original system.

Figure 3. Numerical simulation of the damped harmonic oscillator using the Schrödingerization procedure for ω=2\omega= 2, γ=1\gamma= 1, and u0=(1,0)Tu_0 = (1,0)^{T}, with Np=2048N_p = 2048. The left and central panels compare the reconstructed Schrödingerized dynamics with the exact classical solution for x(t)x(t) and y(t)=x˙(t)y(t) = \dot{x}(t), respectively, showing very good agreement over most of the simulated time interval. The right panel shows the normalized direction error, which remains small during the initial and intermediate evolution and increases at late times, when the oscillator amplitudes have strongly decayed and the recovery becomes more sensitive to numerical errors.

Small deviations become visible only at late evolution times, when the amplitudes of both components have already decayed to values close to zero. The same behavior is reflected in the normalized direction error shown in the right panel. The error remains small throughout the initial and intermediate stages of the evolution and grows appreciably only towards the end of the simulation.

The increase of the error at late times can be understood from the recovery procedure. Since H1H_1 has a positive eigenvalue, the solution must be reconstructed at a positive value pj≥p∘p_j \ge p^{\circ}. Recovery involves division by the exponentially decaying auxiliary profile g(pj)g(p_j), or equivalently multiplication by an exponentially increasing factor. Consequently, small discretization and Fourier errors in the Schrödingerized state can be amplified during the reconstruction. This effect becomes particularly relevant at late times, when the physical amplitudes of the damped oscillator are already very small.

Despite this increased numerical sensitivity in the late-time regime, the results show very good agreement between the reconstructed and exact solutions over most of the evolution, demonstrating that the QFT-based Schrödingerization implementation successfully reproduces the classical dynamics of the damped oscillator.

Conclusions

Rephrasing classical differential equations in a way that can be directly approached using a quantum hardware is a subject of paramount interest, as it can be applied to many classical systems in an efficient way. In recent years, there has been a large effort in this direction. For a recent review, we refer the reader to [16].

In this paper, we first addressed the above goal as a general complexification procedure, that connects a classical dynamics with an equivalent quantum one. To illustrate this procedure, we discuss two examples of classical differential equations related to electric circuits that can be exactly solved. However, the complexification method becomes rapidly untractable as the size of the circuit increases, so one has to find an alternative. Among the ones suggested in the literature, we find very appealing the Schrödingerization procedure [14, 18], as it straightforwardly maps the initial classical system of equations into a quantum system which is governed by a Schrödinger equation, by adding an extra degree of freedom, which can be treated as a momentum extra space via a QFT. Given this important connection, we have explored its performance for the case of a simple oscillator, provided that some care is taken for the treatment of the momentum variable. When this done, we find a good agreement with the exact solution. We think that QFT-based Schrödingerization procedure appears to be a promising way for quantum computing tools to be used in solving classical differential equations.

Acknowledgments

A.P. received support through Project No. PID2023-152724NA-I00, with funding from MCIU/AEI/10.13039/501100011033 and FSE+, Generalitat Valenciana Grant No. CIPROM/2022/66, the Severo Ochoa Grant No. CEX2023-001292-S, the Ministry of Economic Affairs and Digital Transformation of the Spanish Government through the QUANTUM ENIA project QUANTUM SPAIN, and the European Union through the Recovery, Transformation and Resilience Plan, NextGenerationEU, within the framework of the Digital Spain 2026 Agenda, and the CSIC Interdisciplinary Thematic Platform on Quantum Technologies. This project also received funding from the European Union’s Horizon 2020 research and innovation program under Grant Agreement CaLIGOLA No. MSCA-2021-SE-01-101086123. CGC warmly acknowledges the hospitality of the Departamento de Física Teórica, Universidad de Valencia, under Grant Agreement CaLIGOLA No. MSCA-2021-SE-01-101086123, where part of this work was discussed. RGL is funded by the grant CIACIF/2021/136 from Generalitat Valenciana.

References

  1. [1]Y. I. Manin, Vychislimoe i nevychislimoe (Sov.Radio, Moscow, 1980), URL https://web.archive.org/web/20130510173823/http://publ.lib.ru/ARCHIVES/M/MANIN_Yuriy_Ivanovich/Manin_Yu.I._Vychislimoe_i_nevychislimoe.(1980).
  2. [2]R. P. Feynman, International Journal of Theoretical Physics 21, 467 (1982), ISSN 1572-9575, URL https://doi.org/10.1007/BF02650179.
  3. [3]J. I. Cirac and P. Zoller, Nature Physics 8, 264 (2012), ISSN 1745-2481, URL https://doi.org/10.1038/nphys2275.
  4. [4]Y. Zhang, X. Zhang, J. Sun, H. Lin, Y. Huang, D. Lv, and X. Yuan, WIREs Computational Molecular Science 15, e70020 (2025), e70020 CMS-1125.R1, https://wires.onlinelibrary.wiley.com/doi/pdf/10.1002/wcms.70020, URL https://wires.onlinelibrary.wiley.com/doi/abs/10.1002/wcms.70020.
  5. [5]A. Miessen, Digital quantum simulation of many-body systems: Making the most of intermediate-scale, noisy quantum computers (2025), 2508.21504, URL https://arxiv.org/abs/2508.21504.
  6. [6]I. Joseph, Phys. Rev. Res. 2, 043102 (2020), URL https://link.aps.org/doi/10.1103/PhysRevResearch.2.043102.DOI
  7. [7]F. Tennie, S. Laizet, S. Lloyd, and L. Magri, Nature Reviews Physics 7, 220 (2025), ISSN 2522-5820, URL https://doi.org/10.1038/s42254-024-00799-w.
  8. [8]M. Caruso, H. Fanchiotti, C. A. García Canal, M. Mayosky, and A. Veiga, Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 472, 20160615 (2016), https://royalsocietypublishing.org/doi/pdf/10.1098/rspa.2016.0615, URL https://royalsocietypublishing.org/doi/abs/10.1098/rspa.2016.0615.
  9. [9]V. I. Arnold, Geometrical Methods in the Theory of Ordinary Differential Equations, vol. 250 of Grundlehren der mathematischen Wissenschaften (Springer New York, 2012), 2nd ed., ISBN 9781461210375, translated by J. Szűcs.
  10. [10]V. I. Arnold, Ordinary Differential Equations (Springer-Verlag, Berlin, Heidelberg, 1992), 3rd ed., ISBN 978-3-540-34563-3, URL https://link.springer.com/book/9783540345633.
  11. [11]S. Treil, Linear Algebra Done Wrong (Flooved.com on behalf of the author, 2011), URL https://archive.org/details/flooved3458.
  12. [12]H. Fanchiotti, C. A. García Canal, M. Mayosky, A. Veiga, and V. Vento, American Journal of Physics 90, 430 (2022), ISSN 0002-9505, https://pubs.aip.org/aapt/ajp/article-pdf/90/6/430/20100684/430_1_5.0081149.pdf, URL https://doi.org/10.1119/5.0081149.
  13. [13]H. Fanchiotti, C. A. García Canal, M. Mayosky, A. Veiga, and V. Vento, Brazilian Journal of Physics 53, 143 (2023), ISSN 1678-4448, URL https://doi.org/10.1007/s13538-023-01350-5.
  14. [14]S. Jin, N. Liu, and Y. Yu, Phys. Rev. Lett. 133, 230602 (2024), URL https://link.aps.org/doi/10.1103/PhysRevLett.133.230602.DOI
  15. [15]B. D. Tellegen, Philips Res. Rep 3, 81 (1948).
  16. [16]O. M. Raisuddin and S. De, A review of quantum scientific computing algorithms for engineering problems (2024), 2408.13943, URL https://arxiv.org/abs/2408.13943.
  17. [17]A. Dutt, A. Chowdhury, K. Temme, and H. Krovi, Simulating dynamics of rlc circuits with a quantum differential-algebraic equations solver (2026), 2604.26945, URL https://arxiv.org/abs/2604.26945.
  18. [18]S. Jin, N. Liu, and Y. Yu, Phys. Rev. A 108, 032603 (2023), URL https://link.aps.org/doi/10.1103/PhysRevA.108.032603.DOI
  19. [19]V. Bergholm, J. Izaac, M. Schuld, C. Gogolin, S. Ahmed, V. Ajith, M. S. Alam, G. Alonso-Linaje, B. AkashNarayanan, A. Asadi, et al., Pennylane: Automatic differentiation of hybrid quantum-classical computations (2022), 1811.04968, URL https://arxiv.org/abs/1811.04968.
  20. [20]S. Jin, N. Liu, and C. Ma, SIAM J. Numer. Anal. 63, 1861 (2025), 2402.14696.

Paper details

vlnc:W_qeqp7d5x
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents