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

Schrödingerisation based computationally stable algorithms for ill-posed problems in partial differential equations

Shi Jin [email protected] School of Mathematical Sciences, Shanghai Jiao Tong University, Shanghai 200240, China. Institute of Natural Sciences, Shanghai Jiao Tong University, Shanghai 200240, China. Ministry of Education, Key Laboratory in Scientific and Engineering Computing, Shanghai Jiao Tong University, Shanghai 200240, China. Nana Liu [email protected] Institute of Natural Sciences, Shanghai Jiao Tong University, Shanghai 200240, China. Ministry of Education, Key Laboratory in Scientific and Engineering Computing, Shanghai Jiao Tong University, Shanghai 200240, China. University of Michigan-Shanghai Jiao Tong University Joint Institute, Shanghai 200240, China Chuwen Ma 111Corresponding author. [email protected] School of Mathematical Sciences, Shanghai Jiao Tong University, Shanghai 200240, China.
Abstract

We introduce a simple and stable computational method for ill-posed partial differential equation (PDE) problems. The method is based on Schrödingerisation, introduced in [S. Jin, N. Liu and Y. Yu, arXiv:2212.13969][S. Jin, N. Liu and Y. Yu, Phys. Rev. A, 108 (2023), 032603], which maps all linear PDEs into Schrödinger-type equations in one higher dimension, for quantum simulations of these PDEs. Although the original problem is ill-posed, the Schrödingerised equations are Hamiltonian systems and time-reversible, allowing stable computation both forward and backward in time. The original variable can be recovered by data from suitably chosen domain in the extended dimension. We will use the (constant and variable coefficient) backward heat equation and the linear convection equation with imaginary wave speed as examples. Error analysis of these algorithms are conducted and verified numerically. The methods are applicable to both classical and quantum computers, and we also lay out quantum algorithms for these methods. Moreover, we introduce a smooth initialisation for the Schrödingerised equation which will lead to essentially spectral accuracy for the approximation in the extended space, if a spectral method is used. Consequently, the extra qubits needed due to the extra dimension, if a qubit based quantum algorithm is used, for both well-posed and ill-posed problems, becomes almost loglog1/ε\log\log{1/\varepsilon} where ε\varepsilon is the desired precision. This optimizes the complexity of the Schrödingerisation based quantum algorithms for any non-unitary dynamical system introduced in [S. Jin, N. Liu and Y. Yu, arXiv:2212.13969][S. Jin, N. Liu and Y. Yu, Phys. Rev. A, 108 (2023), 032603].

Keywords: ill-posed problems, backward heat equation, Schrödingerisation, quantum algorithms MSCcodes: 65J20, 65M70, 81-08

1 Introduction

In this paper, we are interested in numerically computing ill-posed problems that follow the evolution of a general dynamical system

ddt𝒖=H𝒖\frac{\mathrm{d}}{\mathrm{d}t}{\bm{u}}=H{\bm{u}} (1.1)

whose input data given by 𝒖0n{\bm{u}}_{0}\in\mathbb{R}^{n}. For simplicity, we first consider HH being Hermitian with nn real eigenvalues, ordered as

λ1(H)λ2(H)λn(H),forallt[0,T].\lambda_{1}(H)\leq\lambda_{2}(H)\leq\cdots\lambda_{n}(H),\quad\text{for}\;\text{all}\;t\in[0,T]. (1.2)

We assume that λi(H)>0\lambda_{i}(H)>0, for some 1in1\leq i\leq n, which implies that the system (1.1) contains unstable modes, thus the initial value problem is ill-posed since its solution will grow exponentially in time. This causes significant computational challenges. Normally the numerical errors will grow exponentially unless special care is taken.

Ill-posed or unstable problems appear in many physical applications, for example, fluid dynamics instabilities such as Rayleigh-Taylor and Kevin-Helmholtz instabilities [21, 10], plasma instability [12], and Maxwell equations with negative index of refraction [30, 28]. It also appears in inverse problems [34, 4]. One of the most classical ill-posed problems is the backward heat equation which suffers from the catastrophic Hadamard instability. Usually, some regularization technique is used to make the problems well-posed [8].

In this paper, we study a generic yet simple computational strategy to numerically compute ill-posed problems based on Schrödingerisation, introduced for quantum simulation for dynamical systems whose evolution operator is non-unitary [16, 17]. The idea is to map it to one higher dimension, into Schrödinger-type equations, that obeys unitary dynamics and thereby naturally fitting for quantum simulation. Since the Schrödinger-type equations are Hamiltonian systems that are time-reversible, they can be solved both forwards and backwards in time in a computationally stable way. This makes it suitable for solving unstable problems, as was proposed in our previous work [15]. In this article, we study this method for the classical backward heat equation, and a linear convection equation with imaginary wave speed (or negative index of refraction).

The initial-value problem to the backward heat equation is ill-posed in all three ways: (i) the solution does not necessarily exist; (ii) if the solution exists, it is not necessarily unique; (iii) there is no continuous dependence of the solution on arbitrary input data [27, 18, 13, 23]. This problem is well-posed for final data whose Fourier spectrum has compact support [26]. However, even when the solution exists and is unique, computing the solution is difficult since unstable physical systems usually lead to unstable numerical methods. There have been various treatments of this difficult problem, for example quasi-reversibility methods [35, 32, 22, 3, 25], regularization methods [11, 19, 32, 6], Fourier truncation methods [29], etc. Our approach computes solution consistent with the Fourier truncation method.

The actual implementation of our backward heat equation solver is as follows. First we start with the Fourier transform of the input data denoted by uTu_{T} and truncate the Fourier mode in finite domain. This is either achieved automatically if the Fourier mode of uTu_{T} has compact support, or we choose a sufficiently large domain in the Fourier space such that outside it the Fourier coefficient of uTu_{T} is sufficiently small. The latter can usually be done since the forward heat equation gives a solution that is smooth for t>0t>0 so its Fourier coefficient decays rapidly. The Schrödingerisation technique lifts the backward heat equation to a Schrödinger equation in one higher dimension that is time reversible, which can be solved backward in time by any reasonable stable numerical approximation. We then recover u(t)u(t) for 0t<T0\leq t<T by integrating or pointwise evaluation over suitably chosen domain in the extended variable. Since the time evolution is based on solving the Schrödinger equation, the computational method is stable.

We point out that the truncation in the Fourier space regularizes the original ill-posed problem. Although the initial-value problem to the Schrödingerised equation is well-posed even without this Fourier truncation, to recover uu one needs finite Fourier mode. We also show that the strategy also applies to variable coefficient heat equation.

We will also apply the same strategy to solve the unstable linear convection equation that has imaginary wave speed.

We will give error estimates on these methods and conduct numerical methods that verify the results of the error analysis. The methods work for both classical and quantum computers. Since the original Schrödingerisation method was introduced for quantum simulation of general PDEs, we will also give the quantum implementation of the computational method.

Moreover, we introduce a smooth initialization for the Schrödingerised equation, so the initial data will be in Ck()C^{k}(\mathbb{R}) in the extended space for any integer k1k\geq 1 (see section 4.3). This will lead to essentially the spectral accuracy for the approximation in the extended space, if a spectral method is used. Consequently, the extra qubits needed due to the extra dimension, if a qubit based quantum algorithm is used, for both well-posed and ill-posed problems, becomes almost loglog1/ε\log\log{1/\varepsilon} where ε\varepsilon is the desired precision. This reduces the complexity of Schrödingerisation based quantum algorithms introduced in [16, 17] for any non-unitary dynamical system.

The rest of the paper is organized as follows. In section 2, we give a brief review of the Schrödingerisation approach for general linear ODEs. In section 3, we study the backward heat equation, for both constant and variable coefficient cases, and show the approximate solution based on the framework of Schrödingerisation. In section 4, the numerical method and error analysis of the backward heat equation are presented. In addition, a CkC^{k} smooth initial data with respect to the extended variable is constructed to improve the convergence rates in the extended space. In section 5, we apply this technique to the convection equations with purely imaginary wave speed. In section 6, we show the numerical tests to verify our theories. Section 7 shows the quantum algorithms and the corresponding complexity.

Throughout the paper, we restrict the simulation to a finite time interval t[0,T]t\in[0,T]. The notation fgf\lesssim g stands for fCgf\leq Cg where CC is independent of the mesh size and time step. Scalar-valued quantities and vector-valued quantities are denoted by normal symbols and boldface symbols, respectively. Moreover, we use a 0-based indexing, i.e. j={0,1,,N1}j=\{0,1,\cdots,N-1\}, or j[N]j\in[N], and 𝒆j(N)N{\bm{e}}_{j}^{(N)}\in\mathbb{R}^{N}, denotes a vector with the jj-th component being 11 and others 0. We shall denote the identity matrix and null matrix by II and 0, respectively, and the dimensions of these matrices should be clear from the context, otherwise, the notation INI_{N} stands for the NN-dimensional identity matrix.

2 The general framework

We start with the basic framework set up in [15] for forward problems which we first briefly review here.

Using the warped phase transformation 𝒘(t,p)=ep𝒖{\bm{w}}(t,p)=e^{-p}{\bm{u}} for p>0p>0 and symmetrically extending the initial data to p<0p<0, one has the following system of linear convection equations [16, 17]:

ddt𝒘=Hp𝒘𝒘(0,p)=e|p|𝒖0.\frac{\mathrm{d}}{\mathrm{d}t}{\bm{w}}=-H\partial_{p}{\bm{w}}\qquad{\bm{w}}(0,p)=e^{-|p|}{\bm{u}}_{0}. (2.1)

This is clearly a hyperbolic system. When the eigenvalues of HH are all negative, the convection term of (2.1) corresponds to waves moving from the right to the left. One does, however, need a boundary condition on the right-hand side. Since 𝒘{\bm{w}} decays exponentially in pp, one just needs to select p=pRp=p^{R} large enough, so ww at this point is essentially zero and a zero incoming boundary condition can be used at p=pRp=p^{R}. Then 𝒖{\bm{u}} can be numerically recovered via

𝒖(t)=11epR0pR𝒘(t,p)𝑑p,{\bm{u}}(t)=\frac{1}{1-e^{-p^{R}}}\int_{0}^{p^{R}}{\bm{w}}(t,p)\,dp, (2.2)

or

𝒖(t)=ep𝒘(t,p) for any0<p<pR.{\bm{u}}(t)=e^{p}{\bm{w}}(t,p)\qquad{\text{ for any}}\quad 0<p<p^{R}. (2.3)

However, when λi(H)>0\lambda_{i}(H)>0 for some ii, some of the waves evolving through (2.1) will instead propagate from left to right. If we were solving the problem in domain p[0,)p\in[0,\infty), we would need a boundary condition at p=0p=0, which is not possible. Instead, we extend the computational domain to also include [pL,0)[-p^{L},0) with a zero incoming boundary at p=pLp=-p^{L} for pL>0p^{L}>0 sufficiently large (so epL0e^{-p^{L}}\approx 0). In summary, we use zero boundary condition for (2.1) restricted on the finite domain [pL,pR][-p^{L},p^{R}]. It is worth noting that extending to the p<0p<0 domain is done for the convenience of employing the Fourier spectral method, which requires periodic boundary conditions, and our zero boundary conditions can be regarded, approximately, as periodic boundary condition. It is important to note that any waves–corresponding to positive eigenvalues of HH– that start from p<0p<0 and travel to the right will induce spurious solutions to the domain p>0p>0, therefore, when recovering uu, one needs to select the correct domain to avoid using these spurious waves. Therefore, the following theorem [15] must be utilized.

Theorem 2.1.

Assume the eigenvalues of HH satisfy (1.2), then the solution of (1.1) can be recovered by

𝒖(t)=ep𝒘(t,p),foranyp>p,{\bm{u}}(t)=e^{p}{\bm{w}}(t,p),\quad\text{for}\;\text{any}\;p>p^{\Diamond}, (2.4)

where p=max{λn(H)t,0}p^{\Diamond}=\max\{\lambda_{n}(H)t,0\}, or recovered by using the integration,

𝒖(t)=epp𝒘(t,q)dq,p>p.{\bm{u}}(t)=e^{p}\int_{p}^{\infty}{\bm{w}}(t,q)\;\mathrm{d}q,\quad p>p^{\Diamond}. (2.5)

Since (2.1) is a hyperbolic system, thus the initial value problem is well-posed and one can solve it numerically in a stable way (as long as suitable numerical stability condition–the CFL condition–is satisfied). Thus although the original system (1.1) is ill-posed, we can still solve the well-posed problem (2.1), and then recover 𝒖{\bm{u}} using Theorem 2.1, as long as λn(H)<\lambda_{n}(H)<\infty!

We also point out here that the discretization of the pp-derivative in Eq. (2.1) can be achieved not only by using Fourier spectral methods but also through other numerical schemes, such as finite difference or finite element methods. In such cases one can just solve the problem in p>0p>0 and, if λi(H)>0\lambda_{i}(H)>0 for some ii, one needs to supply boundary condition at p=0p=0 for the characteristic fields corresponding to positive eigenvalues of HH. This boundary data can be set arbitrarily, since the induced spurious wave propagating with speed λi(H)>0\lambda_{i}(H)>0 will not be used when we recover uu using data from p>pp>p^{\diamond}, as laid out by Theorem 2.1.

3 The backward heat equation

In this section, we consider the following one-dimensional backward heat equation in the infinite domain,

tu\displaystyle\partial_{t}u =xxuinΩxT>t0,\displaystyle=\partial_{xx}u\;\,\quad\;\text{in}\;\Omega_{x}\quad T>t\geq 0, (3.1)
u(T,x)\displaystyle u(T,x) =uT(x)inΩx,\displaystyle=u_{T}(x)\quad\;\text{in}\;\Omega_{x},

where Ωx=(,)\Omega_{x}=(-\infty,\infty). We want to determine u(t,)u(t,\cdot) for T>t0T>t\geq 0 from the data uTu_{T}. The change of variable v(t,x)=u(Tt,x)v(t,x)=u(T-t,x) leads to the following formulation of (3.1),

tv\displaystyle\partial_{t}v =xxv\displaystyle=-\partial_{xx}v\;\,\quad\; inΩx0t<T,\displaystyle\text{in}\;\Omega_{x}\quad 0\leq t<T, (3.2)
v(0,x)\displaystyle v(0,x) =uT(x)\displaystyle=u_{T}(x)\quad\; inΩx.\displaystyle\text{in}\;\Omega_{x}.

It is easy to see that the eigenvalues of HH in (1.1) are positive after spatial discretization. Let g^(η)\hat{g}(\eta) denote the Fourier transform of g(x)L2(Ωx)g(x)\in L^{2}(\Omega_{x}) and define it by

g^(η):=(g)=12πeixηg(x)dx,g(x):=1(g^)=eixηg^(η)dη.\hat{g}(\eta):=\mathscr{F}(g)=\frac{1}{2\pi}\int_{\mathbb{R}}e^{ix\eta}g(x)\mathrm{d}x,\qquad g(x):=\mathscr{F}^{-1}(\hat{g})=\int_{\mathbb{R}}e^{-ix\eta}\hat{g}(\eta)\mathrm{d}\eta.

Let gHs(Ωx)\|g\|_{H^{s}(\Omega_{x})} denote the Sobolev norm Hs(Ωx)H^{s}(\Omega_{x}) defined as

gHs(Ωx):=(|g^(η)|2(1+η2)sdη)12.\|g\|_{H^{s}(\Omega_{x})}:=\big{(}\int_{\mathbb{R}}|\hat{g}(\eta)|^{2}(1+\eta^{2})^{s}\;\mathrm{d}\eta\big{)}^{\frac{1}{2}}.

When s=0s=0, H0(Ωx)\|\cdot\|_{H^{0}(\Omega_{x})} denotes the L2(Ωx)L^{2}(\Omega_{x})-norm, and ss can be noninteger [9]. For the above solution to be well-defined, we make the following assumptions of uTu_{T} for analysis:

  • (H1)

    Assume uTH0s{u}_{T}\in H^{s}_{0}, namely HsH^{s} with compact support. This yields a well-posed problem in a subspace of L2L^{2} in the sense of Hadamard [26].

  • (H2)

    For more general u^T\hat{u}_{T}, we will truncate the domain in η\eta and begin with the truncated–thus compactly supported–final data.

We remark here that truncation is inherently achieved in our methodology (see (S1) and (S2)), thus providing a form of regularization to the original ill-posed problem.

If the solution of (3.1) in this Sobolev space exists, then it must be unique [9]. We assume u(t,x)u(t,x) is the unique solution of (3.1). Applying the Fourier transform, one gets the exact solution u(t,x)u(t,x) of problem (3.1):

u(t,x)=eixηeη2(Tt)u^Tdη.u(t,x)=\int_{\mathbb{R}}e^{-ix\eta}e^{\eta^{2}(T-t)}\hat{u}_{T}\;\mathrm{d}\eta. (3.3)

Denoting u0(x)=u(0,x)u_{0}(x)=u(0,x), then it is easy to see from (3.3) that

u0Hs(Ωx)=(|u^0|2(1+η2)s𝑑η)1/2<,fors1.\|u_{0}\|_{H^{s}(\Omega_{x})}=\big{(}\int_{\mathbb{R}}|\hat{u}_{0}|^{2}(1+\eta^{2})^{s}\;d\eta\big{)}^{1/2}<\infty,\quad\text{for}\;s\geq 1. (3.4)

The Schrödingerisation for (3.1) gives

ddtw\displaystyle\frac{\mathrm{d}}{\mathrm{d}t}w =xxpwinΩx×ΩpT>t0,\displaystyle=-\partial_{xxp}w\;\;\quad\quad\text{in}\;\Omega_{x}\times\Omega_{p}\quad T>t\geq 0, (3.5)
w(T,x,p)\displaystyle w(T,x,p) =e|p|uT(x)inΩx×Ωp,\displaystyle=e^{-|p|}u_{T}(x)\;\;\quad\text{in}\;\Omega_{x}\times\Omega_{p},

where Ωp=(,)\Omega_{p}=(-\infty,\infty). Again using the Fourier transform technique to (3.5) with respect to the variables pp and xx, one gets the Fourier transform w^(t,η,ξ)\hat{w}(t,\eta,\xi) of the exact solution w(t,x,p)w(t,x,p) of problem (3.5) satisfying

ddtw^=iξη2w^,w^(T,η,ξ)=w^T=12πeixηuT(x)π(1+ξ2)dx=u^T(η)π(1+ξ2).\frac{\mathrm{d}}{\mathrm{d}t}\hat{w}=-i\xi\eta^{2}\hat{w},\quad\hat{w}(T,\eta,\xi)=\hat{w}_{T}=\frac{1}{2\pi}\int_{\mathbb{R}}\frac{e^{ix\eta}u_{T}(x)}{\pi(1+\xi^{2})}\;\mathrm{d}x=\frac{\hat{u}_{T}(\eta)}{\pi(1+\xi^{2})}. (3.6)

The solution of ww is then found to be

w(t,x,p)=ei(xη+pξ)eiξη2(tT)w^Tdηdξ.w(t,x,p)=\int_{\mathbb{R}}\int_{\mathbb{R}}e^{-i(x\eta+p\xi)}e^{-i\xi\eta^{2}(t-T)}\hat{w}_{T}\;\mathrm{d}\eta\mathrm{d}\xi. (3.7)

Note the initial-value problem (3.5) is well-posed, even for uTHsu_{T}\in H^{s} not being compactly supported in the Fourier space, as can be easily seen from (3.6), which is an oscillatory ODE with purely imaginary spectra. Following the proof in [9, Theorem 5, section 7.3], one has the regularity of w(0,x,p)Hs(Ωx)×H1(Ωp)w(0,x,p)\in H^{s}(\Omega_{x})\times H^{1}(\Omega_{p}) under the assumption in (H1) or (H2).

Using the Fourier transform only on xx gives

tw^xη2pw^x=0T>t0,w^x(T,η,p)=e|p|u^T(η),\partial_{t}\hat{w}^{x}-\eta^{2}\partial_{p}\hat{w}^{x}=0\quad T>t\geq 0,\quad\hat{w}^{x}(T,\eta,p)=e^{-|p|}\hat{u}_{T}(\eta), (3.8)

where w^x\hat{w}^{x} is the Fourier transform of ww on the xx-variable, i.e.

w^x(t,η,p)=12πw(t,x,p)eixηdx.\hat{w}^{x}(t,\eta,p)=\frac{1}{2\pi}\int_{\mathbb{R}}w(t,x,p)e^{ix\eta}\mathrm{d}x. (3.9)

Here w^x\hat{w}^{x} is a linear wave moving to the right, if one starts from t=Tt=T and going backward in time (one can also use the change of variable tTtt\mapsto T-t to make the problem (3.5) forward in time for notation comfort), and the solution is computed by the inverse Fourier transformation

w(t,x,p)=e|p+η2(tT)|u^T(η)eixηdη.w(t,x,p)=\int_{\mathbb{R}}e^{-|p+\eta^{2}(t-T)|}\hat{u}_{T}(\eta)e^{-ix\eta}\;\mathrm{d}\eta. (3.10)

This corresponds to the case of (2.1) in which all eigenvalues of HH are positive. Therefore, to recover u(0,x)u(0,x) from Eq.(3.10), one needs to choose p>η2Tp>\eta^{2}T for time T>0T>0 to obtain

u(0,x)=epe|pη2T|u^Teixη𝑑η=eη2Tu^Teixη𝑑η,p>η2T.u(0,x)=e^{p}\int_{\mathbb{R}}e^{-|p-\eta^{2}T|}\hat{u}_{T}e^{-ix\eta}d\eta=\int_{\mathbb{R}}e^{\eta^{2}T}\hat{u}_{T}e^{-ix\eta}\,d\eta,\quad p>\eta^{2}T.

This is the basis for the introduction of our stable computational method: we solve the ww-equation (3.5) with a suitable–stable– computational method, and then recover uu by either integration or pointwise evaluation using Theorem 2.1.

However, in the continuous space η\eta maybe unbounded, thus the condition p>η2Tp>\eta^{2}T may not be satisfied. We consider two scenarios here:

  1. (S1)

    The input data u^T\hat{u}_{T} has compact support, namely u^T=0\hat{u}_{T}=0 for |η|>η0|\eta|>\eta_{0} for some η0<\eta_{0}<\infty. While this is not generally true, when uT(x)u_{T}(x) is smooth in xx, its Fourier mode decays rapidly, so one can truncate η\eta for |η|>η0|\eta|>\eta_{0} with desired accuracy.

  2. (S2)

    One discretizes equation (3.5) numerically. This usually requires first to truncate the xx-domain so it is finite, followed by some numerical discretization of the xx-derivative, for example the finite difference or spectral method. Then |η|η0𝒪(1/(Δx)2)|\eta|\leq\eta_{0}\leq\mathscr{O}(1/(\Delta x)^{2}) where Δx\Delta x is the spatial mesh size in xx.

3.1 Error estimates

We start by choosing an ηmax>0\eta_{\max}>0 and denote

δ(ηmax)=(ηmax(1+η2)s|u^0|2dη)12\delta(\eta_{\max})=\big{(}\int_{\eta_{\max}}^{\infty}(1+\eta^{2})^{s}|\hat{u}_{0}|^{2}\;\mathrm{d}\eta\big{)}^{\frac{1}{2}} (3.11)

to be a small quantity, which will be chosen with other error terms to meet the numerical tolerance requirement (see Remark 3.2). We define the “approximate” solution uηmaxu_{\eta_{\max}} of (3.1) as follows:

Definition 3.1.

First, define

wηmax=e|p+η2(tT)|u^T(η)χmaxeixηdη,w_{\eta_{\max}}=\int_{\mathbb{R}}e^{-|p+\eta^{2}(t-T)|}\hat{u}_{T}(\eta)\chi_{\max}e^{-ix\eta}\;\mathrm{d}\eta, (3.12)

where χmax(η)=1\chi_{\max}(\eta)=1 when η[ηmax,ηmax]\eta\in[-\eta_{\max},\eta_{\max}], otherwise χ(η)=0\chi(\eta)=0. Then one obtains the approximate solution uηmaxu_{\eta_{\max}} by

uηmax(t,x,p)=epwηmax(t,x,p),oruηmax(t,x,p)=eppw(t,x,q)dq,u_{\eta_{\max}}(t,x,p)=e^{p}w_{\eta_{\max}}(t,x,p),\quad\text{or}\quad u_{\eta_{\max}}(t,x,p)=e^{p}\int_{p}^{\infty}w(t,x,q)\;\mathrm{d}q, (3.13)

with pp=ηmax2Tp\geq p^{\Diamond}=\eta_{\max}^{2}T.

With uu defined as above, we have the following theorem which gives an error estimate to the above approximation.

Theorem 3.1.

Suppose uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) satisfies the assumption in (H1) or (H2). Let u(t)=u(t,x)u(t)=u(t,x) be the solution (3.1) given by (3.3), and uηmax(t)=uηmax(t,x,p)u_{\eta_{\max}}(t)=u_{\eta_{\max}}(t,x,p) given by (3.13) with p>p=ηmax2Tp>p^{\Diamond}=\eta_{\max}^{2}T and ηmax\eta_{\max} chosen to satisfy (3.11). Then for any p>pp>p^{\Diamond}, t[0,T)t\in[0,T),

u(t)uηmax(t)L2(Ωx)eηmax2tδ(ηmax)/ηmaxs.\|u(t)-u_{\eta_{\max}}(t)\|_{L^{2}(\Omega_{x})}\leq e^{-\eta_{\max}^{2}t}\delta(\eta_{\max})/\eta_{\max}^{s}. (3.14)
Proof.

If uTu_{T} satisfies (H1) or (H2), it is apparent that δ(ηmax)\delta(\eta_{\max}) for some ηmax\eta_{\max} in Eq.(3.11) is well defined. According to Parseval’s equality and (3.3), (3.11) – (3.13), it follows that

uuηmaxL2(Ωx)\displaystyle\|u-u_{\eta_{\max}}\|_{L^{2}(\Omega_{x})} =u^u^ηmaxL2(Ωη)=eη2(Tt)u^Teη2(Tt)u^TχmaxL2(Ωη)\displaystyle=\|\hat{u}-\hat{u}_{\eta_{\max}}\|_{L^{2}(\Omega_{\eta})}=\|e^{\eta^{2}(T-t)}\hat{u}_{T}-e^{\eta^{2}(T-t)}\hat{u}_{T}\chi_{\max}\|_{L^{2}(\Omega_{\eta})}
=(|η|>ηmax|eη2(Tt)eη2Tu^0|2dx)12\displaystyle=\left(\int_{|\eta|>\eta_{\max}}|e^{\eta^{2}(T-t)}e^{-\eta^{2}T}\hat{u}_{0}|^{2}\;\mathrm{d}x\right)^{\frac{1}{2}}
=(|η|>ηmax|eη2tu^0|2dx)12\displaystyle=\left(\int_{|\eta|>\eta_{\max}}|e^{-\eta^{2}t}\hat{u}_{0}|^{2}\;\mathrm{d}x\right)^{\frac{1}{2}}
=(|η|>ηmaxeη2t|u^0|2(1+η2)s(1+η2)sdη)12\displaystyle=\left(\int_{|\eta|>\eta_{\max}}\frac{e^{-\eta^{2}t}|\hat{u}_{0}|^{2}}{(1+\eta^{2})^{s}}(1+\eta^{2})^{s}\;\mathrm{d}\eta\right)^{\frac{1}{2}}
(|η|>ηmaxeηmax2t|u^0|2η2s(1+η2)sdη)12eηmax2tδ(ηmax)ηmaxs.\displaystyle\leq\left(\int_{|\eta|>\eta_{\max}}\frac{e^{-\eta_{\max}^{2}t}|\hat{u}_{0}|^{2}}{\eta^{2s}}(1+\eta^{2})^{s}\;\mathrm{d}\eta\right)^{\frac{1}{2}}\leq\frac{e^{-\eta_{\max}^{2}t}\delta(\eta_{\max})}{\eta_{\max}^{s}}. (3.15)

The proof is completed. ∎

Remark 3.1.

Since we are solving the problem (3.1) backward in time, the error estimate obtained in Theorem 3.1 needs to be understood also backward in time, namely the error will increase as tt goes from TT to 0. Numerical experiments in section 6.2 also confirms this.

Remark 3.2.

In order to bound the error by ε\varepsilon at t=0t=0, the shape estimate of ηmax\eta_{\max} from (3.15) is that ηmax\eta_{\max} is chosen such that

(|η|>ηmax|u^0|2dx)12ε.\left(\int_{|\eta|>\eta_{\max}}|\hat{u}_{0}|^{2}\;\mathrm{d}x\right)^{\frac{1}{2}}\leq\varepsilon. (3.16)

If u0Hs(Ωx)u_{0}\in H^{s}(\Omega_{x}), one could choose ηmax\eta_{\max} satisfying

ηmax(δε)1s.\eta_{\max}\geq\left(\frac{\delta}{\varepsilon}\right)^{\frac{1}{s}}. (3.17)

Considering u0Hs(Ωx)u_{0}\in H^{s}(\Omega_{x}), one may have |u^0|2(1+η2)s=𝒪(1η1+ϵ0)|\hat{u}_{0}|^{2}(1+\eta^{2})^{s}=\mathscr{O}(\frac{1}{\eta^{1+\epsilon_{0}}}) with 0<ϵ020<\epsilon_{0}\leq 2, and then δ(ηmax)=𝒪(1/(ηmaxϵ0/2))\delta(\eta_{\max})=\mathscr{O}(1/(\eta_{\max}^{\epsilon_{0}/2})) is small. Besides, if u0u_{0} is smooth enough, p=(δε)2sTp^{\Diamond}=(\frac{\delta}{\varepsilon})^{\frac{2}{s}}T is not necessarily large.

Specifically, if the Fourier transform of uu has compact support such that u^T(η)=0\hat{u}_{T}(\eta)=0 when η>η0\eta>\eta_{0}, it yields from (3.15)-(3.16) that there exits no error of recovery by choosing p=η02Tp^{\Diamond}=\eta_{0}^{2}T. Take an example, u=α(t)cos(ω0x)u=\alpha(t)\cos(\omega_{0}x) (or u=α(t)sin(ω0x)u=\alpha(t)\sin(\omega_{0}x)) is a periodic function in [πω0,πω0][\frac{-\pi}{\omega_{0}},\frac{\pi}{\omega_{0}}]. We extend it periodically over the whole field of real domain \mathbb{R}. The Fourier transform of uu is u^(t,η)=α(t)π(δ(ηω0)+δ(η+ω0))\hat{u}(t,\eta)=\alpha(t)\pi\big{(}\delta(\eta-\omega_{0})+\delta(\eta+\omega_{0})\big{)}, where δ(η+ω0)\delta(\eta+\omega_{0}) gives an impulse that is shifted to the left by ω0\omega_{0}, likewise the function δ(ηω0)\delta(\eta-\omega_{0}) yields an impulse shifted to the right by ω0\omega_{0}. In this case, u^(t,η)0\hat{u}(t,\eta)\equiv 0 when |η|>ω0=η0|\eta|>\omega_{0}=\eta_{0}. Therefore, the best choice of pp^{\Diamond} for u=α(t)cos(ω0x)u=\alpha(t)\cos(\omega_{0}x) (or u=α(t)sin(ω0x)u=\alpha(t)\sin(\omega_{0}x)) is

p=ω02T=η02T.p^{\Diamond}=\omega_{0}^{2}T=\eta_{0}^{2}T. (3.18)

At this point, ηmax=ω0=η0\eta_{\max}=\omega_{0}=\eta_{0}, one has δ(ηmax)=0\delta(\eta_{\max})=0, u=uηmaxu=u_{\eta_{\max}} for p>pp>p^{\Diamond}.

In practice, the data at t=Tt=T is usually imprecise since it depends on the reading of physical measurements. Consider a perturbed data uTζu_{T}^{\zeta}, which is a small disturb of uTu_{T}. The Fourier transform of uTζu_{T}^{\zeta} may not decay as |η||\eta|\to\infty, which leads to the severely ill-posed problems of (3.1). However, after Schrödingerisation, a disturb of the Fourier transform of ww defined by w^Tζ=u^Tζ(η)π(1+ξ2)\hat{w}_{T}^{\zeta}=\frac{\hat{u}_{T}^{\zeta}(\eta)}{\pi(1+\xi^{2})} does not affect the well-posedness of ww even if wTζw_{T}^{\zeta} is merely in L2()L^{2}(\mathbb{R}) . Assume the measured data uTζu_{T}^{\zeta} satisfies

uTζuTL2(Ωx)ζ0.\|u_{T}^{\zeta}-u_{T}\|_{L^{2}(\Omega_{x})}\leq\zeta_{0}. (3.19)

Define the approximate solution at time tt from uTζu_{T}^{\zeta} by

wηmax,ζ\displaystyle w_{\eta_{\max},\zeta} =ei(xη+pξ)eiξη2(tT)w^Tζχmaxdηdξ\displaystyle=\int_{\mathbb{R}}\int_{\mathbb{R}}e^{-i(x\eta+p\xi)}e^{-i\xi\eta^{2}(t-T)}\hat{w}_{T}^{\zeta}\chi_{\max}\;\mathrm{d}\eta\mathrm{d}\xi (3.20)
=e|p+η2(tT)|u^Tζ(η)eixηχmaxdη.\displaystyle=\int_{\mathbb{R}}e^{-|p+\eta^{2}(t-T)|}\hat{u}_{T}^{\zeta}(\eta)e^{-ix\eta}\chi_{\max}\;\mathrm{d}\eta.

Now we have the approximate solution wηmax,ζw_{\eta_{\max},\zeta}.

Theorem 3.2.

Suppose uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) satisfies the assumption in (H1) or (H2). Let u(t,x)u(t,x) be given by (3.1) and wηmax,ζ(t,x,p)w_{\eta_{\max},\zeta}(t,x,p) given by (3.20), respectively. If uηmax,ζu_{\eta_{\max},\zeta} is recovered by

uηmax,ζ=epwηmax,ζ(t,x,p),oruηmax,ζ=eppwηmax,ζ(t,x,q)dq,u_{\eta_{\max},\zeta}=e^{p}w_{\eta_{\max},\zeta}(t,x,p),\quad\text{or}\quad u_{\eta_{\max},\zeta}=e^{p}\int_{p}^{\infty}w_{\eta_{\max},\zeta}(t,x,q)\;\mathrm{d}q, (3.21)

for any p>p=ηmax2Tp>p^{\Diamond}=\eta_{\max}^{2}T, and ηmax\eta_{\max} is chosen such that δ(ηmax)|ηmax|s+eηmax2Tζ0ε\frac{\delta(\eta_{\max})}{|\eta_{\max}|^{s}}+e^{\eta_{\max}^{2}T}\zeta_{0}\leq\varepsilon, then

u(t)uηmax,ζ(t)L2(Ωx)ε.\|u(t)-u_{\eta_{\max},\zeta}(t)\|_{L^{2}(\Omega_{x})}\leq\varepsilon.
Proof.

From the definition of uηmax,ζu_{\eta_{\max},\zeta} in (3.21), one has

uηmax,ζ=eixηeη2(Tt)u^Tζ(η)χmaxdη,u_{\eta_{\max},\zeta}=\int_{\mathbb{R}}e^{-ix\eta}e^{\eta^{2}(T-t)}\hat{u}_{T}^{\zeta}(\eta)\chi_{\max}\;\mathrm{d}\eta,

for p>pp>p^{\Diamond}. Then one has

uηmax,ζuη,maxL2(Ωx)=(|η|ηmax|eη2(Tt)(u^Tζu^T)|2dη)12eηmax2(Tt)ζ0.\|u_{\eta_{\max},\zeta}-u_{\eta,\max}\|_{L^{2}(\Omega_{x})}=\big{(}\int_{|\eta|\leq\eta_{\max}}|e^{\eta^{2}(T-t)}(\hat{u}_{T}^{\zeta}-\hat{u}_{T})|^{2}\;\mathrm{d}\eta\big{)}^{\frac{1}{2}}\leq e^{\eta_{\max}^{2}(T-t)}\zeta_{0}. (3.22)

The proof is finished by combining (3.15) and (3.22). ∎

3.2 Variable coefficient problems

When the system has a spatially varying coefficient, the Fourier transform cannot be applied, and the analysis in Theorem 3.1 no longer holds. However, the Schrödingerisation still works.

We consider variable coefficient equation

tu=x(a(x)xu)xΩx,0<t<T,u(T,x)=uT(x),\partial_{t}u=\partial_{x}(a(x)\partial_{x}u)\quad x\in\Omega_{x},\quad 0<t<T,\quad u(T,x)=u_{T}(x), (3.23)

with Dirichlet’s boundary condition of bounded domain Ωx\Omega_{x} in straightforward way, where a(x)C(Ω¯x)a(x)\in C^{\infty}(\bar{\Omega}_{x}) and a(x)α0>0a(x)\geq\alpha_{0}>0.

Let ϕk\phi_{k} be the kk-th eigenfunction corresponding to λk\lambda_{k} of the operator :=x(a(x)x)\mathcal{L}:=-\partial_{x}(a(x)\partial_{x}\cdot) such that

ϕk=λkϕk,ϕk|Ωx=0.\mathcal{L}\phi_{k}=\lambda_{k}\phi_{k},\quad\phi_{k}|_{\partial\Omega_{x}}=0. (3.24)

It is easy to see that ϕkC(Ωx)\phi_{k}\in C^{\infty}(\Omega_{x}) from the regularity of the second-order elliptic equations [9, Theorem 3, section 6.3]. They form an orthonormal basis set of L2(Ωx)L^{2}(\Omega_{x}). According to standard theory on the eigenvalues of symmetric elliptic operators [9, Theorem 1, section 6.5], one has

0<λ1λ2λ3,λkask.0<\lambda_{1}\leq\lambda_{2}\leq\lambda_{3}\leq\cdots,\quad\lambda_{k}\to\infty\quad\text{as}\;k\to\infty. (3.25)

We search for solution to (3.23) at time tt from the data uTu_{T} in the form

u(t,x)=k+αk(t)ϕk(x)=k+eλk(Tt)αk(T)ϕk(x)T>t0,u(t,x)=\sum_{k\in\mathbb{N}^{+}}\alpha_{k}(t)\phi_{k}(x)=\sum_{k\in\mathbb{N}^{+}}e^{\lambda_{k}(T-t)}\alpha_{k}(T)\phi_{k}(x)\quad T>t\geq 0, (3.26)

where αk(T)=ΩxuTϕkdx\alpha_{k}(T)=\int_{\Omega_{x}}u_{T}\phi_{k}\;\mathrm{d}x.

Define the equivalent norm of Hs\|\cdot\|_{H^{s}}, ss\in\mathbb{N}, again denoted by Hs\|\cdot\|_{H^{s}}:

vHs(Ωx)2=k+|βk|2(1+λk+λks),\|v\|_{H^{s}(\Omega_{x})}^{2}=\sum_{k\in\mathbb{N}^{+}}|\beta_{k}|^{2}(1+\lambda_{k}+\cdots\lambda_{k}^{s}), (3.27)

where βk=Ωxvϕkdx\beta_{k}=\int_{\Omega_{x}}v\phi_{k}\;\mathrm{d}x. Here H0(Ωx):=L2(Ωx)\|\cdot\|_{H^{0}(\Omega_{x})}:=\|\cdot\|_{L^{2}(\Omega_{x})} denotes L2(Ωx)L^{2}(\Omega_{x}) norm when s=0s=0, and ss can also be a noninteger for 1s21\leq s\leq 2 [20, Proposition 2.1]. For the solution to (3.23) to be well-defined, we assume the expansion of uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) to the orthonormal basis has only finite number nmaxn_{\max} of terms, leading to u(t,x)Hs(Ωx)u(t,x)\in H^{s}(\Omega_{x}) for all 0tT0\leq t\leq T, i.e.

u(t,)Hs(Ωx)2\displaystyle\|u(t,\cdot)\|_{H^{s}(\Omega_{x})}^{2} =knmax|αk(t)|2(1+λk+λks)\displaystyle=\sum_{k\leq n_{\max}}|\alpha_{k}(t)|^{2}(1+\lambda_{k}+\cdots\lambda_{k}^{s}) (3.28)
=knmax|eλk(Tt)αk(T)|2(1+λk+λks)<.\displaystyle=\sum_{k\leq n_{\max}}|e^{\lambda_{k}(T-t)}\alpha_{k}(T)|^{2}(1+\lambda_{k}+\cdots\lambda_{k}^{s})<\infty.

For more general cases, we truncate to the finite terms of expansions of the input data. This regularizes the originally ill-posed problem. Next, assume w(t,x,p)w(t,x,p) is in the form of

w(t,x,p)=k+wk(t,p)ϕk(x).w(t,x,p)=\sum_{k\in\mathbb{N}^{+}}w_{k}(t,p)\phi_{k}(x).

We correspondingly project the input data w(T,x,p)w(T,x,p) on the same basis set and Eq. (3.5) is equivalent to

ddtwk(t,p)=λkpwk(t,p),wk(T,p)=e|p|αk(T).\frac{\mathrm{d}}{\mathrm{d}t}w_{k}(t,p)=-\lambda_{k}\partial_{p}w_{k}(t,p),\quad w_{k}(T,p)=e^{-|p|}\alpha_{k}(T).

Note ww is well-defined even if the series is not truncated. We then define the truncated approximate solution by

wnmax=1knmaxe|pλk(Tt)|αk(T)ϕk(x).w_{n_{\max}}=\sum_{1\leq k\leq n_{\max}}e^{-|p-\lambda_{k}(T-t)|}\alpha_{k}(T)\phi_{k}(x). (3.29)

Let

δ(nmax)=(k=nmax|αk(0)|2λks)1/2,\delta(n_{\max})=\left(\sum_{k=n_{\max}}^{\infty}|\alpha_{k}(0)|^{2}\lambda_{k}^{s}\right)^{1/2},\quad (3.30)

we choose nmaxn_{\max} such that

δ(nmax)/λnmaxs2ε.\delta(n_{\max})/\lambda_{n_{\max}}^{\frac{s}{2}}\leq\varepsilon. (3.31)

for the desired precision ε\varepsilon. We remark here nmaxn_{\max} exists from (3.28) if uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}).

Theorem 3.3.

Assume uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) with only finite number terms of expansion to the orthonomal basis, or if not, truncated to be so. Let u(t,)u(t,\cdot) be the solution to (3.23) given by (3.26) and wnmax(t,x,p)w_{n_{\max}}(t,x,p) be given by (3.29), respectively. If unmaxu_{n_{\max}} is recovered by

unmax=epwnmaxorunmax=eppwnmax(t,x,q)dq,u_{n_{\max}}=e^{p}w_{n_{\max}}\quad\text{or}\quad u_{n_{\max}}=e^{p}\int_{p}^{\infty}w_{n_{\max}}(t,x,q)\;\mathrm{d}q, (3.32)

where p>p=λnmaxTp>p^{\Diamond}=\lambda_{n_{\max}}T, and nmaxn_{\max} is chosen by (3.31). Then

u(t,)unmax(t,)L2(Ωx)eλnmaxtδ(nmax)/λnmaxs2ε.\|u(t,\cdot)-u_{n_{\max}}(t,\cdot)\|_{L^{2}(\Omega_{x})}\leq e^{-\lambda_{n_{\max}}t}\delta(n_{\max})/\lambda_{n_{\max}}^{\frac{s}{2}}\leq\varepsilon. (3.33)

The proof is similar to Theorem 3.1 by using the spectral theory of the symmetric elliptic operators and the norm defined in (3.27). We omit it here.

4 Discretization of the Schrödingerised equation

In this section, we consider the discretization of (3.5) and the corresponding error estimates. For simplicity, we consider uu to be a periodic function defined in Ωx=[π,π]\Omega_{x}=[-\pi,\pi].

4.1 The numerical discretization

We discretize the xx domain uniformly with the mesh size x=2π/M\triangle x=2\pi/M, where MM is a positive even integer and the grid points are denoted by π=x0<<xM=π-\pi=x_{0}<\cdots<x_{M}=\pi. The 11-D basis functions for the Fourier spectral method are usually chosen as

ϕj(x)=eiμj(x+π),μj=(jM/2),j[M].\phi_{j}(x)=e^{i\mu_{j}(x+\pi)},\quad\mu_{j}=(j-M/2),\quad j\in[M]. (4.1)

Considering the Fourier spectral discretization on xx, one easily gets

ddt𝒖h=ΦA(Φ)1𝒖h,Φ=(ϕij)M×M=(ϕj(xi))M×M,\frac{\mathrm{d}}{\mathrm{d}t}{\bm{u}}_{h}=-\Phi A(\Phi)^{-1}{\bm{u}}_{h},\quad\Phi=(\phi_{ij})_{M\times M}=(\phi_{j}(x_{i}))_{M\times M}, (4.2)

where 𝒖h(T)=[uT(x0),uT(x1),,uT(xM1)]{\bm{u}}_{h}(T)=[u_{T}(x_{0}),u_{T}(x_{1}),\cdots,u_{T}(x_{M-1})]^{\top} and A=Dx2A=D_{x}^{2}. The matrix DxD_{x} is obtained by Dx=diag{μ0,,μM1}D_{x}=\text{diag}\{\mu_{0},\cdots,\mu_{M-1}\}. By applying matrix exponentials, one has

𝒖h(t)=ΦeA(Tt)(Φ)1𝒖h(T).{\bm{u}}_{h}(t)=\Phi e^{A(T-t)}(\Phi)^{-1}{\bm{u}}_{h}(T). (4.3)

However, it is difficult to obtain the numerical solution 𝒖h{\bm{u}}_{h} in the classical computer from (4.3) since the problem is unstable.

We now introduce the discretization of pp domain as in [15]. First truncating the pp-region to [πL,πL][-\pi L,\pi L], where πL\pi L is large enough such that

e(πL4.5ηmax2T)uTL2(Ωx)𝒪(ε),e^{-(\pi L-4.5\eta_{\max}^{2}T)}\|u_{T}\|_{L^{2}(\Omega_{x})}\leq\mathscr{O}(\varepsilon), (4.4)

with ε\varepsilon error bound. We point out that the constant 4.54.5 is just for numerical analysis which is quite mild for numerical tests, and it is sufficient to take it as approximately 11.

Then, we can treat ww at the boundary as w(t,x,πL)w(t,x,πL)0w(t,x,\pi L)\approx w(t,x,-\pi L)\approx 0. Using the spectral method, one gets the transformation and difference matrix

(Φp)ij=(eiμip(pj+πL))N×N,Dp=diag{μ0p,μ1p,,μN1p},μip=(iN/2)/L,(\Phi_{p})_{ij}=(e^{i\mu^{p}_{i}(p_{j}+\pi L)})\in\mathbb{C}^{N\times N},\quad D_{p}=\text{diag}\{\mu^{p}_{0},\mu^{p}_{1},\dots,\mu^{p}_{N-1}\},\quad\mu^{p}_{i}=(i-N/2)/L,

where pj=πL+jpp_{j}=-\pi L+j\triangle p with p=2πLN\triangle p=\frac{2\pi L}{N}. Applying the discrete Fourier spectral discretization on pp and xx, i.e. Φpx=ΦpΦ\Phi_{px}=\Phi^{p}\otimes\Phi, it yields

ddt𝒘h=iΦpx(DpA)Φpx1𝒘h,𝒘h(T)=𝒈h𝒖h(T),\frac{\mathrm{d}}{\mathrm{d}t}{\bm{w}}_{h}=i\Phi_{px}(D_{p}\otimes A)\Phi_{px}^{-1}{\bm{w}}_{h},\quad{\bm{w}}_{h}(T)={\bm{g}}_{h}\otimes{\bm{u}}_{h}(T), (4.5)

where 𝒈h=[e|p0|,e|p1|,,e|pN1|]{\bm{g}}_{h}=[e^{-|p_{0}|},e^{-|p_{1}|},\cdots,e^{-|p_{N-1}|}]^{\top}. The matrices Φ1\Phi^{-1} (Φ\Phi) or Φp1\Phi_{p}^{-1} (Φp\Phi_{p}) can be implemented by (inverse) fast Fourier transforms (FFT). Since DpAD_{p}\otimes A is a diagonal matrix, the solution at time tt is computed by

𝒘h(t)=Φpx𝒰(Tt)Φpx1𝒘h(T),𝒰(Tt)=exp(iDpA(Tt)).{\bm{w}}_{h}(t)=\Phi_{px}\mathcal{U}(T-t)\Phi_{px}^{-1}{\bm{w}}_{h}(T),\quad\mathcal{U}(T-t)=\exp(iD_{p}\otimes A(T-t)). (4.6)

This approach ensures that no error is introduced in the time discretization. The numerical solution to the system (3.1) is

𝒖h=epk0((𝒆k0(N))IM)𝒘h,{\bm{u}}_{h}=e^{p_{k_{0}}}(({\bm{e}}_{k_{0}}^{(N)})^{\top}\otimes I_{M}){\bm{w}}_{h}, (4.7)

where k0=min{k:pk>p=ηmax2T}k_{0}=\min\{k:p_{k}>p^{\Diamond}=\eta_{\max}^{2}T\} from Theorem 3.1, or can be recovered by second order numerical integration

𝒖h=j𝒥p((𝒆j(N))IM)𝒘he(pj00.5p)e(πL0.5p),{\bm{u}}_{h}=\frac{\sum_{j\in\mathcal{J}}\triangle p(({\bm{e}}_{j}^{(N)})^{\top}\otimes I_{M}){\bm{w}}_{h}}{e^{-(p_{j_{0}}-0.5\triangle p)}-e^{-(\pi L-0.5\triangle p)}}, (4.8)

with j0=min𝒥=min{j:pj0.5p>p=ηmax2T}j_{0}=\min\mathcal{J}=\min\{j:p_{j}-0.5\triangle p>p^{\Diamond}=\eta_{\max}^{2}T\}.

4.2 Error analysis for the spatial discretization

Following the general error estimates of Schrödingerisation in the extended domain in [15], we derive the specific estimates for the above approximation to the backward heat equation under the assumption that uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) satisfies (H1) or (H2).

Define the complex (N+1)(N+1) and (M+1)(M+1)-dimensional space with respect to pp and xx, respectively

XNp=span{eik(p/L):N2kN2},XMx=span{eilx:M2lM2}.X_{N}^{p}=\text{span}\{e^{ik(p/L)}:-\frac{N}{2}\leq k\leq\frac{N}{2}\},\quad X_{M}^{x}=\text{span}\{e^{ilx}:-\frac{M}{2}\leq l\leq\frac{M}{2}\}. (4.9)

The approximation of ww in the finite space XNp×XMxX_{N}^{p}\times X_{M}^{x} from the numerical solution in Eq. (4.5) is

whd(t,x,p)=|k|N2|l|M2w~k,leik(pL+π)eil(x+π),w~k,l=(𝒆jk(N)𝒆jl(M))Φpx1𝒘h(t),\displaystyle w_{h}^{d}(t,x,p)=\sum_{|k|\leq\frac{N}{2}}\sum_{|l|\leq\frac{M}{2}}\tilde{w}_{k,l}e^{ik(\frac{p}{L}+\pi)}e^{il(x+\pi)},\quad\tilde{w}_{k,l}=({\bm{e}}_{j_{k}}^{(N)}\otimes{\bm{e}}_{j_{l}}^{(M)})^{\top}\Phi_{px}^{-1}{\bm{w}}_{h}(t), (4.10)

where jk=k+N/2j_{k}=-k+N/2, jl=l+M/2j_{l}=-l+M/2. Correspondingly, the approximation of uu is defined by

uhd(t,x,p)=epwhd(t,x,p),orud(t,x,p)=1epeπLpπLwhd(t,x,q)dq,u_{h}^{d}(t,x,p)=e^{p}w_{h}^{d}(t,x,p),\quad\text{or}\quad u_{d}^{*}(t,x,p)=\frac{1}{e^{-p}-e^{-\pi L}}\int_{p}^{\pi L}w_{h}^{d}(t,x,q)\;\mathrm{d}q, (4.11)

where p>p=ηmax2Tp>p^{\Diamond}=\eta_{\max}^{2}T.

It is apparent that the discretization serves as an approximation for the following system with periodic boundary conditions:

{ddt𝒲=xxp𝒲inΩx×ΩpT>t0,𝒲(t,x,πL)=𝒲(t,x,πL),𝒲(t,π,p)=𝒲(t,π,p),𝒲(T,x,p)=𝒢(p)uT(x),\begin{cases}\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{W}=-\partial_{xxp}\mathcal{W}\quad\quad\;\text{in}\;\Omega_{x}\times\Omega_{p}\quad T>t\geq 0,\\ \mathcal{W}(t,x,-\pi L)=\mathcal{W}(t,x,\pi L),\quad\mathcal{W}(t,-\pi,p)=\mathcal{W}(t,\pi,p),\\ \mathcal{W}(T,x,p)=\mathcal{G}(p)u_{T}(x),\end{cases} (4.12)

where Ωp=(πL,πL)\Omega_{p}=(-\pi L,\pi L), and 𝒢\mathcal{G} is periodic with a period of 2πL2\pi L, such that

𝒢(p)=e|p2mπL|(2m1)πLp<(2m+1)πL,m.\mathcal{G}(p)=e^{-|p-2m\pi L|}\quad\quad(2m-1)\pi L\leq p<(2m+1)\pi L,\quad m\in\mathbb{Z}. (4.13)

Since 𝒲\mathcal{W} is also periodic with respective to xx, the Fourier transform on variable xx of 𝒲\mathcal{W} is defined by

𝒲^x(t,η,p)=12πeixη𝒲(t,x,p)dx.\displaystyle\hat{\mathcal{W}}^{x}(t,\eta,p)=\frac{1}{2\pi}\int_{\mathbb{R}}e^{ix\eta}\mathcal{W}(t,x,p)\;\mathrm{d}x. (4.14)

According to the fundamental results on regularity of transport equations, it is well known that the initial value problem (4.12) is well posed, and 𝒲(0,x,p)Hs(Ωx)×H1(Ωp)\mathcal{W}(0,x,p)\in H^{s}(\Omega_{x})\times H^{1}(\Omega_{p}) satisfies [9, Theorem 5, section 7.3]

𝒲(0,x,p)Hs(Ωx)×H1(Ωp)𝒢H1(Ωp)u0Hs(Ωx)w0Hs(Ωx)×H1(Ωp).\|\mathcal{W}(0,x,p)\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}\lesssim\|\mathcal{G}\|_{H^{1}(\Omega_{p})}\|u_{0}\|_{H^{s}(\Omega_{x})}\lesssim\|w_{0}\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}. (4.15)

In addition, the standard estimate of spectral methods shows

whd𝒲(0,x,p)L2(Ωp)×L2(Ωx)\displaystyle\|w_{h}^{d}-\mathcal{W}(0,x,p)\|_{L^{2}(\Omega_{p})\times L^{2}(\Omega_{x})} (p+xs)𝒲(0,x,p)Hs(Ωx)×H1(Ωp)\displaystyle\lesssim(\triangle p+\triangle x^{s})\|\mathcal{W}(0,x,p)\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}
(p+xs)w0Hs(Ωx)×H1(Ωp).\displaystyle\lesssim(\triangle p+\triangle x^{s})\|w_{0}\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}. (4.16)
Lemma 4.1.

Suppose ηmax\eta_{\max} satisfies (3.17), πL>3ηmax2T\pi L>3\eta_{\max}^{2}T, and uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) satisfies (H1) or (H2). Let w(t,x,p)=𝒲(t,x,p)w(t,x,p)\mathcal{E}_{w}(t,x,p)=\mathcal{W}(t,x,p)-w(t,x,p). It follows that

0T|w(t,,πL)|H1(Ωx)2dt52e2(πL3ηmax2T)uTL2(Ωx)2+e3ηmax2Tε2.\displaystyle\int_{0}^{T}|\mathcal{E}_{w}(t,\cdot,-\pi L)|_{H^{1}(\Omega_{x})}^{2}\mathrm{d}t\leq\frac{5}{2}e^{-2(\pi L-3\eta_{\max}^{2}T)}\|u_{T}\|^{2}_{L^{2}(\Omega_{x})}+e^{-3\eta_{\max}^{2}T}\varepsilon^{2}.
Proof.

It is easy to obtain from the system in Eq.(3.7) that

w^x(t,η,p)=e|p+η2(tT)|u^T(η)=e|p+η2(tT)|η2Tu^0(η).\displaystyle\hat{w}^{x}(t,\eta,p)=e^{-|p+\eta^{2}(t-T)|}\hat{u}_{T}(\eta)=e^{-|p+\eta^{2}(t-T)|-\eta^{2}T}\hat{u}_{0}(\eta). (4.17)

Similarly, one has

𝒲^x(t,η,p)=𝒢(p+η2(tT))u^T(η)=𝒢(p+η2(tT))eη2Tu^0(η).\hat{\mathcal{W}}^{x}(t,\eta,p)=\mathcal{G}(p+\eta^{2}(t-T))\hat{u}_{T}(\eta)=\mathcal{G}(p+\eta^{2}(t-T))e^{-\eta^{2}T}\hat{u}_{0}(\eta). (4.18)

Using the semi H1H^{1} norm in phase space, it yields

|w(t,,πL)|H1(Ωx)2=η2|w^x(t,η,πL)𝒲^x(t,η,πL)|2dη.|\mathcal{E}_{w}(t,\cdot,-\pi L)|_{H^{1}(\Omega_{x})}^{2}=\int_{\mathbb{R}}\eta^{2}|\hat{w}^{x}(t,\eta,-\pi L)-\hat{\mathcal{W}}^{x}(t,\eta,-\pi L)|^{2}\;\mathrm{d}\eta.

According to (4.17) and (4.18), changing the order of integration and letting q=πL+η2(tT)q=-\pi L+\eta^{2}(t-T), it yields

0T|w(t,,πL)|H1(Ωx)2dt=I1+I2,\displaystyle\int_{0}^{T}|\mathcal{E}_{w}(t,\cdot,-\pi L)|_{H^{1}(\Omega_{x})}^{2}\;\mathrm{d}t=I_{1}+I_{2}, (4.19)

where I1I_{1} and I2I_{2} are computed by

I1=\displaystyle I_{1}= |η|3ηmaxu^T2(η)πLη2TπL|eq𝒢(q)|2dqdη,\displaystyle\,\int_{|\eta|\leq\sqrt{3}\eta_{\max}}\hat{u}^{2}_{T}(\eta)\int_{-\pi L-\eta^{2}T}^{-\pi L}|e^{q}-\mathcal{G}(q)|^{2}\mathrm{d}q\mathrm{d}\eta,
I2=\displaystyle I_{2}= |η|>3ηmaxu^T2(η)πLη2TπL|eq𝒢(q)|2dqdη.\displaystyle\int_{|\eta|>\sqrt{3}\eta_{\max}}\hat{u}_{T}^{2}(\eta)\int_{-\pi L-\eta^{2}T}^{-\pi L}|e^{q}-\mathcal{G}(q)|^{2}\mathrm{d}q\mathrm{d}\eta.

Since 𝒢(q)\mathcal{G}(q) is periodic with a period of 2πL2\pi L defined in (4.13), πL>3ηmax2T\pi L>3\eta_{\max}^{2}T, and ηmax\eta_{\max} satisfies Eq. (3.17), one has

I1\displaystyle I_{1} =|η|3ηmaxu^T2πLη2TπL|eqe(q+2πL)|2dqdη\displaystyle=\int_{|\eta|\leq\sqrt{3}\eta_{\max}}\hat{u}_{T}^{2}\int_{-\pi L-\eta^{2}T}^{-\pi L}|e^{q}-e^{-(q+2\pi L)}|^{2}\;\mathrm{d}q\mathrm{d}\eta
12e2(πL3ηmax2T)uTL2(Ωx)2,\displaystyle\leq\frac{1}{2}e^{-2(\pi L-3\eta_{\max}^{2}T)}\|u_{T}\|^{2}_{L^{2}(\Omega_{x})}, (4.20)
I2\displaystyle I_{2} =|η|>3ηmaxu^T2πLη2TπL|eq𝒢(q)|2dqdη\displaystyle=\int_{|\eta|>\sqrt{3}\eta_{\max}}\hat{u}_{T}^{2}\int_{-\pi L-\eta^{2}T}^{-\pi L}|e^{q}-\mathcal{G}(q)|^{2}\mathrm{d}q\mathrm{d}\eta
2|η|>3ηmax(u^T2πLη2TπLe2qdq+e2η2Tu^02πLη2TπL|𝒢(q)|2dq)dη\displaystyle\leq 2\int_{|\eta|>\sqrt{3}\eta_{\max}}\bigg{(}\hat{u}_{T}^{2}\int_{-\pi L-\eta^{2}T}^{-\pi L}e^{2q}\mathrm{d}q+e^{-2\eta^{2}T}\hat{u}_{0}^{2}\int_{-\pi L-\eta^{2}T}^{-\pi L}|\mathcal{G}(q)|^{2}\mathrm{d}q\bigg{)}\mathrm{d}\eta
2e2πLuTL2(Ωx)2+|η|>3ηmaxeη2Tu^02dη\displaystyle\leq 2e^{-2\pi L}\|u_{T}\|_{L^{2}(\Omega_{x})}^{2}+\int_{|\eta|>\sqrt{3}\eta_{\max}}e^{-\eta^{2}T}\hat{u}_{0}^{2}\mathrm{d}\eta
2e2πLuTL2(Ωx)2+e3ηmax2Tε2.\displaystyle\leq 2e^{-2\pi L}\|u_{T}\|_{L^{2}(\Omega_{x})}^{2}+e^{-3\eta_{\max}^{2}T}\varepsilon^{2}. (4.21)

The proof is completed by inserting (4.20) and (4.21) into (4.19). ∎

Lemma 4.2.

Assume the assumptions in Lemma 4.1 hold. With w(t,x,p)w(t,x,p) and 𝒲(t,x,p)\mathcal{W}(t,x,p) defined in (3.5) and (4.12), respectively, it follows that

w0𝒲0L2(Ωx)×L2(Ωp)e(πL3ηmax2T)uTL2(Ωx)+e3/2ηmax2Tε,\|w_{0}-\mathcal{W}_{0}\|_{L^{2}(\Omega_{x})\times L^{2}(\Omega_{p})}\lesssim e^{-(\pi L-3\eta_{\max}^{2}T)}\|u_{T}\|_{L^{2}(\Omega_{x})}+e^{-3/2\eta_{\max}^{2}T}\varepsilon, (4.22)

where w0=w(0,x,p)w_{0}=w(0,x,p) and 𝒲0=𝒲(0,x,p)\mathcal{W}_{0}=\mathcal{W}(0,x,p).

Proof.

By introducing w=𝒲w\mathcal{E}_{w}=\mathcal{W}-w, one has

ddtw=xxpww(T,x,p)=0inΩx×Ωp.\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{E}_{w}=-\partial_{xxp}\mathcal{E}_{w}\quad\mathcal{E}_{w}(T,x,p)=0\;\;\text{in}\;\Omega_{x}\times\Omega_{p}. (4.23)

Multiplying Eq.(4.23) by w\mathcal{E}_{w}, it follows that

0TΩx×Ωptwwdxdpdt=0TΩx×Ωp(xxpw)wdxdpdt.\int_{0}^{T}\int_{\Omega_{x}\times\Omega_{p}}\partial_{t}\mathcal{E}_{w}\mathcal{E}_{w}\mathrm{d}x\mathrm{d}p\mathrm{d}t=\int_{0}^{T}\int_{\Omega_{x}\times\Omega_{p}}(-\partial_{xxp}\mathcal{E}_{w})\mathcal{E}_{w}\mathrm{d}x\mathrm{d}p\mathrm{d}t.

An integration by parts gives

0TddtwL2(Ωx)×L2(Ωp)2dt=0T|w(t,,πL)|H1(Ωx)2|w(t,,πL)|H1(Ωx)2dt.\displaystyle\int_{0}^{T}\frac{\mathrm{d}}{\mathrm{d}t}\|\mathcal{E}_{w}\|^{2}_{L^{2}(\Omega_{x})\times L^{2}(\Omega_{p})}\mathrm{d}t=\int_{0}^{T}|\mathcal{E}_{w}(t,\cdot,\pi L)|_{H^{1}(\Omega_{x})}^{2}-|\mathcal{E}_{w}(t,\cdot,-\pi L)|_{H^{1}(\Omega_{x})}^{2}\mathrm{d}t. (4.24)

From Lemma 4.1 and (4.24), one obtains

w(0,,)L2(Ωx)×L2(Ωp)(0T|w(t,,πL)|H1(Ωx)2dt)1/2\displaystyle\|\mathcal{E}_{w}(0,\cdot,\cdot)\|_{L^{2}(\Omega_{x})\times L^{2}(\Omega_{p})}\leq\big{(}\int_{0}^{T}|\mathcal{E}_{w}(t,\cdot,-\pi L)|_{H^{1}(\Omega_{x})}^{2}\mathrm{d}t\big{)}^{1/2}
\displaystyle\lesssim e(πL3ηmax2T)uTL2(Ωx)+e3/2ηmax2Tε.\displaystyle e^{-(\pi L-3\eta_{\max}^{2}T)}\|u_{T}\|_{L^{2}(\Omega_{x})}+e^{-3/2\eta_{\max}^{2}T}\varepsilon.

The proof is finished. ∎

Theorem 4.1.

Suppose ηmax\eta_{\max} satisfies (3.17), πL\pi L is large enough to satisfies (4.4), and uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}) satisfies (H1) or (H2). Define uhd=epwhdu_{h}^{d}=e^{p}w_{h}^{d} with pΩ~p=(p,p+)p\in\tilde{\Omega}_{p}=(p^{\Diamond},p^{\Diamond}+\mathcal{M}), and p=ηmax2Tp^{\Diamond}=\eta_{\max}^{2}T, \mathcal{M} is a length such that min{πLηmax2T,1/2ηmax2T}\mathcal{M}\leq\min\{\pi L-\eta_{\max}^{2}T,1/2\eta_{\max}^{2}T\}. There holds

u0uhdL2(Ω~p)×L2(Ωx)(p+xs)eηmax2T+w0Hs(Ωx)×H1(Ωp)+ε.\|u_{0}-u_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}\lesssim(\triangle p+\triangle x^{s})e^{\eta_{\max}^{2}T+\mathcal{M}}\|w_{0}\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}+\varepsilon. (4.25)
Proof.

From the recovery rule in Theorem 3.1, it follows that

u0uhdL2(Ω~p)×L2(Ωx)=epw0epwhdL2(Ω~p)×L2(Ωx).\|u_{0}-u_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}=\|e^{p}w_{0}-e^{p}w_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}. (4.26)

Using the triangle equality and Eq.(4.16), it yields

u0uhdL2(Ω~p)×L2(Ωx)\displaystyle\|u_{0}-u_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})} (4.27)
\displaystyle\leq ep𝒲0epwhdL2(Ω~p)×L2(Ωx)+epw0ep𝒲0L2(Ω~p)×L2(Ωx)\displaystyle\|e^{p}\mathcal{W}_{0}-e^{p}w_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}+\|e^{p}w_{0}-e^{p}\mathcal{W}_{0}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}
\displaystyle\leq (p+xs)eηmax2T+w0Hs(Ωx)×H1(Ωp)+eηmax2T+w0𝒲0L2(Ωx)×L2(Ω~p).\displaystyle(\triangle p+\triangle x^{s})e^{\eta_{\max}^{2}T+\mathcal{M}}\|w_{0}\|_{H^{s}(\Omega_{x})\times H^{1}(\Omega_{p})}+e^{\eta_{\max}^{2}T+\mathcal{M}}\|w_{0}-\mathcal{W}_{0}\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})}.

The proof is completed by using Lemma 4.2 , Eq.(4.4) and 12ηmax2T\mathcal{M}\leq\frac{1}{2}\eta_{\max}^{2}T. ∎

As can be seen from Theorem 3.1, the error increases as the computation time progresses from TT to 0, which is also reflected in the numerical calculations. The error we provided here corresponds to the error at the moment t=0t=0, which is the worst-case scenario. This aligns with the numerical test in section  6.2, where the error increases as the time approaches zero. Consequently, the error estimation in Theorem  4.1 can be considered as taking the LL^{\infty} norm in the time direction.

We point out that our algorithm offers three significant advantages. Firstly, the Hamiltonian nature of the semi-discrete system (4.5) allows for the development of a computationally stable scheme, provided the CFL condition is met. Secondly, Theorem 3.1 ensures a straightforward recovery of the original variable 𝒖h{\bm{u}}_{h} from 𝒘h{\bm{w}}_{h}. Although a time-dependent exponential growth factor eηmax2Te^{\eta_{\max}^{2}T} is introduced at this step, we highlight that the value of ηmax\eta_{\max} is relatively small, as noted in Remark 3.2. Furthermore, by choosing an appropriate interval in the extended space to recover the original variables, essentially truncating the Fourier modes of the input data, the originally ill-posed problem becomes well-posed. Although the initial-value problem to the Schrödingerised equation is well-posed even without this Fourier truncation, to recover 𝒖h{\bm{u}}_{h} one needs finite Fourier mode. Thirdly, our algorithm provides a quantum algorithm for solving ill-posed problems that can be implemented on a quantum computer (see section 7).

4.3 A higher order improvement in pp

The first order convergence in pp was due to the lack of regularity in ww, which is continuous but not in C1C^{1}. The convergence rate can be improved by choosing a smoother initial data for ww in the extended space. For example, consider the following setup:

ddtw=xxpwinΩx×Ωp,T>t0,w(T)=g(p)uT(x)inΩx×Ωp,\displaystyle\frac{\mathrm{d}}{\mathrm{d}t}w=-\partial_{xxp}w\quad\text{in}\;\Omega_{x}\times\Omega_{p},\quad T>t\geq 0,\quad w(T)=g(p)u_{T}(x)\quad\text{in}\;\Omega_{x}\times\Omega_{p}, (4.28)

where g(p)g(p) defined in \mathbb{R} satisfies

g(p)={h(p)p(,0],epp(0,),g(p)=\begin{cases}h(p)\quad&p\in(-\infty,0],\\ e^{-p}\quad&p\in(0,\infty),\end{cases} (4.29)

with h(p)L2((,0))h(p)\in L^{2}((-\infty,0)). It is easy to check the Fourier transform of ww denoted by w^\hat{w} satisfies

ddtw^=iξη2w^,w^(T,ξ,η)=g^(ξ)u^T(η),\frac{\mathrm{d}}{\mathrm{d}t}\hat{w}=-i\xi\eta^{2}\hat{w},\quad\hat{w}(T,\xi,\eta)=\hat{g}(\xi)\hat{u}_{T}(\eta),

where g^(ξ)=(g)\hat{g}(\xi)=\mathscr{F}(g), and w(t,x,p)=g(p+η2(tT))u^T(η)eixηdηw(t,x,p)=\int_{\mathbb{R}}g(p+\eta^{2}(t-T))\hat{u}_{T}(\eta)e^{-ix\eta}\;\mathrm{d}\eta. In addition, the results in section 23 still hold, since we do not care the solution when p<0p<0.

From Eq.(4.16) and Theorem 4.1, the limitation of the convergence order mainly comes from the non-smoothness of g(p)g(p). In order to improve the whole convergence rates, we could smooth g(p)g(p) by using higher order polynomials, for example

h(p)=𝒫2k+1(p),p[1,0],h(p)=ep,p(,1),h(p)=\mathcal{P}_{2k+1}(p),\quad p\in[-1,0],\quad\quad h(p)=e^{p},\quad p\in(-\infty,-1), (4.30)

where 𝒫2k+1\mathcal{P}_{2k+1} is a Hermite interpolation [33, section 2.1.5] and satisfies

(pα𝒫2k+1(p))|p=0\displaystyle\big{(}\partial_{p^{\alpha}}\mathcal{P}_{2k+1}(p)\big{)}|_{p=0} =(pα(ep))|p=0=(1)α,\displaystyle=\big{(}\partial_{p^{\alpha}}(e^{-p})\big{)}|_{p=0}=(-1)^{\alpha},
(pα𝒫2k+1(p))|p=1\displaystyle\big{(}\partial_{p^{\alpha}}\mathcal{P}_{2k+1}(p)\big{)}|_{p=-1} =(pα(ep))|p=1=e1.\displaystyle=\big{(}\partial_{p^{\alpha}}(e^{p})\big{)}|_{p=-1}=e^{-1}.

Here 0αk0\leq\alpha\leq k is an integer. Therefore, gCk()g\in C^{k}(\mathbb{R}) and one has the estimate of uhdu_{h}^{d} as

u0uhdL2(Ω~p)×L2(Ωx)(pk+1+xs)u0Hs(Ωx)+ε.\|u_{0}-u_{h}^{d}\|_{L^{2}(\tilde{\Omega}_{p})\times L^{2}(\Omega_{x})}\lesssim(\triangle p^{k+1}+\triangle x^{s})\|u_{0}\|_{H^{s}(\Omega_{x})}+\varepsilon.

The choice of kk can be chosen such that pk+1=𝒪(xs)\triangle p^{k+1}=\mathscr{O}(\triangle x^{s}). We use k=1k=1 in our numerical experiments in section 6.

The linear combination of Hamiltonian simulation (LCHS) method introduced in [2] employs the continuous Fourier transform in pp, and then applying numerical integration to complete the inverse of Fourier transform, choosing p=0p=0 to recover the target variables uu. Initially, it is a first-order method. Subsequent enhancements in [1] improve the accuracy of the original LCHS algorithms by introducing new kernel functions with faster decay and truncating the Fourier transform integral to a finite interval [X,X][-X,X], where X=(log(1/ε))1/βX=(\log(1/\varepsilon))^{1/\beta} (0<β<10<\beta<1) truncates the continuous Fourier variable ξ\xi. We emphasize that the fundamental principle remains consistent with our approach to smooth extension. Indeed, the Fourier transforms of the kernel functions are epe^{-p} for p>0p>0, whereas they exhibit significant differences on the negative real axis. Therefore, the transformed kernel function can be interpreted as a smooth extension in the pp space.

5 Application to the convection equations with purely imaginary wave speed

In this section, we concentrate on the linear convection equation with an imaginary convection speed which is unstable thus hard to simulate numerically. This is a simple model for more complicated, physically interesting problems such as Maxwell’s equation with negative index of refraction [30, 28] that has applications in meta materials. We consider the one-dimensional model with periodic boundary condition

tv=ixvinΩx,v(x,0)=v0,\partial_{t}v=i\partial_{x}v\quad\;\text{in}\;\Omega_{x},\quad v(x,0)=v_{0}, (5.1)

where Ωx=[π,π]\Omega_{x}=[-\pi,\pi]. This problem is ill-posed since, by taking a Fourier transform on xx, one gets

tv^=ηv^,\partial_{t}\hat{v}=-\eta\hat{v},

where v^\hat{v} is the Fourier transform of vv in xx. Assume the solution of (5.1) in Sobolev space exits, the exact solution is

v(x,t)=eixηeηtv^0dη.v(x,t)=\int_{\mathbb{R}}e^{-ix\eta}e^{-\eta t}\hat{v}_{0}\;\mathrm{d}\eta. (5.2)

Clearly, the solution contains exponential growing modes corresponding to η<0\eta<0. Suppose v^0H0s\hat{v}_{0}\in H_{0}^{s}, then v(t,x)Hs(Ωx)v(t,x)\in H^{s}(\Omega_{x}). The Schrödingerisation gives

ddtw=ixpwinΩx×Ωp,w(0,x,p)=e|p|v0(x)inΩx×Ωp,\displaystyle\frac{\mathrm{d}}{\mathrm{d}t}w=-i\partial_{xp}w\quad\text{in}\;\Omega_{x}\times\Omega_{p},\quad w(0,x,p)=e^{-|p|}v_{0}(x)\quad\text{in}\;\Omega_{x}\times\Omega_{p}, (5.3)

where Ωp=(,)\Omega_{p}=(-\infty,\infty). The Fourier transform shows

ddtw^=iξηw^,w^(0,ξ,η)=v^0(η)π(1+ξ2),\frac{\mathrm{d}}{\mathrm{d}t}\hat{w}=i\xi\eta\hat{w},\quad\hat{w}(0,\xi,\eta)=\frac{\hat{v}_{0}(\eta)}{\pi(1+\xi^{2})}, (5.4)

which has a bounded solution for all time, with the exact solution given by

w(t,x,p)=ei(xη+pξ)eiξηtw^0dηdξ=e|pηt|v^0(η)eixηdη.w(t,x,p)=\int_{\mathbb{R}}\int_{\mathbb{R}}e^{-i(x\eta+p\xi)}e^{i\xi\eta t}\hat{w}_{0}\;\mathrm{d}\eta\mathrm{d}\xi=\int_{\mathbb{R}}e^{-|p-\eta t|}\hat{v}_{0}(\eta)e^{-ix\eta}\;\mathrm{d}\eta.

Obviously, the ww-equation (5.3) and the Hamiltonian system (5.4) can be simulated by a stable scheme in both quantum computers and classical ones. We define an approximate solution to the truncation as follows.

Definition 5.1.

Define

wηmax=e|pηt|v^0χmaxeixηdη,w_{\eta_{\max}}=\int_{\mathbb{R}}e^{-|p-\eta t|}\hat{v}_{0}\chi_{\max}e^{-ix\eta}\;\mathrm{d}\eta, (5.5)

where χmax\chi_{\max} is a characteristic function of [ηmax,ηmax][-\eta_{\max},\eta_{\max}]. The truncated solution is

vηmax(t,x,p)=epwηmax(t,x,p),orvηmax(t,x,p)=eppw(t,x,q)dq,p>p,v_{\eta_{\max}}(t,x,p)=e^{p}w_{\eta_{\max}}(t,x,p),\quad\text{or}\;\quad v_{\eta_{\max}}(t,x,p)=e^{p}\int_{p}^{\infty}w(t,x,q)\;\mathrm{d}q,\quad p>p^{\Diamond}, (5.6)

with p=ηmaxTp^{\Diamond}=\eta_{\max}T.

Following Theorem 3.1, one gets the estimate for recovery. The proof is omitted here.

Theorem 5.1.

Let v(t,x)v(t,x) and w(t,x,p)w(t,x,p) be the exact solution of (5.1), (5.3), respectively, on the interval t[0,T]t\in[0,T]. Suppose there exists an a priori bound vTHs(Ωx)\|v_{T}\|_{H^{s}(\Omega_{x})} and vηmax,T=vηmax(T,x,p)v_{\eta_{\max},T}=v_{\eta_{\max}}(T,x,p) is given by (5.6) where p>p=ηmaxTp>p^{\Diamond}=\eta_{\max}T. Then

vTvηmax,TL2(Ωx)δ(ηmax)ηmaxs,\|v_{T}-v_{\eta_{\max},T}\|_{L^{2}(\Omega_{x})}\leq\frac{\delta(\eta_{\max})}{\eta_{\max}^{s}}, (5.7)

where δ(ηmax)=(ηmax(1+η2)s|v^T|2dη)12\delta(\eta_{\max})=(\int_{\eta_{\max}}^{\infty}(1+\eta^{2})^{s}|\hat{v}_{T}|^{2}\;\mathrm{d}\eta)^{\frac{1}{2}}.

Similar to Remark 3.2, it follows from vTHs(Ωx)v_{T}\in H^{s}(\Omega_{x}) that δ(ηmax)\delta(\eta_{\max}) is a small number. In order to keep the error within ε\varepsilon, one could choose ηmax(δε)1s\eta_{\max}\geq(\frac{\delta}{\varepsilon})^{\frac{1}{s}}. For example, if u=α(t)cos(ω0x)u=\alpha(t)\cos(\omega_{0}x), then one gets vT=epw(T,x,p)v_{T}=e^{p}w(T,x,p) for p>p=ηmaxT=ω0Tp>p^{\Diamond}=\eta_{\max}T=\omega_{0}T.

5.1 Discretization for Schrödingerisation of the convection equations with imaginary convective terms

In this section, we give the discretization of Schrödingerisation for the convection equations with purely imaginary wave speed. If we use the spectral method, the algorithm is quite similar to section 4.1. It is obtained by letting A=DxA=D_{x} in (4.5). It is obvious to see that AA is Hermitian and has both positive and negative eigenvalues. It is hard to construct a stable scheme if one solves the original problem. However, after Schrödingerisation, it becomes a Hamiltonian system which is quite easy to approximate in both classical and quantum computers. Applying Theorem 5.1, one gets the desired variables.

6 Numerical tests

In this section, we perform several numerical simulations for the backward heat equation and imaginary convection equation by Schrödingeriza-tion in order to check the performance (in recovery and convergence rates) of our methods. For all numerical simulations, we perform the tests in the classical computers by using the Crank-Nicolson method for temporal discretization. In addition, we apply the trapezoidal rule for numerical integration of all of the tests. In order to get higher-order convergence rates of discretization (4.5), we smooth the initial data w(T)w(T) in (3.5) by choosing

g(p)={(3+3e1)p3+(5+4e1)p2p+1p(1,0),e|p|p(,1][0,).g(p)=\begin{cases}(-3+3e^{-1})p^{3}+(-5+4e^{-1})p^{2}-p+1\quad p\in(-1,0),\\ e^{-|p|}\quad p\in(-\infty,-1]\cup[0,\infty).\end{cases} (6.1)

Therefore, g(p)H2(Ωp)g(p)\in H^{2}(\Omega_{p}).

6.1 Approximation of smooth solutions

These tests are used to evaluate the recovery and the order of accuracy of our method. More precisely, we want to show the choice of pp^{\Diamond} in (3.18) and convergence rates in Theorems 4.1.

In the first test, we consider the backward heat equation in Ωx=[0,2]\Omega_{x}=[0,2] with Dirichlet boundary condition u(T,0)=u(T,2)=0u(T,0)=u(T,2)=0 and T=1T=1. We take a smooth solution

u=exp(π24t)sin(πx2),u=\exp(-\frac{\pi^{2}}{4}t)\sin(\frac{\pi x}{2}), (6.2)

and the initial data is uT=exp(π24)sin(πx2)u_{T}=\exp(-\frac{\pi^{2}}{4})\sin(\frac{\pi x}{2}). We use the finite difference method for spatial discretization with AA defined by

A=1x2[2112112112],A=\frac{1}{\triangle x^{2}}\begin{bmatrix}-2&1&&&&\\ 1&-2&1&&&\\ &\ddots&\ddots&\ddots&\\ &&1&-2&1\\ &&&1&-2\end{bmatrix}, (6.3)

where x\triangle x is the mesh size. The computation stops at t=0t=0. According to (3.18), one has ηmax=π2\eta_{\max}=\frac{\pi}{2} and p=π24p^{\Diamond}=\frac{\pi^{2}}{4}. The numerical results are shown in Fig. 1 and Tab. 1. From the plot on the left in Fig. 1, it can be seen that the error between uu and uhd=whdepu_{h}^{d}=w_{h}^{d}e^{p} drops precipitously at pp^{\Diamond}, and numerical solutions of Schrödingerisation recovered by choosing one point or numerical integration are close to the exact solution. According to Tab. 1, second-order convergence rates of whdepuL2(Ωx)×L2(Ω~p)\|w_{h}^{d}e^{p}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})} and uduL2(Ωx)\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})} are obtained, respectively, where ud=310whddpe3e10u_{d}^{*}=\frac{\int_{3}^{10}w_{h}^{d}\;\mathrm{d}p}{e^{-3}-e^{-10}}.

Refer to caption
Refer to caption
Fig. 1: Left: whdepuL2(Ωx)\|w_{h}^{d}e^{p}-u\|_{L^{2}(\Omega_{x})} with respect to pp, with whdw_{h}^{d} computed by (4.5)-(4.10). Right: the recovery from Schrödingerisation by choosing p>p=π2/4p>p^{\Diamond}=\pi^{2}/4.
(p,x)(\triangle p,\triangle x) (1027,125)(\frac{10}{2^{7}},\frac{1}{2^{5}}) order (1028,126)(\frac{10}{2^{8}},\frac{1}{2^{6}}) order (1029,127)(\frac{10}{2^{9}},\frac{1}{2^{7}}) order
uhduL2(Ωx)×L2(Ω~p)\|u_{h}^{d}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})} 1.64e-03 - 3.25e-04 2.33 8.05e-05 2.01
uduL2(Ωx)\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})} 7.48e-04 - 1.86e-04 2.01 4.56e-05 2.00
Tab. 1: The convergence rates of uhduL2(Ωx)×L2(Ω~p)\|u_{h}^{d}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})} and uduL2(Ωx)\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})}, where uhdu_{h}^{d} is computed by (4.5)-(4.11) and ud=310whddpe3e10u_{d}^{*}=\frac{\int_{3}^{10}w_{h}^{d}\;\mathrm{d}p}{e^{-3}-e^{-10}}, Ω~p=[3,10]\tilde{\Omega}_{p}=[3,10] and t=x23\triangle t=\frac{\triangle x}{2^{3}}.

Next, we consider another exact solution set by

u=exp(9π2t)sin(3πx)in[0,2],u=\exp(-9\pi^{2}t)\sin(3\pi x)\quad\text{in}\;[0,2], (6.4)

with periodic boundary conditions and the initial data is uT=exp(9π2)sin(3πx)u_{T}=\exp(-9\pi^{2})\sin(3\pi x). We apply the spectral method to discrete the xx-domain. From Theorem 3.1 and Remark 3.2, we deduce that p=ω02T=9π290p^{\Diamond}=\omega_{0}^{2}T=9\pi^{2}\approx 90. From Fig. 2, it can be seen that u=epwu=e^{p}w when pp90p\geq p^{\Diamond}\approx 90, and the numerical solutions are very close to the exact solution. In Tab. 2, the L2L^{2} errors of the method (4.5)-(4.11) are presented. They show the optimal order uhduL2(Ωx)×L2(Ω~p)p2\|u_{h}^{d}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})}\sim\triangle p^{2}, uduL2(Ωx)p2\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})}\sim\triangle p^{2} are obtained when p0\triangle p\to 0, where Ω~p=[90,95]\tilde{\Omega}_{p}=[90,95], and uhd=epwhdu_{h}^{d}=e^{p}w_{h}^{d}, ud=9095whddpe90e95u_{d}^{*}=\frac{\int_{90}^{95}w_{h}^{d}\;\mathrm{d}p}{e^{-90}-e^{-95}}.

Refer to caption
Refer to caption
Fig. 2: Left: whdepuL2(Ωx)\|w_{h}^{d}e^{p}-u\|_{L^{2}(\Omega_{x})} with respect to pp, with whdw_{h}^{d} computed by (4.5)-(4.10). Right: the recovery from Schrödingerisation by choosing p>p=9π2p>p^{\Diamond}=9\pi^{2}.
(p,x)(\triangle p,\triangle x) (9528,126)(\frac{95}{2^{8}},\frac{1}{2^{6}}) order (9529,127)(\frac{95}{2^{9}},\frac{1}{2^{7}}) order (95210,128)(\frac{95}{2^{10}},\frac{1}{2^{8}}) order
uhduL2(Ωx)×L2(Ω~p)\|u_{h}^{d}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})} 4.73e-01 - 1.21e-01 1.96 3.07e-02 1.97
uduL2(Ωx)\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})} 1.37e-01 - 5.08e-02 1.43 1.35e-02 1.90
Tab. 2: The convergence rates of uhduL2(Ωx)×L2(Ω~p)\|u_{h}^{d}-u\|_{L^{2}(\Omega_{x})\times L^{2}(\tilde{\Omega}_{p})} and uduL2(Ωx)\|u_{d}^{*}-u\|_{L^{2}(\Omega_{x})}, respectively, where uhdu_{h}^{d} is computed by (4.10)-(4.11) and ud=9095whddpe90e95u_{d}^{*}=\frac{\int_{90}^{95}w_{h}^{d}\;\mathrm{d}p}{e^{-90}-e^{-95}}, Ω~p=[90,95]\tilde{\Omega}_{p}=[90,95], t=x24\triangle t=\frac{\triangle x}{2^{4}}.

6.2 Approximation of a piece-wise smooth solution

Now, we consider a piece-wise smooth solution in (,)(-\infty,\infty)

u(x,0)={|x|+1x[1,1],0otherwise.u(x,0)=\begin{cases}-|x|+1\quad x\in[-1,1],\\ 0\quad otherwise.\end{cases} (6.5)

The tests are done in the interval x[20,20]x\in[-20,20] and x=4027\triangle x=\frac{40}{2^{7}}, t=128\triangle t=\frac{1}{2^{8}}. We use the finite difference method to simulate the heat equation with the initial condition given by (6.5). Thus, we get the approximate solution to uTu_{T} at T=1T=1. According to Theorem 3.1, we choose ε=x\varepsilon=\triangle x, δ(ηmax)=1\delta(\eta_{\max})=1 and s=2s=2, 22 and 11 for recovering the target variables u(t)|t=0.5u(t)|_{t=0.5}, u(t)|t=0.25u(t)|_{t=0.25} and u(t)|t=0u(t)|_{t=0}, respectively. Thus, it yields ηmax=(1x)1/2=3.2\eta_{\max}=(\frac{1}{\triangle x})^{1/2}=\sqrt{3.2}, (1x)1/2=3.2(\frac{1}{\triangle x})^{1/2}=\sqrt{3.2} and 1x=3.2\frac{1}{\triangle x}=3.2. The results are shown in Fig. 3 with uhdu_{h}^{d} computed by (4.5)-(4.11) and p[30,30]p\in[-30,30], p=60210\triangle p=\frac{60}{2^{10}}. From the plot of Fig. 3, we find that the error is larger when tt is smaller, which is consistent with the estimate in Theorem 3.1.

Refer to caption
Refer to caption
Refer to caption
Fig. 3: The exact solution in the legend is the numerical solution at time t=0.5t=0.5, t=0.25t=0.25, and t=0t=0, respectively, obtained by solving the forward heat conduction equation using the finite difference method. The results of Schrödingerisation are shown with ηmax=(1x)1/2=3.2,(1x)1/2=3.2,1x=3.2\eta_{\max}=(\frac{1}{\triangle x})^{1/2}=\sqrt{3.2},(\frac{1}{\triangle x})^{1/2}=\sqrt{3.2},\frac{1}{\triangle x}=3.2, respectively.

6.3 Input data with noises

In this test, we investigate the cases with the input data containing noises. The exact solution in \mathbb{R} is set by

u(x,t)=11+4tex21+4t.u(x,t)=\frac{1}{\sqrt{1+4t}}e^{-\frac{x^{2}}{1+4t}}. (6.6)

The input data is uTζ=uT+ζ0rand(x)u_{T}^{\zeta}=u_{T}+\zeta_{0}\,\text{rand}(x). The magnitude ζ0\zeta_{0} indicates the noise level of the measurement data, and rand(x)\text{rand}(x) is a random number such that 1rand(x)1-1\leq\text{rand}(x)\leq 1. The tests are truncated to the interval [10,10][-10,10] and T=1T=1. The noise levels are ζ0=6×102\zeta_{0}=6\times 10^{-2}, 6×1036\times 10^{-3} and 6×1046\times 10^{-4}. We apply (4.5)-(4.11) to discretize the Schrödingerisation with p[20,20]p\in[-20,20] and p=1026\triangle p=\frac{10}{2^{6}}. We use the finite difference method to discretize the xx-domain with x=1026\triangle x=\frac{10}{2^{6}}, t=1210\triangle t=\frac{1}{2^{10}}. The results are shown in Fig. 4. According to Theorem 3.2, it is hard to find ηmax\eta_{\max} to satisfy δ(ηmax)ηmaxs+eηmax2Tζ0ε\frac{\delta(\eta_{\max})}{\eta_{\max}^{s}}+e^{\eta_{\max}^{2}T}\zeta_{0}\leq\varepsilon for any fixed ζ0\zeta_{0}, TT and ε\varepsilon. However one could choose ηmax=ln((1ζ0)1T(ln1ζ0)s2T)\eta_{\max}=\sqrt{\ln\big{(}(\frac{1}{\zeta_{0}})^{\frac{1}{T}}(\ln\frac{1}{\zeta_{0}})^{\frac{-s}{2T}}\big{)}} to get u(t)uηmax,ζ(t)L2(Ωx)(ln(1ζ0))s2T0\|u(t)-u_{\eta_{\max},\zeta}(t)\|_{L^{2}(\Omega_{x})}\lesssim(\ln(\frac{1}{\zeta_{0}}))^{-\frac{s}{2T}}\to 0 as ζ0\zeta_{0} tends to zero under the assumption Tln(1/ζ0)T\leq\ln(1/\zeta_{0}), ζ0<1\zeta_{0}<1. By investigating the cases of different ζ0\zeta_{0}, we find the numerical solution of Schrödingerisation approximates uηmax,ζu_{\eta_{\max},\zeta} and tends to the exact solution as ζ0\zeta_{0} goes to zero. The oscillation of the numerical solution comes from two aspects, one is the truncation of the calculation area of xx, and the other is the finite difference method of calculating the discontinuous input data.

Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Fig. 4: The first row: input data with different noise levels from left to right. The noise levels are 6×1026\times 10^{-2}, 6×1036\times 10^{-3} and 6×1046\times 10^{-4}. The second row: results of Schrödingerisation computed by (4.5)-(4.11) using the input data above with ηmax=1.5,2,2.5\eta_{\max}=1.5,2,2.5,respectively.

6.4 The convection equation with imaginary wave speed

Now we consider the convection equations with imaginary wave speed to test the accuracy of the recovery. In this test, the exact solution is

v(t,x)=cos(3π(x+t)),v(t,x)=\cos(3\pi(x+t)), (6.7)

and the simulation stops at T=1T=1. Therefore the source term is obtained by f=tuixuf=\partial_{t}u-i\partial_{x}u with uu defined in (6.7). We use the spectral method on pp and xx, then get the linear system:

ddt𝒘~h=i(DpDx)𝒘~h+𝒇~h,𝒘~h(0)=(Φp1Φ1)𝒘h(0),\frac{\mathrm{d}}{\mathrm{d}t}\tilde{\bm{w}}_{h}=i(D_{p}\otimes D_{x})\tilde{\bm{w}}_{h}+\tilde{\bm{f}}_{h},\quad\tilde{\bm{w}}_{h}(0)=(\Phi_{p}^{-1}\otimes\Phi^{-1}){\bm{w}}_{h}(0), (6.8)

where 𝒇~h=(Φp1Φ1)𝒇h\tilde{\bm{f}}_{h}=(\Phi_{p}^{-1}\otimes\Phi^{-1}){\bm{f}}_{h}, with 𝒇h=j=0M1l=0N1f(xj,t)e|pl|(𝒆l(N)𝒆j(M)){\bm{f}}_{h}=\sum\limits_{j=0}^{M-1}\sum\limits_{l=0}^{N-1}f(x_{j},t)e^{-|p_{l}|}({\bm{e}}_{l}^{(N)}\otimes{\bm{e}}_{j}^{(M)}). In order to obtain unitary dynamical systems to facilitate operation on quantum computers, one needs to use the technique of dealing with source terms in [15]. In Fig. 5, one can find p3πTp^{\Diamond}\approx 3\pi T which confirms Theorem 5.1, and the numerical solutions are close to the exact one. Since the solution is not smooth enough when using the spectral method, the oscillation appears in the error between vv and vhdv_{h}^{d} in Fig. 5.

Refer to caption
Refer to caption
Fig. 5: Left: whdepvL2(Ωx)\|w_{h}^{d}e^{p}-v\|_{L^{2}(\Omega_{x})} with respect to pp, where whdw_{h}^{d} is from (4.5). Right: the recovery from Schrödingerisation by choosing p>p=10p>p^{\Diamond}=10, where the numerical solution is obtained by vd=1015whddpe10e15v_{d}^{*}=\frac{\int_{10}^{15}w_{h}^{d}\;\mathrm{d}p}{e^{-10}-e^{-15}}, p[20,20]p\in[-20,20], p=1028\triangle p=\frac{10}{2^{8}} and x=126\triangle x=\frac{1}{2^{6}}.

7 Quantum algorithms for ill-posed problems

The above numerical sch- eme is a new scheme that can be used on both classical and quantum devices based on qubits or qumodes (continuous variables)[14].

7.1 Qubit-based quantum computing

Since Eq.(4.5) is a Hamiltonian system, a quantum simulation can be carried out such as quantum signal processing (QSP)[24], linear combination of unitaries (LCU) [7], etc. The complete circuit for implementing the quantum simulation of |𝒖h(t)=𝒖h(t)/𝒖h(t)|{\bm{u}}_{h}(t)\rangle={\bm{u}}_{h}(t)/\|{\bm{u}}_{h}(t)\| is illustrated in Fig. 6, where |𝒖h(t)|{\bm{u}}_{h}(t)\rangle is a quantum state.

\Qcircuit@C=1em @R=2em \lstick|𝒈h|{\bm{g}}_{h}\rangle & \qw \gateQFT \qw \multigate1U \qw \gateIQFT \qw \qw\meterB— k ⟩
\lstick|𝒖h(T)|{\bm{u}}_{h}(T)\rangle \qw \gateQFT \qw \ghostU \qw \gateIQFT \qw \qw |𝒖h(t)|{\bm{u}}_{h}(t)\rangle

Fig. 6: Quantum circuit for Schrödingerisation of Eq. (4.2), UU is a unitary matrix approximating 𝒰=exp(i(DpA)(Tt))\mathcal{U}=\exp(i(D_{p}\otimes A)(T-t)), and QFT (IQFT) denotes the (inverse) quantum Fourier transform.

For the specific ill-posed problems, the difference from well-posed problems lie in (i) the cost of unitarily evolving the system in Eq. (4.5), and (ii) the cost of final measurement to retrieve |𝒖h(t)𝒖h(t)/𝒖h(t)|{\bm{u}}_{h}(t)\rangle\equiv\bm{u}_{h}(t)/\|{\bm{u}}_{h}(t)\|, t<Tt<T, depending on the specification of possible pp^{\Diamond} for different problems.

Since the evolution is unitary, the cost analysis is similar whether one is running forward or backward in time. The only difference is that the initial state used in the forward equation is |𝒖h(0)|{\bm{u}}_{h}(0)\rangle plus the ancilla state, whereas in the backward equation it is |𝒖h(T)|{\bm{u}}_{h}(T)\rangle plus the same ancilla state (see Fig.  6). In quantum algorithms, Hamiltonian simulation with nearly optimal dependence on all parameters can be found in [5], with complexity given by the next lemma.

Lemma 7.1.

For a Hamiltonian system ddt𝐮=iH𝐮\frac{\mathrm{d}}{\mathrm{d}t}{\bm{u}}=-iH{\bm{u}} with HH a Hermitian matrix acting on mHm_{H} qubits can be simulated within error ε\varepsilon with 𝒪(τlog(τε)/loglog(τε))\mathscr{O}\big{(}\tau\log(\frac{\tau}{\varepsilon})/\log\log(\frac{\tau}{\varepsilon})\big{)} queries and 𝒪(τmHLpolylog)\mathscr{O}\big{(}\tau m_{H}L_{\text{polylog}}\big{)} additional 2-qubits gates, where τ=s(H)HmaxT\tau=s(H)\|H\|_{\max}T, s(H)s(H) is the sparsity of HH (maximum number of nonzero entries in each row), Hmax\|H\|_{\max} is the max-norm (value of largest entry in absolute value), TT is the evolution time, and

Lpolylog=[1+log2.5(τ/ε)]log(τ/ε)loglog(τ/ε).L_{\text{polylog}}=\big{[}1+\log_{2.5}(\tau/\varepsilon)\big{]}\frac{\log(\tau/\varepsilon)}{\log\log(\tau/\varepsilon)}.

In the case of Eq.(4.5), since the spatial discretization is a second-order scheme x2ε\triangle x^{2}\sim\varepsilon, we need 𝒪(dlog(1ε))\mathscr{O}(d\log(\frac{1}{\sqrt{\varepsilon}})) qubits for xx variable where dd is the dimension. It is crucial to note that if one employs the smooth initialization method for the Schrödingerized equation, as introduced in section 4.3, and discretizes this smooth function in terms of pp instead, both the initial data and the solution in pp will belong to the class CkC^{k} for any integer k1k\geq 1. Consequently, if a spectral method is utilized, this approach will yield essentially spectral accuracy in the approximations within the extended pp space. The extra qubits used in the extension domain pp is almost 𝒪(loglog(1ε))\mathscr{O}(\log\log(\frac{1}{\varepsilon})). Therefore, the required number of qubits is

mH=𝒪(dlog(1ε)+loglog(1ε)),m_{H}=\mathscr{O}(d\log(\frac{1}{\sqrt{\varepsilon}})+\log\log(\frac{1}{\varepsilon})),

the Hermitian matrix H=DpAH=D_{p}\otimes A satisfies Hmax=𝒪(1εlog(1ε))\|H\|_{\max}=\mathscr{O}(\frac{1}{\varepsilon}\log(\frac{1}{\varepsilon})) and the sparsity s(H)=𝒪(d)s(H)=\mathscr{O}(d). By applying Lemma 7.1, one can directly obtain the complexity of Schrödingerisation as follows.

Lemma 7.2.

Given sparse-access to the Hermitian matrix H=DpAH=D_{p}\otimes A, and the initial quantum state |𝐮h(T)|{\bm{u}}_{h}(T)\rangle has been obtained. The quantum state |𝐮h(t)|{\bm{u}}_{h}(t)\rangle can be prepared to precision ε\varepsilon with 𝒪~(dTε)\tilde{\mathscr{O}}(\frac{dT}{\varepsilon}) queries and 𝒪~(d2Tε)\tilde{\mathscr{O}}(\frac{d^{2}T}{\varepsilon}) additional 2-qubits gates, where 𝒪~\tilde{\mathscr{O}} denotes the case where all logarithmic factors are suppressed.

This reduces the complexity of the Schrödingerisation based quantum algorithms for any dynamical system introduced in [16, 17], wherein the number of 2-qubit gates required for the heat equation is 𝒪~(d2Tε2)\tilde{\mathscr{O}}(\frac{d^{2}T}{\varepsilon^{2}}). Furthermore, this quantum approach demonstrates polynomial-level acceleration compared to classical algorithms for solving the forward heat equation.

Different values of pp^{\Diamond} affect the probability of retrieving the correct final quantum state |𝒖h(t)|{\bm{u}}_{h}(t)\rangle for t<Tt<T. The final step involves measurement of pp. There are in principle two schemes from Theorem 2.1, where both schemes give a success probability proportional to K(u(t)L2(Ωx)2/u(T)L2(Ωx)2)K(\|u(t)\|^{2}_{L^{2}(\Omega_{x})}/\|u(T)\|^{2}_{L^{2}(\Omega_{x})}), thus 𝒪(K1u(T)L2(Ωx)2/u(t)L2(Ωx)2)\mathscr{O}(K^{-1}\|u(T)\|^{2}_{L^{2}(\Omega_{x})}/\|u(t)\|^{2}_{L^{2}(\Omega_{x})}) measurements are needed, where KK is a factor depending on p=ηmax2Tp^{\Diamond}=\eta_{\max}^{2}T, for instance see [16, 14]. The first scheme is the recovery by measurement of one point in Eq. (2.4). This corresponds to accepting the resulting state so long as the measured p>ηmax2Tp>\eta_{\max}^{2}T. In the qubit context for example, the largest value Ke2ηmax2Te2(δε)2sTK\sim e^{-2\eta^{2}_{\max}T}\sim e^{-2(\frac{\delta}{\varepsilon})^{\frac{2}{s}}T}, if uTHs(Ωx)u_{T}\in H^{s}(\Omega_{x}). The second scheme is the recovery through the integration method in Eq. (2.5). For a bounded domain, the retrieval process then involves the projection of |w(T)|w(T)\rangle onto the [ηmax2T,πL][\eta^{2}_{\max}T,\pi L] domain. In this case, K(pπLepdp)2=(eπL+ep)2(eπL+eηmax2T)2(eπL+e(δε)2s)2)K\sim(\int_{p^{\Diamond}}^{\pi L}e^{-p}dp)^{2}=(e^{-\pi L}+e^{-p^{\Diamond}})^{2}\leq(e^{-\pi L}+e^{-\eta^{2}_{\max}T})^{2}\sim(e^{-\pi L}+e^{-(\frac{\delta}{\varepsilon})^{\frac{2}{s}}})^{2}). Thus, for large domains where exp(πL)0\exp(-\pi L)\sim 0, the first and second schemes are comparable. However, for specific cases, such as u=α(t)cos(ω0x)u=\alpha(t)\cos(\omega_{0}x) in Remark 3.2, the probability to retrieving the state |𝒖h(0)|{\bm{u}}_{h}(0)\rangle is about

e2ηmax2Tu(0)L2(Ωx)2u(T)L2(Ωx)2=e2ηmax2Tα(0)2α(T)2=e2ηmax2Te2ω02Tα(T)2α(T)2=e2(ω02ηmax2)T,\frac{e^{-2\eta_{\max}^{2}T}\|u(0)\|_{L^{2}(\Omega_{x})}^{2}}{\|u(T)\|_{L^{2}(\Omega_{x})}^{2}}=\frac{e^{-2\eta_{\max}^{2}T}\alpha(0)^{2}}{\alpha(T)^{2}}=\frac{e^{-2\eta_{\max}^{2}T}e^{2\omega_{0}^{2}T}\alpha(T)^{2}}{\alpha(T)^{2}}=e^{2(\omega_{0}^{2}-\eta_{\max}^{2})T},

which is close to 11 if we choose ηmax=ω0\eta_{\max}=\omega_{0}. This condition aligns with the requirement for choosing ηmax\eta_{\max} to successfully recover uu, as analyzed in Remark 3.2.

7.2 Qumode-based analog quantum computing

Since Eq. (2.1) is already of Schrödinger’s form and can be rewritten with |w(t)=𝒘(t,p)|p𝑑p/𝒘(t,p)|w(t)\rangle=\int\bm{w}(t,p)|p\rangle dp/\|\bm{w}(t,p)\| obeying

|w(t)t=i(HP^)|w(t),|w0=e|p||p𝑑p|u0,\displaystyle\frac{\partial|w(t)\rangle}{\partial t}=-i(H\otimes\hat{P})|w(t)\rangle,\qquad|w_{0}\rangle=\int e^{-|p|}|p\rangle dp|u_{0}\rangle, (7.1)

in the continuous-variable formalism and P^i/p\hat{P}\leftrightarrow-i\partial/\partial p is the momentum operator conjugate to the position operator X^p\hat{X}_{p} which has pp as eigenvalues and [X^p,P^]=iI[\hat{X}_{p},\hat{P}]=iI. Since HP^H\otimes\hat{P} is clearly Hermitian then |w(0)|w(0)\rangle evolves by unitary evolution generated by the Hamiltonian HP^H\otimes\hat{P}. We note that here, since we actually want to run the original PDE backwards in time, the |u0|u_{0}\rangle state above corresponds in fact to the state |u(t=T)|u(t=T)\rangle. If we want the state at some t<Tt<T, then the time 𝒯\mathcal{T} to run Eq. (7.1) is over 𝒯[0,Tt]\mathcal{T}\in[0,T-t].

In the continuous-variable formulation, how ηmax<\eta_{\max}<\infty arises is more subtle. The finite ηmax\eta_{\max} can come instead from a kind of energy constraint Emaxηmax2E_{\max}\sim\eta^{2}_{\max} on the continuous-variable ancillary quantum mode, where ηmax\eta_{\max} is acting like the maximum momentum for the mode (conjugate momentum to pp). At the measurement step, here pmax=πLp^{\Diamond}_{\max}=\pi L is actually a maximum value of measurable pp by the physical measurement apparatus. The detailed analysis here is more subtle and depends on the physical system studied, so we leave this to future work.

8 Conclusions

In this paper we present computationally stable numerical methods for two ill-posed problems: the (constant and variable coefficient) backward heat equation and the linear convection equation with imaginary wave speed. The main idea is to use Schrödingerisation, which turns typical ill-posed problems into unitary dynamical systems in one higher dimension. The Schrödingerised system is a Hamiltonian system valid both forward and backward in time, hence suitable for the design of a computationally stable numerical scheme. A key idea is given to recover the solution to the original problem from the Schrödingerised system using data from appropriate domain in the extended space. Some sharp error estimates between the approximate solution and exact solution are provided and also verified numerically. Moreover, a smooth initialization is introduced for the Schrödingerised system which leads to requiring an exponentially lower number of ancilla qubits for qubit-based quantum algorithms for any non-unitary dynamical system.

In the future this technique will be generalized to more realistic and physically interesting ill-posed problems.

Acknowledgement

SJ and NL are supported by NSFC grant No. 12341104, the Shanghai Jiao Tong University 2030 Initiative and the Fundamental Research Funds for the Central Universities. SJ was also partially supported by the NSFC grants No. 12031013. NL also acknowledges funding from the Science and Technology Program of Shanghai, China (21JC1402900). CM was partially supported by China Postdoctoral Science Foundation (No. 2023M732248) and Postdoctoral Innovative Talents Support Program (No. BX20230219).

References

  • [1] D. An, A. W. Childs, and L. Lin, Quantum algorithm for linear non-unitary dynamics with near-optimal dependence on all parameters, arXiv:2312.03916, 2023.
  • [2] D. An, J. Liu, and L. Lin, Linear combination of Hamiltonian simulation for non-unitary dynamics with optimal state preparation cost , Phys. Rev. Lett., 131 (2023), 150603.
  • [3] K.A. Ames, W.C. Gordon, J.F. Epperson, and S.F. Oppenheimer, A comparison of regularizations for an ill-posed problem, Math. Comp., 67 (1998), pp.1451–1471.
  • [4] M. Bertero, P. Boccacci, and C. De Mol, Introduction to inverse problems in imaging, CRC press, 2021.
  • [5] D.W. Berry, A.M. Childs, R. Kothari, Hamiltonian simulation with nearly optimal dependence on all parameters, IEEE 56th annual symposium of foundation of computer science, 2015.
  • [6] U. Biccari, Y. Song, X. Yuan, and E. Zuazua, A two-stage numerical approach for the sparse initial source identification of a diffusion-advection equation, Inverse Problems, 39 (2023), 095003.
  • [7] A. M. Childs, and N. Wiebe, Hamiltonian simulation using linear combinations of unitary operations, Quantum Inf. Comput., 12 (2012), pp. 901-924.
  • [8] Heinz W. Engl, K. Kunisch, and A. Neubauer, Convergence rates for Tikhonov regularisation of non-linear ill-posed problems, Inverse problems, 5 (1989), 523.
  • [9] L. C. Evans, Partial differential equations, American Mathematical Society, 2016.
  • [10] T. Funada and D. Joseph, Viscous potential flow analysis of Kelvin–Helmholtz instability in a channel, J. Fluid Mech., 445 (2001), pp.263-283.
  • [11] D. N. Háo, A mollification method for ill-posed problems, Numer. Math., 68 (1994) pp.469-506.
  • [12] A. Hasegawa, Plasma instabilities and nonlinear effects, volume 8, Springer Science & Business Media, 2012.
  • [13] K. Höllig, Existence of infinitely many solutions for a forward backward heat equation, Trans. Amer. Math. Soc., 278 (1983) pp.299-316.
  • [14] S. Jin and N. Liu, Analog quantum simulation of partial differential equations, Quantum Sci. Technol., 9 (2024), 035047.
  • [15] S. Jin, N. Liu, and C. Ma, On schrödingerization based quantum algorithms for linear dynamical systems with inhomogeneous terms, arXiv:2402.14696v2, 2024.
  • [16] S. Jin, N. Liu, and Y. Yu, Quantum simulation of partial differential equations via schrödingerisation, arXiv preprint arXiv:2212.13969., 2022.
  • [17] S. Jin, N. Liu, and Y. Yu, Quantum simulation of partial differential equations: Applications and detailed analysis, Phys. Rev. A, 108(3):032603, 2023.
  • [18] F. John, Numerical solution of the equation of heat conduction for preceding times, Ann. Mat. Pura Appl., 40 (1955), pp.129-142.
  • [19] M. Jourhmane and N. S. Mera, An iterative algorithm for the backward heat conduction problem based on variable relaxation factors, Inverse Problems in Engineering, 10 (2002), pp.293-308.
  • [20] H. C. Kaiser and J. Rehberg On stationary Schrödinger–Poisson equations modelling an electron gas with reduced dimension, Math. Methods Appl. Sci., 20 (1997), pp. 1283-1312.
  • [21] H. J. Kull, Theory of the Rayleigh-Taylor instability, Phys. Rep., 206 (1991), pp.197-325.
  • [22] R. Lattès and J. L. Lions, Méthode de quasi-réversibilité et applications, English translation: R. Bellman, Elsevier, New York, 1969.
  • [23] F. Lin, Remarks on a backward parabolic problem, Methods Appl. Anal., 10(2003), pp.245-252.
  • [24] G. H. Low and I.L. Chuang, Optimal Hamiltonian simulation by quantum signal processing, Phys. Rev. Lett., 118 (2017), 010501.
  • [25] K. Miller, Stabilized quasi-reversibilite and other nearly best possible methods for non-well-posed problems, In: Symposium on Non-Well-Posed Problems and Logarithmic Convexity, in: Lecture Notes in Math., 316 (1973), pp.161-176.
  • [26] W. Miranker, A well posed problem for the backward heat equation, Proc. Amer. Math. Soc., 12 (1961), pp.243–247.
  • [27] J. Nash, Continuity of solutions of parabolic and elliptic equations, Amer. J. Math., 80(1958), pp.931–954.
  • [28] C. G. Parazzoli, R.B. Greegor, K. Li, B. E. C. Koltenbah, and M. Tanielian, Experimental verification and simulation of negative index of refraction using Snell’s law, Phys. Rev. Lett., 90(2003), 107401.
  • [29] Z. Qian, C. L. Fu, and R. Shi, A modified method for a backward heat conduction problem, Appl. Math. Comput., 185(2007), pp.564-573.
  • [30] R. A. Shelby, D. R. Smith, and S. Schultz, Experimental verification of a negative index of refraction, Science, 292 (2001), pp.77-79.
  • [31] J. Shen, T. Tang, and L. Wang, Spectral methods, Springer-Verlag Berliln Heidelberg, 2011.
  • [32] R.E. Showalter, The final value problem for evolution equations, J. Math. Anal. Appl., 47(1974), pp.563-572.
  • [33] J. Stoer, R. Bulirsch, R. Bartels, W. Gautschi, and C. Witzgall, Introduction to numerical analysis, New York: Springer-Verlag, 1980.
  • [34] G. Uhlmann, Inverse problems: seeing the unseen, Bull. Math. Sci., 4(2014), pp.209-279.
  • [35] X. T. Xiong, C. L. Fu, and Z. Qian, Two numerical methods for solving a backward heat conduction problem, Appl. Math. Comput., 179(2006), pp.370-377.