Simulating the non-Hermitian dynamics of financial option pricing with quantum computers
Swagat Kumar
Colin Michael Wilmott
[
[
Abstract
The Schrödinger equation describes how quantum states evolve according to the Hamiltonian of the system. For physical systems, we have it that the Hamiltonian must be a Hermitian operator to ensure unitary dynamics. For anti-Hermitian Hamiltonians, the Schrödinger equation instead models the evolution of quantum states in imaginary time. This process of imaginary time evolution has been used successfully to calculate the ground state of a quantum system. Although imaginary time evolution is non-unitary, the normalised dynamics of this evolution can be simulated on a quantum computer using the quantum imaginary time evolution (QITE) algorithm. In this paper, we broaden the scope of QITE by removing its restriction to anti-Hermitian Hamiltonians, which allows us to solve any partial differential equation (PDE) that is equivalent to the Schrödinger equation with an arbitrary, non-Hermitian Hamiltonian. An example of such a PDE is the famous Black-Scholes equation that models the price of financial derivatives. We will demonstrate how our generalised QITE methodology offers a feasible approach for real-world applications by using it to price various European option contracts modelled according to the Black-Scholes equation.
keywords: quantum computing, quantum simulation, imaginary time evolution, Black-Scholes equation
A financial derivative is an options contract whose value derives from an underlying financial asset [1 ] . An options contract defines an agreement between two parties that entails a right to trade an asset at some specified future date for a fixed price. This right to trade agreement thus creates inherent value, which may in turn be traded in the same manner as the underlying financial asset. Consequently, a financial derivative may be viewed as an instrument, which can be used to either exploit arbitrage opportunities or mitigate risk exposure in the market. For this reason, a fundamental task in quantitative finance is how exactly do we determine the fair price of a financial derivative. Determining the fair price of an option is a highly non-trivial task, which is due in part to the stochastic nature of the parameters that define a derivative.
The famous Black–Scholes model [2 , 1 ] is an effective method for determining the fair price of a derivative, and has become the standard for pricing European style financial options. Given the payoff price for an option at the maturity time, we can determine the present price of the option by solving the linear differential equation
∂ u ∂ t = − 1 2 ( σ x ) 2 ∂ 2 u ∂ x 2 − r x ∂ u ∂ x + r u , 𝑢 𝑡 1 2 superscript 𝜎 𝑥 2 partial-derivative 𝑥 2 𝑢 𝑟 𝑥 𝑢 𝑥 𝑟 𝑢 \frac{\partial u}{\partial t}=-\frac{1}{2}(\sigma x)^{2}\partialderivative[2]{%
u}{x}-rx\frac{\partial u}{\partial x}+ru, divide start_ARG ∂ italic_u end_ARG start_ARG ∂ italic_t end_ARG = - divide start_ARG 1 end_ARG start_ARG 2 end_ARG ( italic_σ italic_x ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT divide start_ARG start_DIFFOP SUPERSCRIPTOP start_ARG ∂ end_ARG start_ARG 2 end_ARG end_DIFFOP start_ARG italic_u end_ARG end_ARG start_ARG SUPERSCRIPTOP start_ARG ∂ start_ARG italic_x end_ARG end_ARG start_ARG 2 end_ARG end_ARG - italic_r italic_x divide start_ARG ∂ italic_u end_ARG start_ARG ∂ italic_x end_ARG + italic_r italic_u ,
(1)
for ( x , t ) ∈ [ x 0 , x N ] × [ 0 , T ] 𝑥 𝑡 subscript 𝑥 0 subscript 𝑥 𝑁 0 𝑇 (x,t)\in[x_{0},x_{N}]\times[0,T] ( italic_x , italic_t ) ∈ [ italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ] × [ 0 , italic_T ] , where the condition u ( x , T ) = p ( x ) 𝑢 𝑥 𝑇 𝑝 𝑥 u(x,T)=p(x) italic_u ( italic_x , italic_T ) = italic_p ( italic_x ) denotes the payoff of the option. The price of the option is denoted by u ( x , t ) 𝑢 𝑥 𝑡 u(x,t) italic_u ( italic_x , italic_t ) , while x 𝑥 x italic_x
denotes the value of the underlying asset, t 𝑡 t italic_t represents time, and T 𝑇 T italic_T is the maturity time. For simplicity, it is assumed that the volatility of the asset, σ 𝜎 \sigma italic_σ , and the risk-free interest rate, r 𝑟 r italic_r , are constant with respect to time. For convenience, adopting τ = T − t 𝜏 𝑇 𝑡 \tau=T-t italic_τ = italic_T - italic_t transforms the Black-Scholes equation Eq. (1 ) to the initial value problem
∂ u ∂ τ = 1 2 ( σ x ) 2 ∂ 2 u ∂ x 2 + r x ∂ u ∂ x − r u , 𝑢 𝜏 1 2 superscript 𝜎 𝑥 2 partial-derivative 𝑥 2 𝑢 𝑟 𝑥 𝑢 𝑥 𝑟 𝑢 \frac{\partial u}{\partial\tau}=\frac{1}{2}(\sigma x)^{2}\partialderivative[2]%
{u}{x}+rx\frac{\partial u}{\partial x}-ru, divide start_ARG ∂ italic_u end_ARG start_ARG ∂ italic_τ end_ARG = divide start_ARG 1 end_ARG start_ARG 2 end_ARG ( italic_σ italic_x ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT divide start_ARG start_DIFFOP SUPERSCRIPTOP start_ARG ∂ end_ARG start_ARG 2 end_ARG end_DIFFOP start_ARG italic_u end_ARG end_ARG start_ARG SUPERSCRIPTOP start_ARG ∂ start_ARG italic_x end_ARG end_ARG start_ARG 2 end_ARG end_ARG + italic_r italic_x divide start_ARG ∂ italic_u end_ARG start_ARG ∂ italic_x end_ARG - italic_r italic_u ,
(2)
for ( x , τ ) ∈ [ x 0 , x N ] × [ 0 , T ] 𝑥 𝜏 subscript 𝑥 0 subscript 𝑥 𝑁 0 𝑇 (x,\tau)\in[x_{0},x_{N}]\times[0,T] ( italic_x , italic_τ ) ∈ [ italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ] × [ 0 , italic_T ] with the initial condition u ( x , τ = 0 ) = p ( x ) 𝑢 𝑥 𝜏
0 𝑝 𝑥 u(x,\tau=0)=p(x) italic_u ( italic_x , italic_τ = 0 ) = italic_p ( italic_x ) . To numerically solve the Black-Scholes equation, we must discretise the domain [ x 0 , x N ] subscript 𝑥 0 subscript 𝑥 𝑁 [x_{0},x_{N}] [ italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ] to a finite domain and assign appropriate boundary conditions.
The Schrödinger equation models the evolution of the wave function of a quantum mechanical system, and takes the form
i ∂ ψ ( x → , t ) ∂ t = H ^ ψ ( x → , t ) , 𝑖 𝜓 → 𝑥 𝑡 𝑡 ^ 𝐻 𝜓 → 𝑥 𝑡 i\frac{\partial\psi(\vec{x},t)}{\partial t}=\hat{H}\psi(\vec{x},t), italic_i divide start_ARG ∂ italic_ψ ( over→ start_ARG italic_x end_ARG , italic_t ) end_ARG start_ARG ∂ italic_t end_ARG = over^ start_ARG italic_H end_ARG italic_ψ ( over→ start_ARG italic_x end_ARG , italic_t ) ,
(3)
where the Hamiltonian, H ^ ^ 𝐻 \hat{H} over^ start_ARG italic_H end_ARG , is a linear differential operator in x → → 𝑥 \vec{x} over→ start_ARG italic_x end_ARG acting on the wave function ψ 𝜓 \psi italic_ψ . Solutions to the Schrödinger equation are expressed in terms of the time evolution operator,
ψ ( x → , t ) = e − i H ^ t ψ ( x → , 0 ) . 𝜓 → 𝑥 𝑡 superscript 𝑒 𝑖 ^ 𝐻 𝑡 𝜓 → 𝑥 0 \psi(\vec{x},t)=e^{-i\hat{H}t}\psi(\vec{x},0). italic_ψ ( over→ start_ARG italic_x end_ARG , italic_t ) = italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_H end_ARG italic_t end_POSTSUPERSCRIPT italic_ψ ( over→ start_ARG italic_x end_ARG , 0 ) .
(4)
The Black-Scholes equation, Eq. (2 ), can also be expressed in the form of the Schrödinger equation, where its Hamiltonian is given by
H ^ B S = i [ 1 2 ( σ x ) 2 ∂ 2 ∂ x 2 + r x ∂ ∂ x − r ] . subscript ^ 𝐻 𝐵 𝑆 𝑖 delimited-[] 1 2 superscript 𝜎 𝑥 2 partial-derivative 𝑥 2 𝑟 𝑥 𝑥 𝑟 \hat{H}_{BS}=i\left[\frac{1}{2}(\sigma x)^{2}\partialderivative[2]{x}+rx\frac{%
\partial}{\partial x}-r\right]. over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_B italic_S end_POSTSUBSCRIPT = italic_i [ divide start_ARG 1 end_ARG start_ARG 2 end_ARG ( italic_σ italic_x ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_DIFFOP divide start_ARG start_DIFFOP SUPERSCRIPTOP start_ARG ∂ end_ARG start_ARG 2 end_ARG end_DIFFOP end_ARG start_ARG SUPERSCRIPTOP start_ARG ∂ start_ARG italic_x end_ARG end_ARG start_ARG 2 end_ARG end_ARG end_DIFFOP + italic_r italic_x divide start_ARG ∂ end_ARG start_ARG ∂ italic_x end_ARG - italic_r ] .
(5)
Note that while the Hamiltonian of the Schrödinger equation is a Hermitian operator, which gives rise to unitary time evolution, the Black-Scholes Hamiltonian, Eq. (5 ), is non-Hermitian, and induces non-unitary time evolution.
However, since quantum computers evolve under unitary time evolution, it is the case that simulating non-Hermitian dynamics is not directly feasible on a quantum computer. It is for this reason that quantum computing approaches for solving the Black-Scholes equation have thus far been based on variational algorithms [3 , 4 , 5 ] or require post-selection techniques [6 ] .
Another example of non-Hermitian dynamics can be seen in the imaginary time evolution of a quantum system.
Following a Wick rotation, which replaces time with an imaginary number β = i t 𝛽 𝑖 𝑡 \beta=it italic_β = italic_i italic_t , the Schrödinger equation drives wave functions to become parallel to the ground state of the system.
The Wick-rotated form of the Schrödinger equation also takes the form of Eq. (3 ), but with an anti-Hermitian Hamiltonian. Although the imaginary time Schrödinger equation induces non-unitary dynamics,
the normalised evolution can be simulated with quantum algorithms, including quantum imaginary time evolution (QITE) [7 ] and variational QITE [8 ] .
Variational QITE (varQITE) is a hybrid quantum-classical algorithm that is well suited for noisy intermediate-scale quantum (NISQ) devices.
As a variational quantum algorithm, varQITE considers a system of differential equations linking to the gradients of ansatz parameters in imaginary time, and coefficients that depend on measurements of the ansatz. Variational QITE employs a fixed ansatz, where the time complexity is linear in the number of Hamiltonian terms. However, the choice of ansatz is crucial, as it is possible that the states produced by the true imaginary time evolution may not be generated by the particular parameterised ansatz circuit.
On the other hand, the simulated QITE approach is an alternative technique for simulating imaginary time evolution [7 ] . The technique works by approximating the normalised time evolution operator with Trotter products via unitaries. Simulated QITE with sufficiently large unitary domains is not plagued by barren plateaus, as is the case with its variational counterpart. Simulated QITE on a k 𝑘 k italic_k -local Hamiltonian requires a number of measurements that is exponential in k 𝑘 k italic_k , with the depth of the associated quantum circuits scaling accordingly. Interestingly, however, recent work has focused on optimising the circuit depth and the number of measurements required in simulated QITE. For instance, Fast QITE provides for an exponential reduction in the circuit depth of each unitary and also reduces the number of measurements required per time step, leading to a quadratic speedup over QITE [9 ] . A time dependent drifted QITE introduces the concept of randomised compiling, which reduces the unitary circuit depth to be a constant and also reduces the number of measurements needed [10 ] . We also have an implementation of QITE using nonlocal approximation, which reduces circuit depth and is NISQ-friendly [11 ] .
Figure 1: Black-Scholes option pricing simulations using QNUTE.
The figure compares the Black-Scholes option prices calculated using QNUTE with varying number of qubits to the corresponding analytical solutions for the following European option types:
(a) Call (b) Put (c) Bull Spread (d) Bear Spread (e) Straddle (f) Strangle.
The vertical dashed lines at x = 50 , 75 , 𝑥 50 75
x=50,75, italic_x = 50 , 75 , and 100 100 100 100 correspond to the strike prices of the option contracts.
We simulated the solutions for the asset prices x ∈ [ 0 , 150 ] 𝑥 0 150 x\in[0,150] italic_x ∈ [ 0 , 150 ] , with the maturity time T = 3 𝑇 3 T=3 italic_T = 3 years, simulated over N T = 500 subscript 𝑁 𝑇 500 N_{T}=500 italic_N start_POSTSUBSCRIPT italic_T end_POSTSUBSCRIPT = 500 time steps. Our simulations used a risk-free interest rate of r = 0.04 𝑟 0.04 r=0.04 italic_r = 0.04 , and the volatility σ = 0.2 𝜎 0.2 \sigma=0.2 italic_σ = 0.2 . The unitaries used to approximate the evolution act on all of the qubits used in the simulation.
Although imaginary time evolution was originally envisioned as a technique for determining the ground state of a Hamiltonian [8 , 7 ] , the methodology has been recently used as an approach for solving partial differential equations (PDEs), primarily based on varQITE [12 , 13 , 5 , 3 , 14 ] .
However, a simulated QITE approach for solving linear PDEs was recently considered [15 ] , although it is restricted to anti-Hermitian Hamiltonians involving only even-ordered derivatives. This application tracks how the non-unitary time evolution scales the quantum state over time. The approach was used to generate solutions to the isotropic heat equation by combining the scale information with the normalised states obtained from QITE.
In this paper, we further widen the scope of simulated QITE by broadening the methodology to simulations involving arbitrary non-Hermitian dynamics. By removing simulated QITE’s underlying restriction to anti-Hermitian Hamiltonians, we enhance the capabilities of the methodology with an ability to simulate arbitrary linear PDEs involving non-unitary time evolution. We have called this generalisation of simulated QITE to arbitrary Hamiltonians quantum non-unitary time evolution (QNUTE).
Results
Quantum Non-Unitary Time Evolution
QNUTE is a quantum algorithm that simulates the dynamics of the Schrödinger equation with an arbitrary non-Hermitian Hamiltonian H ^ = ∑ m = 1 M i h ^ m ^ 𝐻 superscript subscript 𝑚 1 𝑀 𝑖 subscript ^ ℎ 𝑚 {\hat{H}=\sum_{m=1}^{M}i\hat{h}_{m}} over^ start_ARG italic_H end_ARG = ∑ start_POSTSUBSCRIPT italic_m = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_M end_POSTSUPERSCRIPT italic_i over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT . The non-unitary time evolution operator generated by H ^ ^ 𝐻 \hat{H} over^ start_ARG italic_H end_ARG is approximated by its first order Trotter product, and takes the form
e − i H ^ T ≈ ( ∏ m = 1 M e h ^ m Δ t ) N T , superscript 𝑒 𝑖 ^ 𝐻 𝑇 superscript superscript subscript product 𝑚 1 𝑀 superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 subscript 𝑁 𝑇 e^{-i\hat{H}T}\approx\left(\prod_{m=1}^{M}e^{\hat{h}_{m}\Delta t}\right)^{N_{T%
}}, italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_H end_ARG italic_T end_POSTSUPERSCRIPT ≈ ( ∏ start_POSTSUBSCRIPT italic_m = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_M end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT italic_N start_POSTSUBSCRIPT italic_T end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ,
(6)
where N T = T / Δ t subscript 𝑁 𝑇 𝑇 Δ 𝑡 N_{T}=T/\Delta t italic_N start_POSTSUBSCRIPT italic_T end_POSTSUBSCRIPT = italic_T / roman_Δ italic_t [16 , 17 ] .
The normalised actions of each Trotter step e h ^ m Δ t superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 e^{\hat{h}_{m}\Delta t} italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT acting on a state | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ are approximated with unitaries of the form e − i A ^ Δ t superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 e^{-i\hat{A}\Delta t} italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT , and implemented with Trotter products of the form
e − i A ^ Δ t ≈ ∏ I = 1 ℐ e − i a I σ ^ I Δ t . superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 superscript subscript product 𝐼 1 ℐ superscript 𝑒 𝑖 subscript 𝑎 𝐼 subscript ^ 𝜎 𝐼 Δ 𝑡 e^{-i\hat{A}\Delta t}\approx\prod_{I=1}^{\mathcal{I}}e^{-ia_{I}\hat{\sigma}_{I%
}\Delta t}. italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT ≈ ∏ start_POSTSUBSCRIPT italic_I = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT caligraphic_I end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT - italic_i italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT .
(7)
In Eq. (7 ), A ^ = ∑ I = 1 ℐ a I σ ^ I ^ 𝐴 superscript subscript 𝐼 1 ℐ subscript 𝑎 𝐼 subscript ^ 𝜎 𝐼 {\hat{A}=\sum_{I=1}^{\mathcal{I}}a_{I}\hat{\sigma}_{I}} over^ start_ARG italic_A end_ARG = ∑ start_POSTSUBSCRIPT italic_I = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT caligraphic_I end_POSTSUPERSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT is a Hermitian operator with σ ^ I subscript ^ 𝜎 𝐼 \hat{\sigma}_{I} over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT denoting
Hermitian operators chosen such that each unitary e − i θ σ ^ I superscript 𝑒 𝑖 𝜃 subscript ^ 𝜎 𝐼 e^{-i\theta\hat{\sigma}_{I}} italic_e start_POSTSUPERSCRIPT - italic_i italic_θ over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_POSTSUPERSCRIPT is efficiently implemented with a quantum circuit parameterised by θ 𝜃 \theta italic_θ .
The real-valued coefficients a I subscript 𝑎 𝐼 a_{I} italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT are determined by minimising the expression
‖ e h ^ m Δ t | ψ ⟩ ⟨ ψ | e h ^ m † Δ t e h ^ m Δ t | ψ ⟩ − e − i A ^ Δ t | ψ ⟩ ‖ , norm superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 ket 𝜓 expectation-value superscript 𝑒 superscript subscript ^ ℎ 𝑚 † Δ 𝑡 superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 𝜓 𝜓 superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 ket 𝜓 \left\|\frac{e^{\hat{h}_{m}\Delta t}\ket{\psi}}{\sqrt{\expectationvalue{e^{%
\hat{h}_{m}^{\dagger}\Delta t}e^{\hat{h}_{m}\Delta t}}{\psi}}}-e^{-i\hat{A}%
\Delta t}\ket{\psi}\right\|, ∥ divide start_ARG italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT | start_ARG italic_ψ end_ARG ⟩ end_ARG start_ARG square-root start_ARG ⟨ start_ARG italic_ψ end_ARG | start_ARG italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_ARG end_ARG - italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT | start_ARG italic_ψ end_ARG ⟩ ∥ ,
(8)
up to O ( Δ t ) 𝑂 Δ 𝑡 O(\Delta t) italic_O ( roman_Δ italic_t ) , which involves solving a system of linear equations, ( S + S ⊤ ) a → = b → 𝑆 superscript 𝑆 top → 𝑎 → 𝑏 {(S+S^{\top})\,\vec{a}=\vec{b}} ( italic_S + italic_S start_POSTSUPERSCRIPT ⊤ end_POSTSUPERSCRIPT ) over→ start_ARG italic_a end_ARG = over→ start_ARG italic_b end_ARG , constructed using various measurements on | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ . In particular, we have
S I , J = ⟨ ψ | σ ^ I † σ ^ J | ψ ⟩ , c = 1 + 2 Δ t Re ⟨ ψ | h ^ m | ψ ⟩ , b I = − 2 c Im ⟨ ψ | σ ^ I † h ^ m | ψ ⟩ , subscript 𝑆 𝐼 𝐽
absent expectation-value superscript subscript ^ 𝜎 𝐼 † subscript ^ 𝜎 𝐽 𝜓 𝜓 𝑐 absent 1 2 Δ 𝑡 Re expectation-value subscript ^ ℎ 𝑚 𝜓 𝜓 subscript 𝑏 𝐼 absent 2 𝑐 Im expectation-value superscript subscript ^ 𝜎 𝐼 † subscript ^ ℎ 𝑚 𝜓 𝜓 \displaystyle\begin{aligned} S_{I,J}&=\expectationvalue{\hat{\sigma}_{I}^{%
\dagger}\hat{\sigma}_{J}}{\psi},\\
c&=\sqrt{1+2\Delta t\,\text{Re}\expectationvalue{\hat{h}_{m}}{\psi}},\\
b_{I}&=\frac{-2}{c}\,\text{Im}\expectationvalue{\hat{\sigma}_{I}^{\dagger}\,%
\hat{h}_{m}}{\psi},\end{aligned} start_ROW start_CELL italic_S start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT end_CELL start_CELL = ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ , end_CELL end_ROW start_ROW start_CELL italic_c end_CELL start_CELL = square-root start_ARG 1 + 2 roman_Δ italic_t Re ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_ARG , end_CELL end_ROW start_ROW start_CELL italic_b start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_CELL start_CELL = divide start_ARG - 2 end_ARG start_ARG italic_c end_ARG Im ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ , end_CELL end_ROW
(9)
see Supplementary Information for further details on the construction.
Simulating each Trotter step involves taking O ( ℐ 2 ) 𝑂 superscript ℐ 2 O(\mathcal{I}^{2}) italic_O ( caligraphic_I start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) measurements to construct the ℐ × ℐ ℐ ℐ \mathcal{I}\times\mathcal{I} caligraphic_I × caligraphic_I matrix equation and generates a quantum circuit of depth O ( ℐ ) 𝑂 ℐ O(\mathcal{I}) italic_O ( caligraphic_I ) . The full simulation therefore requires O ( N T M ℐ 2 ) 𝑂 subscript 𝑁 𝑇 𝑀 superscript ℐ 2 O(N_{T}M\mathcal{I}^{2}) italic_O ( italic_N start_POSTSUBSCRIPT italic_T end_POSTSUBSCRIPT italic_M caligraphic_I start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) measurements.
The states generated by QNUTE are determined by the choice of σ ^ I subscript ^ 𝜎 𝐼 \hat{\sigma}_{I} over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT . For example, choosing σ ^ I subscript ^ 𝜎 𝐼 \hat{\sigma}_{I} over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT to encompass all Pauli strings allows us to capture arbitrary state vector rotations in the state space, whereas restricting σ ^ I subscript ^ 𝜎 𝐼 \hat{\sigma}_{I} over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT to Pauli strings involving an odd number of Y ^ ^ 𝑌 \hat{Y} over^ start_ARG italic_Y end_ARG gates significantly reduces the operator decomposition count and allows us to capture those rotations that do not introduce complex phases to the quantum state.
Given a choice of σ ^ I subscript ^ 𝜎 𝐼 \hat{\sigma}_{I} over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT , the accuracy of the QNUTE implementation is dependent on the support of A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG .
Ideally, the support of A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG should cover D = O ( C ) 𝐷 𝑂 𝐶 {D=O(C)} italic_D = italic_O ( italic_C ) adjacent qubits surrounding the support of h ^ m subscript ^ ℎ 𝑚 \hat{h}_{m} over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT , where the correlation length C 𝐶 C italic_C denotes the maximum distance between interacting qubits in the Hamiltonian. However, our choice to express A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG has been in terms of Pauli strings, which gives rise to an exponential dependence on D 𝐷 D italic_D , ℐ = O ( 2 D ) ℐ 𝑂 superscript 2 𝐷 {\mathcal{I}=O(2^{D})} caligraphic_I = italic_O ( 2 start_POSTSUPERSCRIPT italic_D end_POSTSUPERSCRIPT ) . For this reason, we have considered an inexact implementation of QNUTE that uses a constant domain size D < C 𝐷 𝐶 D<C italic_D < italic_C .
We will demonstrate that QNUTE can be used to approximate solutions to arbitrary linear PDEs with solutions stored in the qubit state vector. Information relevant to the solution is extracted by taking measurements on the final quantum state. It is expected that the number of distinct measurements required to extract the relevant information should scale polynomially with the number of qubits.
Further, if it is known that the solution to a PDE will be real-valued and non-negative, then the normalised solution calculated by QNUTE can be extracted obtained by taking the square root of the probability distribution of computational basis states. We will use QNUTE to simulate the Black-Scholes equation, as it has a non-Hermitian Hamiltonian and has non-negative real-valued solutions.
Figure 2: Average fidelities of inexact QNUTE implementations. The figure shows the fidelities of different implementations of inexact QNUTE used to simulate Black-Scholes dynamics averaged over each time step, with the error bars depicting the standard deviation. These simulations share the same parameters values for r , σ , T 𝑟 𝜎 𝑇
r,\sigma,T italic_r , italic_σ , italic_T and N T subscript 𝑁 𝑇 N_{T} italic_N start_POSTSUBSCRIPT italic_T end_POSTSUBSCRIPT as with the simulations shown in Fig. 1 .
n 𝑛 n italic_n denotes the number of qubits used to store the function samples, and D 𝐷 D italic_D denotes the maximum number of adjacent qubits targeted by the unitaries.
The overall low fidelities shown the by inexact QNUTE, where D < n 𝐷 𝑛 D<n italic_D < italic_n , indicate that the Black-Scholes Hamiltonian with linear boundary conditions has a high correlation length, making it difficult to accurately reproduce its evolution with small unitaries.
Simulating Black-Scholes with QNUTE
To model the dynamics of the Black-Scholes equation, we discretise the domain [ x 0 , x N ] subscript 𝑥 0 subscript 𝑥 𝑁 [x_{0},x_{N}] [ italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ] into 2 n superscript 2 𝑛 2^{n} 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT points equally spaced by a distance of h = x N − x 0 2 n − 1 ℎ subscript 𝑥 𝑁 subscript 𝑥 0 superscript 2 𝑛 1 h=\frac{x_{N}-x_{0}}{2^{n}-1} italic_h = divide start_ARG italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT - italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_ARG . The normalised samples of the option price are stored in an n 𝑛 n italic_n -qubit quantum state given by
| u ¯ ( τ ) ⟩ = ∑ k = 0 2 n − 1 u ( x k , τ ) | k ⟩ ∑ k = 0 2 n − 1 u 2 ( x k , τ ) , ket ¯ 𝑢 𝜏 superscript subscript 𝑘 0 superscript 2 𝑛 1 𝑢 subscript 𝑥 𝑘 𝜏 ket 𝑘 superscript subscript 𝑘 0 superscript 2 𝑛 1 superscript 𝑢 2 subscript 𝑥 𝑘 𝜏 \ket{\bar{u}(\tau)}=\frac{\sum_{k=0}^{2^{n}-1}u(x_{k},\tau)\ket{k}}{\sqrt{\sum%
_{k=0}^{2^{n}-1}u^{2}(x_{k},\tau)}}, | start_ARG over¯ start_ARG italic_u end_ARG ( italic_τ ) end_ARG ⟩ = divide start_ARG ∑ start_POSTSUBSCRIPT italic_k = 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT italic_u ( italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT , italic_τ ) | start_ARG italic_k end_ARG ⟩ end_ARG start_ARG square-root start_ARG ∑ start_POSTSUBSCRIPT italic_k = 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT italic_u start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT , italic_τ ) end_ARG end_ARG ,
(10)
where x k = x 0 + k h subscript 𝑥 𝑘 subscript 𝑥 0 𝑘 ℎ x_{k}=x_{0}+kh italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_k italic_h . Following Eq. (5 ), the discretised Black-Scholes Hamiltonian can be represented in terms of a central finite difference matrix of the form
− i H ^ B S = [ γ 0 β 0 α 1 γ 1 β 1 ⋱ ⋱ ⋱ α 2 n − 2 γ 2 n − 2 β 2 n − 2 α 2 n − 1 γ 2 n − 1 ] , 𝑖 subscript ^ 𝐻 𝐵 𝑆 matrix subscript 𝛾 0 subscript 𝛽 0 missing-subexpression missing-subexpression subscript 𝛼 1 subscript 𝛾 1 subscript 𝛽 1 missing-subexpression missing-subexpression ⋱ ⋱ ⋱ missing-subexpression missing-subexpression missing-subexpression missing-subexpression subscript 𝛼 superscript 2 𝑛 2 subscript 𝛾 superscript 2 𝑛 2 subscript 𝛽 superscript 2 𝑛 2 missing-subexpression missing-subexpression missing-subexpression subscript 𝛼 superscript 2 𝑛 1 subscript 𝛾 superscript 2 𝑛 1 -i\hat{H}_{BS}=\begin{bmatrix}\gamma_{0}&\beta_{0}&&\\
\alpha_{1}&\gamma_{1}&\beta_{1}&\\
&\ddots&\ddots&\ddots&&\\
&&\alpha_{2^{n}-2}&\gamma_{2^{n}-2}&\beta_{2^{n}-2}\\
&&&\alpha_{2^{n}-1}&\gamma_{2^{n}-1}\end{bmatrix}, - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_B italic_S end_POSTSUBSCRIPT = [ start_ARG start_ROW start_CELL italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_α start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] ,
(11)
where
α k = σ 2 x k 2 2 h 2 − r x k 2 h , β k = σ 2 x k 2 2 h 2 + r x k 2 h , γ k = − r − α k − β k . subscript 𝛼 𝑘 absent superscript 𝜎 2 superscript subscript 𝑥 𝑘 2 2 superscript ℎ 2 𝑟 subscript 𝑥 𝑘 2 ℎ subscript 𝛽 𝑘 absent superscript 𝜎 2 superscript subscript 𝑥 𝑘 2 2 superscript ℎ 2 𝑟 subscript 𝑥 𝑘 2 ℎ subscript 𝛾 𝑘 absent 𝑟 subscript 𝛼 𝑘 subscript 𝛽 𝑘 \displaystyle\begin{aligned} \alpha_{k}&=\frac{\sigma^{2}x_{k}^{2}}{2h^{2}}-%
\frac{rx_{k}}{2h},\\
\beta_{k}&=\frac{\sigma^{2}x_{k}^{2}}{2h^{2}}+\frac{rx_{k}}{2h},\\
\gamma_{k}&=-r-\alpha_{k}-\beta_{k}.\end{aligned} start_ROW start_CELL italic_α start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL start_CELL = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_h end_ARG , end_CELL end_ROW start_ROW start_CELL italic_β start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL start_CELL = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG + divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_h end_ARG , end_CELL end_ROW start_ROW start_CELL italic_γ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_CELL start_CELL = - italic_r - italic_α start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - italic_β start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT . end_CELL end_ROW
(12)
Refer to Supplementary Information for the representation of the discretised Hamiltonian of Eq. (11 ) in the Pauli operator basis.
The scale factor c 𝑐 c italic_c given in Eq. (9 ) approximates how the Trotter step scales | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩
up to O ( Δ t ) 𝑂 Δ 𝑡 O(\Delta t) italic_O ( roman_Δ italic_t ) .
These approximations can be stored and multiplied to provide an approximation of how the state vector scales over the course of the evolution. Excluding the scenario of the ideal implementation of QNUTE that records a perfect fidelity, errors associated to each scale factor will compound over multiple Trotter steps, which must be corrected periodically.
For an anti-Hermitian Hamiltonian H ^ = i L ^ ^ 𝐻 𝑖 ^ 𝐿 \hat{H}=i\hat{L} over^ start_ARG italic_H end_ARG = italic_i over^ start_ARG italic_L end_ARG , it was shown that the correction factor can be calculated using knowledge of the non-degenerate ground state | ψ 0 ⟩ ket subscript 𝜓 0 \ket{\psi_{0}} | start_ARG italic_ψ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ of L ^ ^ 𝐿 \hat{L} over^ start_ARG italic_L end_ARG and its corresponding eigenvalue λ 0 subscript 𝜆 0 \lambda_{0} italic_λ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT [15 ] . This correction strategy necessarily exploits the mutual orthogonality of the eigenstates of the associated Hamiltonian.
However, since the discretised Black-Scholes Hamiltonian as given in Eq. (11 ) is not a normal operator, its eigenvectors are not guaranteed to be mutually orthogonal. This, therefore, rules out the norm correction strategy pursued in Ref. [15 ] . Interestingly, variational QITE has been employed as a technique for solving the Black-Scholes equation. Under this setting, the normalisation factor was considered either as a variational parameter [5 ] or was determined with prior knowledge of how, specifically, call option prices evolve at the boundary x N subscript 𝑥 𝑁 x_{N} italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT [3 ] . Since the former is not compatible with QNUTE, we generalise the latter approach to cater to various European option types.
Table 1: Average fidelity data for the QNUTE simulations for pricing various European option types. μ F subscript 𝜇 𝐹 \mu_{F} italic_μ start_POSTSUBSCRIPT italic_F end_POSTSUBSCRIPT denotes the mean fidelity over each time step and σ F subscript 𝜎 𝐹 \sigma_{F} italic_σ start_POSTSUBSCRIPT italic_F end_POSTSUBSCRIPT the standard deviation. Simulations involving D < n 𝐷 𝑛 D<n italic_D < italic_n represent inexact QNUTE implementations.
Consider the Black-Scholes equation, as given in Eq. (5 ),
with option price
u ( x , τ ) 𝑢 𝑥 𝜏 u(x,\tau) italic_u ( italic_x , italic_τ ) assumed to be linear in x 𝑥 x italic_x in the neighbourhood of the boundaries x 0 subscript 𝑥 0 x_{0} italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT and x N subscript 𝑥 𝑁 x_{N} italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT .
We will consider linear boundary conditions, since they are widely used in classical option pricing simulations and are known to be numerically stable [18 ] .
Thus, under linear boundary conditions, the option price takes the form u ( x , τ ) = a ( τ ) x + b ( τ ) 𝑢 𝑥 𝜏 𝑎 𝜏 𝑥 𝑏 𝜏 {u(x,\tau)=a(\tau)x+b(\tau)} italic_u ( italic_x , italic_τ ) = italic_a ( italic_τ ) italic_x + italic_b ( italic_τ ) near the boundaries. Substituting this form into Eq. (5 ) reduces the Black-Scholes equation to an ordinary differential equation (ODE) at the boundaries
x d a d τ + d b d τ = − r b ( τ ) . 𝑥 derivative 𝜏 𝑎 derivative 𝜏 𝑏 𝑟 𝑏 𝜏 x\derivative{a}{\tau}+\derivative{b}{\tau}=-rb(\tau). italic_x divide start_ARG roman_d start_ARG italic_a end_ARG end_ARG start_ARG roman_d start_ARG italic_τ end_ARG end_ARG + divide start_ARG roman_d start_ARG italic_b end_ARG end_ARG start_ARG roman_d start_ARG italic_τ end_ARG end_ARG = - italic_r italic_b ( italic_τ ) .
(13)
Solving Eq. (13 ) yields a ( τ ) = a ( 0 ) 𝑎 𝜏 𝑎 0 a(\tau)=a(0) italic_a ( italic_τ ) = italic_a ( 0 ) and b ( τ ) = b ( 0 ) e − r τ 𝑏 𝜏 𝑏 0 superscript 𝑒 𝑟 𝜏 b(\tau)=b(0)e^{-r\tau} italic_b ( italic_τ ) = italic_b ( 0 ) italic_e start_POSTSUPERSCRIPT - italic_r italic_τ end_POSTSUPERSCRIPT , where a ( 0 ) 𝑎 0 a(0) italic_a ( 0 ) , and b ( 0 ) 𝑏 0 b(0) italic_b ( 0 ) can be derived from the initial conditions p ( x ) 𝑝 𝑥 p(x) italic_p ( italic_x ) at each boundary. If a ( 0 ) 𝑎 0 a(0) italic_a ( 0 ) or b ( 0 ) 𝑏 0 b(0) italic_b ( 0 ) are non-zero on at least one of the boundaries, we can rescale a normalised solution to ensure that the value at that boundary is equal to a ( τ ) x + b ( τ ) 𝑎 𝜏 𝑥 𝑏 𝜏 a(\tau)x+b(\tau) italic_a ( italic_τ ) italic_x + italic_b ( italic_τ ) .
To guarantee that the linear boundary conditions apply during the QNUTE simulation, they must be encoded into the Black-Scholes Hamiltonian. The first and last rows of the matrix in Eq. (11 ) are updated with the corresponding forward and backward first-order finite difference coefficients, respectively, with the second-derivative terms vanishing as the function is linear. The Black-Scholes Hamiltonian inclusive of linear boundary conditions takes the form
− i H ^ L B S = [ γ 0 ′ β 0 ′ α 1 γ 1 β 1 ⋱ ⋱ ⋱ α 2 n − 2 γ 2 n − 2 β 2 n − 2 α 2 n − 1 ′ γ 2 n − 1 ′ ] , 𝑖 subscript ^ 𝐻 𝐿 𝐵 𝑆 matrix superscript subscript 𝛾 0 ′ superscript subscript 𝛽 0 ′ missing-subexpression missing-subexpression subscript 𝛼 1 subscript 𝛾 1 subscript 𝛽 1 missing-subexpression missing-subexpression ⋱ ⋱ ⋱ missing-subexpression missing-subexpression missing-subexpression missing-subexpression subscript 𝛼 superscript 2 𝑛 2 subscript 𝛾 superscript 2 𝑛 2 subscript 𝛽 superscript 2 𝑛 2 missing-subexpression missing-subexpression missing-subexpression superscript subscript 𝛼 superscript 2 𝑛 1 ′ superscript subscript 𝛾 superscript 2 𝑛 1 ′ -i\hat{H}_{LBS}=\begin{bmatrix}\gamma_{0}^{\prime}&\beta_{0}^{\prime}&&\\
\alpha_{1}&\gamma_{1}&\beta_{1}&\\
&\ddots&\ddots&\ddots&&\\
&&\alpha_{2^{n}-2}&\gamma_{2^{n}-2}&\beta_{2^{n}-2}\\
&&&\alpha_{2^{n}-1}^{\prime}&\gamma_{2^{n}-1}^{\prime}\end{bmatrix}, - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_L italic_B italic_S end_POSTSUBSCRIPT = [ start_ARG start_ROW start_CELL italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_α start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] ,
(14)
where
γ 0 ′ = − r − r x 0 h , β 0 ′ = r x 0 h , α 2 n − 1 ′ = − r x N h , γ 2 n − 1 ′ = − r + r x N h . superscript subscript 𝛾 0 ′ absent 𝑟 𝑟 subscript 𝑥 0 ℎ superscript subscript 𝛽 0 ′ absent 𝑟 subscript 𝑥 0 ℎ superscript subscript 𝛼 superscript 2 𝑛 1 ′ absent 𝑟 subscript 𝑥 𝑁 ℎ superscript subscript 𝛾 superscript 2 𝑛 1 ′ absent 𝑟 𝑟 subscript 𝑥 𝑁 ℎ \displaystyle\begin{aligned} \gamma_{0}^{\prime}&=\ -r-\frac{rx_{0}}{h},\\
\beta_{0}^{\prime}&=\ \frac{rx_{0}}{h},\\
\alpha_{2^{n}-1}^{\prime}&=\ -\frac{rx_{N}}{h},\\
\gamma_{2^{n}-1}^{\prime}&=\ -r+\frac{rx_{N}}{h}.\end{aligned} start_ROW start_CELL italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL = - italic_r - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG , end_CELL end_ROW start_ROW start_CELL italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL = divide start_ARG italic_r italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG , end_CELL end_ROW start_ROW start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL = - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG , end_CELL end_ROW start_ROW start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT end_CELL start_CELL = - italic_r + divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG . end_CELL end_ROW
(15)
See Supplementary Information for the Pauli decomposition of this Hamiltonian.
Discussion
In this work, we have generalised the quantum imaginary time evolution algorithm to enable the simulation of arbitrary non-Hermitian dynamics on quantum computers. We demonstrated our QNUTE algorithm’s application via a numerical implementation that simulating the pricing dynamics of European options, as dictated by the Black-Scholes equation.
In undertaking these simulations, we assumed that the underlying financial asset had constant volatility, σ 𝜎 \sigma italic_σ , and risk-free interest rate, r 𝑟 r italic_r . The time dependence of these variables can be encoded in the Hamiltonian with no extra cost to its construction. Further, the inclusion of these variables does not affect the unitary approximations produced by QNUTE, however, modelling volatility and interest rates as stochastic processes may require smaller time steps for more accurate simulations. Indeed, the time dependence of r 𝑟 r italic_r gives rise to a different boundary ODE, which necessitates modifications to our rescaling protocol.
As depicted in Fig. 1 , our implementations of QNUTE were able to match the analytical solutions of the Black-Scholes equation. For convergence, it is important to choose an asset price domain with boundaries such that linear boundary conditions hold for the option’s payoff u ( x , τ = T ) 𝑢 𝑥 𝜏
𝑇 u(x,\tau=T) italic_u ( italic_x , italic_τ = italic_T ) . A good level of convergence also depends on having access to enough sample points around the strike prices of the option, a lack of which can be seen in the 2-qubit curves in Fig. 1 (c), (d) and (f).
In our implementations of QNUTE, each term, h ^ m subscript ^ ℎ 𝑚 \hat{h}_{m} over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT , in the decomposition of the Black-Scholes Hamiltonian was a linear combination of Pauli strings. Since the number of distinct Pauli strings in our decomposition scales exponentially with the number of qubits, an alternative decomposition is required for the scalability of QNUTE for Black-Scholes.
Approaches taken to solve PDEs using varQITE have also required the expectation values of finite difference operators. In particular, Liu et al. proposed a scheme to measure such expectation values with a linear overhead [14 ] . We conjecture that this scheme may be adopted within our approach, leading to exponentially fewer terms in the Hamiltonian decomposition.
The discretised Black-Scholes Hamiltonian has a high degree of correlation between all the qubits used in the simulation. This was demonstrated by implementing inexact QNUTE, wherein the unitary approximations only act on at most D 𝐷 D italic_D adjacent qubits. Figure 2 depicts the fidelities of inexact QNUTE simulations, averaged over each time step for the various option payoffs, see Table 1 for the exact values. For an increasing number of qubits and fixed domain size D 𝐷 D italic_D , we have it that inexact QNUTE does not capture the correlations between the qubits, rendering it unable to emulate the true time evolution.
For future work, we intend to incorporate recent improvements to the simulated QITE methodology, including Fast QITE [9 ] , time-dependent drifted QITE [10 ] and QITE with nonlocal approximation [11 ] , within our QNUTE framework to understand their effect on the accuracy and efficiency for simulated PDE dynamics.
Data availability
All data generated and analysed during this study are included in this published article and its supplementary information files.
Code availability
The code that supports the findings of this study is available from the corresponding authors upon reasonable request.
References
\bibcommenthead
Hull [2017]
Hull, J.:
Options, Futures, and Other Derivatives John C. Hull.,
Ninth edition. edn.
Pearson Education Limited,
Harlow, United Kingdom
(2017)
Black and Scholes [1973]
Black, F.,
Scholes, M.S.:
The Pricing of Options and Corporate Liabilities.
Journal of Political Economy
81 (3),
637–654
(1973)
https://doi.org/10.1086/260062
Fontanela et al. [2021]
Fontanela, F.,
Jacquier, A.,
Oumgari, M.:
A quantum algorithm for linear pdes arising in finance.
SIAM Journal on Financial Mathematics
12 (4),
98–114
(2021)
Radha [2021]
Radha, S.K.:
Quantum option pricing using wick rotated imaginary time evolution.
arXiv preprint arXiv:2101.04280
(2021)
Alghassi et al. [2022]
Alghassi, H.,
Deshmukh, A.,
Ibrahim, N.,
Robles, N.,
Woerner, S.,
Zoufal, C.:
A variational quantum algorithm for the Feynman-Kac formula.
Quantum
6 ,
730
(2022)
https://doi.org/10.22331/q-2022-06-07-730
Gonzalez-Conde et al. [2023]
Gonzalez-Conde, J.,
Rodríguez-Rozas, A.,
Solano, E.,
Sanz, M.:
Efficient hamiltonian simulation for solving option price dynamics.
Phys. Rev. Res.
5 ,
043220
(2023)
https://doi.org/10.1103/PhysRevResearch.5.043220
Motta et al. [2020]
Motta, M.,
Sun, C.,
Tan, A.T.,
O’Rourke, M.J.,
Ye, E.,
Minnich, A.J.,
Brandao, F.G.,
Chan, G.K.-L.:
Determining eigenstates and thermal states on a quantum computer using quantum imaginary time evolution.
Nature Physics
16 (2),
205–210
(2020)
McArdle et al. [2019]
McArdle, S.,
Jones, T.,
Endo, S.,
Li, Y.,
Benjamin, S.C.,
Yuan, X.:
Variational ansatz-based quantum simulation of imaginary time evolution.
npj Quantum Information
5 (1)
(2019)
https://doi.org/10.1038/s41534-019-0187-2
Tan [2020]
Tan, K.C.:
Fast quantum imaginary time evolution
(2020)
Huang et al. [2022]
Huang, Y.,
Shao, Y.,
Ren, W.,
Sun, J.,
Lv, D.:
Efficient quantum imaginary time evolution by drifting real time evolution: an approach with low gate and measurement complexity.
arXiv preprint arXiv:2203.11112
(2022)
Nishi et al. [2021]
Nishi, H.,
Kosugi, T.,
Matsushita, Y.-i.:
Implementation of quantum imaginary-time evolution method on nisq devices by introducing nonlocal approximation.
npj Quantum Information
7 (1),
1–7
(2021)
Nguyen and Thompson [2024]
Nguyen, N.,
Thompson, R.:
Solving maxwells equations using variational quantum imaginary time evolution.
arXiv preprint arXiv:2402.14156
(2024)
Leong et al. [2023]
Leong, F.Y.,
Koh, D.E.,
Ewe, W.-B.,
Kong, J.F.:
Variational Quantum Simulation of Partial Differential Equations: Applications in Colloidal Transport
(2023)
Liu et al. [2021]
Liu, H.-L.,
Wu, Y.-S.,
Wan, L.-C.,
Pan, S.-J.,
Qin, S.-J.,
Gao, F.,
Wen, Q.-Y.:
Variational quantum algorithm for the poisson equation.
Phys. Rev. A
104 ,
022418
(2021)
https://doi.org/10.1103/PhysRevA.104.022418
Kumar and Wilmott [2024]
Kumar, S.,
Wilmott, C.M.:
Generalising quantum imaginary time evolution to solve linear partial differential equations
(2024)
Jones et al. [2019]
Jones, B.,
White, D.,
O’Brien, G.,
Clark, J.,
Campbell, E.:
Optimising trotter-suzuki decompositions for quantum simulation using evolutionary strategies,
pp. 1223–1231
(2019).
https://doi.org/10.1145/3321707.3321835
Trotter [1959]
Trotter, H.F.:
On the product of semi-groups of operators.
Proceedings of the American Mathematical Society
10 (4),
545–551
(1959)
Windcliff et al. [2004]
Windcliff, H.,
Forsyth, P.A.,
Vetzal, K.:
Analysis of the stability of the linear boundary condition for the black–scholes equation.
Journal of Computational Finance
8 ,
65–92
(2004)
Acknowledgements
C.M.W. and S.K. gratefully acknowledge the financial support of the Engineering and Physical Sciences Research Council (EPSRC) through the Hub in Quantum Computing and Simulation (EP/T001062/1).
Author Contributions
C.M.W. conceived the project. S.K. performed the numerical simulations. C.M.W. and S.K. analyzed the data and interpreted the results, and proposed improvements. C.M.W. and S.K. both contributed to the writing and editing of the manuscript.
Competing Interests
The authors declare no competing interests.
Supplementary Information
Calculating the unitaries
We approximate the normalised action of a Trotter step e h ^ m Δ t superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 e^{\hat{h}_{m}\Delta t} italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT on the state | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ by using the unitary e − i A ^ Δ t superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 e^{-i\hat{A}\Delta t} italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT , where A ^ = ∑ I a I σ I ^ ^ 𝐴 subscript 𝐼 subscript 𝑎 𝐼 ^ subscript 𝜎 𝐼 \hat{A}=\sum_{I}a_{I}\hat{\sigma_{I}} over^ start_ARG italic_A end_ARG = ∑ start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_σ start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_ARG is a Hermitian operator expressed as a real linear combination of Pauli operator strings indexed by I 𝐼 I italic_I . To calculate the coefficients a I subscript 𝑎 𝐼 a_{I} italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT , we minimise the distance between the normalised Trotter step and the unitary acting on | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ expanded to O ( Δ t ) 𝑂 Δ 𝑡 O(\Delta t) italic_O ( roman_Δ italic_t ) . This is achieved by firstly approximating the norm of the Trotter step acting on | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ . We have it that
c 2 = ⟨ ψ | e h ^ m † Δ t e h ^ m Δ t | ψ ⟩ = ⟨ ψ | ( 𝟙 ^ + h ^ m † Δ t ) ( 𝟙 ^ + h ^ m Δ t ) | ψ ⟩ + O ( Δ t 2 ) = ⟨ ψ | 𝟙 ^ + ( h ^ m † + h ^ m ) Δ t | ψ ⟩ + O ( Δ t 2 ) = 1 + 2 R e ⟨ ψ | h ^ m | ψ ⟩ Δ t + O ( Δ t 2 ) , superscript 𝑐 2 absent expectation-value superscript 𝑒 superscript subscript ^ ℎ 𝑚 † Δ 𝑡 superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 𝜓 𝜓 missing-subexpression absent expectation-value ^ 1 superscript subscript ^ ℎ 𝑚 † Δ 𝑡 ^ 1 subscript ^ ℎ 𝑚 Δ 𝑡 𝜓 𝜓 𝑂 Δ superscript 𝑡 2 missing-subexpression absent expectation-value ^ 1 superscript subscript ^ ℎ 𝑚 † subscript ^ ℎ 𝑚 Δ 𝑡 𝜓 𝜓 𝑂 Δ superscript 𝑡 2 missing-subexpression absent 1 2 R e expectation-value subscript ^ ℎ 𝑚 𝜓 𝜓 Δ 𝑡 𝑂 Δ superscript 𝑡 2 \displaystyle\begin{aligned} c^{2}&={\expectationvalue{e^{\hat{h}_{m}^{\dagger%
}\Delta t}e^{\hat{h}_{m}\Delta t}}{\psi}}\\
&=\expectationvalue{(\hat{\mathbbm{1}}+\hat{h}_{m}^{\dagger}\Delta t)(\hat{%
\mathbbm{1}}+\hat{h}_{m}\Delta t)}{\psi}+O(\Delta t^{2})\\
&=\expectationvalue{\hat{\mathbbm{1}}+(\hat{h}_{m}^{\dagger}+\hat{h}_{m})%
\Delta t}{\psi}+O(\Delta t^{2})\\
&=1+2\mathrm{Re}\expectationvalue{\hat{h}_{m}}{\psi}\Delta t+O(\Delta t^{2}),%
\end{aligned} start_ROW start_CELL italic_c start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL start_CELL = ⟨ start_ARG italic_ψ end_ARG | start_ARG italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ⟨ start_ARG italic_ψ end_ARG | start_ARG ( over^ start_ARG blackboard_1 end_ARG + over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT roman_Δ italic_t ) ( over^ start_ARG blackboard_1 end_ARG + over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t ) end_ARG | start_ARG italic_ψ end_ARG ⟩ + italic_O ( roman_Δ italic_t start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG blackboard_1 end_ARG + ( over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT + over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT ) roman_Δ italic_t end_ARG | start_ARG italic_ψ end_ARG ⟩ + italic_O ( roman_Δ italic_t start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = 1 + 2 roman_R roman_e ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ roman_Δ italic_t + italic_O ( roman_Δ italic_t start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) , end_CELL end_ROW
(16)
from which we have
c 𝑐 \displaystyle c italic_c
≈ 1 + 2 Δ t Re ⟨ ψ | h ^ m | ψ ⟩ . absent 1 2 Δ 𝑡 Re expectation-value subscript ^ ℎ 𝑚 𝜓 𝜓 \displaystyle\approx\sqrt{1+2\Delta t\,\mathrm{Re}\expectationvalue{\hat{h}_{m%
}}{\psi}}. ≈ square-root start_ARG 1 + 2 roman_Δ italic_t roman_Re ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_ARG .
(17)
Next, we set the unitary e − i A ^ Δ t superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 e^{-i\hat{A}\Delta t} italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT to map | ψ ⟩ ket 𝜓 \ket{\psi} | start_ARG italic_ψ end_ARG ⟩ to the normalised output of the Trotter step
e − i A ^ Δ t | ψ ⟩ superscript 𝑒 𝑖 ^ 𝐴 Δ 𝑡 ket 𝜓 \displaystyle e^{-i\hat{A}\Delta t}\ket{\psi} italic_e start_POSTSUPERSCRIPT - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t end_POSTSUPERSCRIPT | start_ARG italic_ψ end_ARG ⟩
= e h ^ m Δ t c | ψ ⟩ , absent superscript 𝑒 subscript ^ ℎ 𝑚 Δ 𝑡 𝑐 ket 𝜓 \displaystyle=\frac{e^{\hat{h}_{m}\Delta t}}{c}\ket{\psi}, = divide start_ARG italic_e start_POSTSUPERSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_POSTSUPERSCRIPT end_ARG start_ARG italic_c end_ARG | start_ARG italic_ψ end_ARG ⟩ ,
(18)
from which we have
( 𝟙 ^ − i A ^ Δ t ) | ψ ⟩ ^ 1 𝑖 ^ 𝐴 Δ 𝑡 ket 𝜓 \displaystyle(\hat{\mathbbm{1}}-i\hat{A}\Delta t)\ket{\psi} ( over^ start_ARG blackboard_1 end_ARG - italic_i over^ start_ARG italic_A end_ARG roman_Δ italic_t ) | start_ARG italic_ψ end_ARG ⟩
≈ ( 𝟙 ^ + h ^ m Δ t c ) | ψ ⟩ , absent ^ 1 subscript ^ ℎ 𝑚 Δ 𝑡 𝑐 ket 𝜓 \displaystyle\approx\left(\frac{\hat{\mathbbm{1}}+\hat{h}_{m}\Delta t}{c}%
\right)\ket{\psi}, ≈ ( divide start_ARG over^ start_ARG blackboard_1 end_ARG + over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT roman_Δ italic_t end_ARG start_ARG italic_c end_ARG ) | start_ARG italic_ψ end_ARG ⟩ ,
(19)
and rewriting
− i A ^ | ψ ⟩ 𝑖 ^ 𝐴 ket 𝜓 \displaystyle-i\hat{A}\ket{\psi} - italic_i over^ start_ARG italic_A end_ARG | start_ARG italic_ψ end_ARG ⟩
≈ 1 − c c Δ t | ψ ⟩ + h ^ m c | ψ ⟩ . absent 1 𝑐 𝑐 Δ 𝑡 ket 𝜓 subscript ^ ℎ 𝑚 𝑐 ket 𝜓 \displaystyle\approx\frac{1-c}{c\,\Delta t}\ket{\psi}+\frac{\hat{h}_{m}}{c}%
\ket{\psi}. ≈ divide start_ARG 1 - italic_c end_ARG start_ARG italic_c roman_Δ italic_t end_ARG | start_ARG italic_ψ end_ARG ⟩ + divide start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG start_ARG italic_c end_ARG | start_ARG italic_ψ end_ARG ⟩ .
(20)
Now, defining
| Δ 0 ⟩ := 1 − c c Δ t | ψ ⟩ + h ^ m c | ψ ⟩ , assign ket subscript Δ 0 1 𝑐 𝑐 Δ 𝑡 ket 𝜓 subscript ^ ℎ 𝑚 𝑐 ket 𝜓 \ket{\Delta_{0}}:=\frac{1-c}{c\,\Delta t}\ket{\psi}+\frac{\hat{h}_{m}}{c}\ket{%
\psi}, | start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ := divide start_ARG 1 - italic_c end_ARG start_ARG italic_c roman_Δ italic_t end_ARG | start_ARG italic_ψ end_ARG ⟩ + divide start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG start_ARG italic_c end_ARG | start_ARG italic_ψ end_ARG ⟩ ,
(21)
and
| Δ ⟩ := − i A ^ | ψ ⟩ , assign ket Δ 𝑖 ^ 𝐴 ket 𝜓 \ket{\Delta}:=-i\hat{A}\ket{\psi}, | start_ARG roman_Δ end_ARG ⟩ := - italic_i over^ start_ARG italic_A end_ARG | start_ARG italic_ψ end_ARG ⟩ ,
(22)
we solve for A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG such that the squared distance between | Δ ⟩ ket Δ \ket{\Delta} | start_ARG roman_Δ end_ARG ⟩ and | Δ 0 ⟩ ket subscript Δ 0 \ket{\Delta_{0}} | start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ is minimised. It follows that
‖ | Δ 0 ⟩ − | Δ ⟩ ‖ 2 = ( ⟨ Δ 0 | − ⟨ Δ | ) ( | Δ 0 ⟩ − | Δ ⟩ ) = ⟨ Δ 0 ⟩ − ⟨ Δ 0 ⟩ Δ − ⟨ Δ ⟩ Δ 0 + ⟨ Δ ⟩ = ⟨ Δ 0 ⟩ + ⟨ Δ ⟩ − 2 R e ⟨ Δ 0 ⟩ Δ . superscript norm ket subscript Δ 0 ket Δ 2 absent bra subscript Δ 0 bra Δ ket subscript Δ 0 ket Δ missing-subexpression absent expectation subscript Δ 0 expectation subscript Δ 0 Δ expectation Δ subscript Δ 0 expectation Δ missing-subexpression absent expectation subscript Δ 0 expectation Δ 2 R e expectation subscript Δ 0 Δ \displaystyle\begin{aligned} \|\ket{\Delta_{0}}-\ket{\Delta}\|^{2}&=(\bra{%
\Delta_{0}}-\bra{\Delta})(\ket{\Delta_{0}}-\ket{\Delta})\\
&=\braket{\Delta_{0}}-\braket{\Delta_{0}}{\Delta}-\braket{\Delta}{\Delta_{0}}+%
\braket{\Delta}\\
&=\braket{\Delta_{0}}+\braket{\Delta}-2\mathrm{Re}\braket{\Delta_{0}}{\Delta}.%
\end{aligned} start_ROW start_CELL ∥ | start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ - | start_ARG roman_Δ end_ARG ⟩ ∥ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL start_CELL = ( ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG | - ⟨ start_ARG roman_Δ end_ARG | ) ( | start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ - | start_ARG roman_Δ end_ARG ⟩ ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ - ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ - ⟨ start_ARG roman_Δ end_ARG ⟩ roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + ⟨ start_ARG roman_Δ end_ARG ⟩ end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ + ⟨ start_ARG roman_Δ end_ARG ⟩ - 2 roman_R roman_e ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ . end_CELL end_ROW
(23)
Since | Δ 0 ⟩ ket subscript Δ 0 \ket{\Delta_{0}} | start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ does not depend on A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG , ⟨ Δ 0 ⟩ expectation subscript Δ 0 \braket{\Delta_{0}} ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ , in the minimisation, can be ignored. Noting that A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG is Hermitian, we see that
⟨ Δ ⟩ = ⟨ ψ | A ^ 2 | ψ ⟩ , expectation Δ expectation-value superscript ^ 𝐴 2 𝜓 𝜓 \braket{\Delta}=\expectationvalue{\hat{A}^{2}}{\psi}, ⟨ start_ARG roman_Δ end_ARG ⟩ = ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ ,
(24)
while the quantity ⟨ Δ 0 ⟩ Δ expectation subscript Δ 0 Δ \braket{\Delta_{0}}{\Delta} ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ can be evaluated as
⟨ Δ 0 ⟩ Δ expectation subscript Δ 0 Δ \displaystyle\braket{\Delta_{0}}{\Delta} ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ
= \displaystyle= =
( 1 − c c Δ t ⟨ ψ | + ⟨ ψ | h ^ m † c ) ( − i A ^ | ψ ⟩ ) 1 𝑐 𝑐 Δ 𝑡 bra 𝜓 bra 𝜓 superscript subscript ^ ℎ 𝑚 † 𝑐 𝑖 ^ 𝐴 ket 𝜓 \displaystyle\left(\frac{1-c}{c\,\Delta t}\bra{\psi}+\bra{\psi}\frac{\hat{h}_{%
m}^{\dagger}}{c}\right)(-i\hat{A}\ket{\psi}) ( divide start_ARG 1 - italic_c end_ARG start_ARG italic_c roman_Δ italic_t end_ARG ⟨ start_ARG italic_ψ end_ARG | + ⟨ start_ARG italic_ψ end_ARG | divide start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT end_ARG start_ARG italic_c end_ARG ) ( - italic_i over^ start_ARG italic_A end_ARG | start_ARG italic_ψ end_ARG ⟩ )
(25)
= \displaystyle= =
− i ( 1 − c c Δ t ) ⟨ ψ | A ^ | ψ ⟩ − i c ⟨ ψ | h ^ m † A ^ | ψ ⟩ . 𝑖 1 𝑐 𝑐 Δ 𝑡 expectation-value ^ 𝐴 𝜓 𝜓 𝑖 𝑐 expectation-value superscript subscript ^ ℎ 𝑚 † ^ 𝐴 𝜓 𝜓 \displaystyle-i\left(\frac{1-c}{c\,\Delta t}\right)\expectationvalue{\hat{A}}{%
\psi}-\frac{i}{c}\expectationvalue{\hat{h}_{m}^{\dagger}\hat{A}}{\psi}. - italic_i ( divide start_ARG 1 - italic_c end_ARG start_ARG italic_c roman_Δ italic_t end_ARG ) ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG end_ARG | start_ARG italic_ψ end_ARG ⟩ - divide start_ARG italic_i end_ARG start_ARG italic_c end_ARG ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT over^ start_ARG italic_A end_ARG end_ARG | start_ARG italic_ψ end_ARG ⟩ .
(26)
Using that A ^ ^ 𝐴 \hat{A} over^ start_ARG italic_A end_ARG is Hermitian, the expectation value of ⟨ ψ | A ^ | ψ ⟩ expectation-value ^ 𝐴 𝜓 𝜓 \expectationvalue{\hat{A}}{\psi} ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG end_ARG | start_ARG italic_ψ end_ARG ⟩ will always be real, which implies that the real part of ⟨ Δ 0 ⟩ Δ expectation subscript Δ 0 Δ \braket{\Delta_{0}}{\Delta} ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ only depends on the second term in Eq. (26 )
Re ( ⟨ Δ 0 ⟩ Δ ) = Re ( − i c ⟨ ψ | h ^ m † A ^ | ψ ⟩ ) = Im ( ⟨ ψ | h ^ m † A ^ | ψ ⟩ c ) = − Im ( ⟨ ψ | A ^ h ^ m | ψ ⟩ c ) . Re expectation subscript Δ 0 Δ absent Re 𝑖 𝑐 expectation-value superscript subscript ^ ℎ 𝑚 † ^ 𝐴 𝜓 𝜓 missing-subexpression absent Im expectation-value superscript subscript ^ ℎ 𝑚 † ^ 𝐴 𝜓 𝜓 𝑐 missing-subexpression absent Im expectation-value ^ 𝐴 subscript ^ ℎ 𝑚 𝜓 𝜓 𝑐 \displaystyle\begin{aligned} \mathrm{Re}(\braket{\Delta_{0}}{\Delta})&=\mathrm%
{Re}\left(\frac{-i}{c}\expectationvalue{\hat{h}_{m}^{\dagger}\hat{A}}{\psi}%
\right)\\
&=\mathrm{Im}\left(\frac{\expectationvalue{\hat{h}_{m}^{\dagger}\hat{A}}{\psi}%
}{c}\right)\\
&=-\mathrm{Im}\left(\frac{\expectationvalue{\hat{A}\hat{h}_{m}}{\psi}}{c}%
\right).\end{aligned} start_ROW start_CELL roman_Re ( ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ ) end_CELL start_CELL = roman_Re ( divide start_ARG - italic_i end_ARG start_ARG italic_c end_ARG ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT over^ start_ARG italic_A end_ARG end_ARG | start_ARG italic_ψ end_ARG ⟩ ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = roman_Im ( divide start_ARG ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT start_POSTSUPERSCRIPT † end_POSTSUPERSCRIPT over^ start_ARG italic_A end_ARG end_ARG | start_ARG italic_ψ end_ARG ⟩ end_ARG start_ARG italic_c end_ARG ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = - roman_Im ( divide start_ARG ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_ARG start_ARG italic_c end_ARG ) . end_CELL end_ROW
(27)
The function to minimise, therefore, reduces to
f ( a → ) = − 2 R e ( ⟨ Δ 0 ⟩ Δ + ⟨ Δ ⟩ ) = 2 c Im ( ⟨ ψ | A ^ h ^ m | ψ ⟩ ) + ⟨ ψ | A ^ 2 | ψ ⟩ = ∑ I 2 a I c Im ( ⟨ ψ | σ ^ I h ^ m | ψ ⟩ ) + ∑ I , J a I a J ⟨ ψ | σ ^ I σ ^ J | ψ ⟩ . 𝑓 → 𝑎 absent 2 R e expectation subscript Δ 0 Δ expectation Δ missing-subexpression absent 2 𝑐 Im expectation-value ^ 𝐴 subscript ^ ℎ 𝑚 𝜓 𝜓 expectation-value superscript ^ 𝐴 2 𝜓 𝜓 missing-subexpression absent subscript 𝐼 2 subscript 𝑎 𝐼 𝑐 Im expectation-value subscript ^ 𝜎 𝐼 subscript ^ ℎ 𝑚 𝜓 𝜓 subscript 𝐼 𝐽
subscript 𝑎 𝐼 subscript 𝑎 𝐽 expectation-value subscript ^ 𝜎 𝐼 subscript ^ 𝜎 𝐽 𝜓 𝜓 \displaystyle\begin{aligned} f(\vec{a})&=-2\mathrm{Re}(\braket{\Delta_{0}}{%
\Delta}+\braket{\Delta})\\
&=\frac{2}{c}\,\mathrm{Im}(\expectationvalue{\hat{A}\hat{h}_{m}}{\psi})+%
\expectationvalue{\hat{A}^{2}}{\psi}\\
&=\sum_{I}\frac{2a_{I}}{c}\,\mathrm{Im}(\expectationvalue{\hat{\sigma}_{I}\hat%
{h}_{m}}{\psi})+\sum_{I,J}a_{I}a_{J}\expectationvalue{\hat{\sigma}_{I}\hat{%
\sigma}_{J}}{\psi}.\end{aligned} start_ROW start_CELL italic_f ( over→ start_ARG italic_a end_ARG ) end_CELL start_CELL = - 2 roman_R roman_e ( ⟨ start_ARG roman_Δ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG ⟩ roman_Δ + ⟨ start_ARG roman_Δ end_ARG ⟩ ) end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = divide start_ARG 2 end_ARG start_ARG italic_c end_ARG roman_Im ( ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ ) + ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_A end_ARG start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ∑ start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT divide start_ARG 2 italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_ARG start_ARG italic_c end_ARG roman_Im ( ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ ) + ∑ start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ . end_CELL end_ROW
(28)
Defining b → → 𝑏 \vec{b} over→ start_ARG italic_b end_ARG with components
b I := − 2 c Im ( ⟨ ψ | σ ^ I h ^ m | ψ ⟩ ) , assign subscript 𝑏 𝐼 2 𝑐 Im expectation-value subscript ^ 𝜎 𝐼 subscript ^ ℎ 𝑚 𝜓 𝜓 b_{I}:=\frac{-2}{c}\,\mathrm{Im}(\expectationvalue{\hat{\sigma}_{I}\hat{h}_{m}%
}{\psi}), italic_b start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT := divide start_ARG - 2 end_ARG start_ARG italic_c end_ARG roman_Im ( ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_h end_ARG start_POSTSUBSCRIPT italic_m end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ ) ,
(29)
and the matrix S 𝑆 S italic_S with entries
S I , J := ⟨ ψ | σ ^ I σ ^ J | ψ ⟩ , assign subscript 𝑆 𝐼 𝐽
expectation-value subscript ^ 𝜎 𝐼 subscript ^ 𝜎 𝐽 𝜓 𝜓 S_{I,J}:=\expectationvalue{\hat{\sigma}_{I}\hat{\sigma}_{J}}{\psi}, italic_S start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT := ⟨ start_ARG italic_ψ end_ARG | start_ARG over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT over^ start_ARG italic_σ end_ARG start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT end_ARG | start_ARG italic_ψ end_ARG ⟩ ,
(30)
we can rewrite the objective function as
f ( a → ) = ∑ I , J a I S I , J a J − ∑ I b I a I = a → ⋅ S a → − b → ⋅ a → . 𝑓 → 𝑎 absent subscript 𝐼 𝐽
subscript 𝑎 𝐼 subscript 𝑆 𝐼 𝐽
subscript 𝑎 𝐽 subscript 𝐼 subscript 𝑏 𝐼 subscript 𝑎 𝐼 missing-subexpression absent ⋅ → 𝑎 𝑆 → 𝑎 ⋅ → 𝑏 → 𝑎 \displaystyle\begin{aligned} f(\vec{a})&=\sum_{I,J}a_{I}S_{I,J}a_{J}-\sum_{I}b%
_{I}a_{I}\\
&=\vec{a}\cdot S\vec{a}-\vec{b}\cdot\vec{a}.\end{aligned} start_ROW start_CELL italic_f ( over→ start_ARG italic_a end_ARG ) end_CELL start_CELL = ∑ start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT italic_S start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT - ∑ start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT italic_b start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = over→ start_ARG italic_a end_ARG ⋅ italic_S over→ start_ARG italic_a end_ARG - over→ start_ARG italic_b end_ARG ⋅ over→ start_ARG italic_a end_ARG . end_CELL end_ROW
(31)
To minimise f 𝑓 f italic_f with respect to a → → 𝑎 \vec{a} over→ start_ARG italic_a end_ARG , we equate its gradient to zero, and observe that
∂ f ∂ a I = ∑ J ≠ I ( S I , J + S J , I ) a J + 2 S I , I a I − b I = ∑ I , J ( S I , J + S J , I ) a J − b I . partial-derivative subscript 𝑎 𝐼 𝑓 absent subscript 𝐽 𝐼 subscript 𝑆 𝐼 𝐽
subscript 𝑆 𝐽 𝐼
subscript 𝑎 𝐽 2 subscript 𝑆 𝐼 𝐼
subscript 𝑎 𝐼 subscript 𝑏 𝐼 missing-subexpression absent subscript 𝐼 𝐽
subscript 𝑆 𝐼 𝐽
subscript 𝑆 𝐽 𝐼
subscript 𝑎 𝐽 subscript 𝑏 𝐼 \displaystyle\begin{aligned} \partialderivative{f}{a_{I}}&=\sum_{J\neq I}(S_{I%
,J}+S_{J,I})a_{J}+2S_{I,I}a_{I}-b_{I}\\
&=\sum_{I,J}(S_{I,J}+S_{J,I})a_{J}-b_{I}.\end{aligned} start_ROW start_CELL divide start_ARG ∂ start_ARG italic_f end_ARG end_ARG start_ARG ∂ start_ARG italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_ARG end_ARG end_CELL start_CELL = ∑ start_POSTSUBSCRIPT italic_J ≠ italic_I end_POSTSUBSCRIPT ( italic_S start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT + italic_S start_POSTSUBSCRIPT italic_J , italic_I end_POSTSUBSCRIPT ) italic_a start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT + 2 italic_S start_POSTSUBSCRIPT italic_I , italic_I end_POSTSUBSCRIPT italic_a start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT - italic_b start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL = ∑ start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT ( italic_S start_POSTSUBSCRIPT italic_I , italic_J end_POSTSUBSCRIPT + italic_S start_POSTSUBSCRIPT italic_J , italic_I end_POSTSUBSCRIPT ) italic_a start_POSTSUBSCRIPT italic_J end_POSTSUBSCRIPT - italic_b start_POSTSUBSCRIPT italic_I end_POSTSUBSCRIPT . end_CELL end_ROW
(32)
It follows that ∇ f = ( S + S ⊤ ) a → − b → ∇ 𝑓 𝑆 superscript 𝑆 top → 𝑎 → 𝑏 \nabla f=(S+S^{\top})\vec{a}-\vec{b} ∇ italic_f = ( italic_S + italic_S start_POSTSUPERSCRIPT ⊤ end_POSTSUPERSCRIPT ) over→ start_ARG italic_a end_ARG - over→ start_ARG italic_b end_ARG , and, hence, to minimise f 𝑓 f italic_f , we solve for a → → 𝑎 \vec{a} over→ start_ARG italic_a end_ARG in
( S + S ⊤ ) a → = b → . 𝑆 superscript 𝑆 top → 𝑎 → 𝑏 (S+S^{\top})\vec{a}=\vec{b}. ( italic_S + italic_S start_POSTSUPERSCRIPT ⊤ end_POSTSUPERSCRIPT ) over→ start_ARG italic_a end_ARG = over→ start_ARG italic_b end_ARG .
(33)
The Black-Scholes Hamiltonian in the Pauli basis
In order to discretise the Black-Scholes equation with the form, as given in Eq. (2 ),
∂ u ∂ τ = σ 2 2 x 2 ∂ 2 u ∂ x 2 + r x ∂ u ∂ x − r u , partial-derivative 𝜏 𝑢 superscript 𝜎 2 2 superscript 𝑥 2 partial-derivative 𝑥 2 𝑢 𝑟 𝑥 partial-derivative 𝑥 𝑢 𝑟 𝑢 \partialderivative{u}{\tau}=\frac{\sigma^{2}}{2}x^{2}\partialderivative[2]{u}{%
x}+rx\partialderivative{u}{x}-ru, divide start_ARG ∂ start_ARG italic_u end_ARG end_ARG start_ARG ∂ start_ARG italic_τ end_ARG end_ARG = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 end_ARG italic_x start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT divide start_ARG start_DIFFOP SUPERSCRIPTOP start_ARG ∂ end_ARG start_ARG 2 end_ARG end_DIFFOP start_ARG italic_u end_ARG end_ARG start_ARG SUPERSCRIPTOP start_ARG ∂ start_ARG italic_x end_ARG end_ARG start_ARG 2 end_ARG end_ARG + italic_r italic_x divide start_ARG ∂ start_ARG italic_u end_ARG end_ARG start_ARG ∂ start_ARG italic_x end_ARG end_ARG - italic_r italic_u ,
(34)
we rewrite the derivative operators in terms of finite difference representations and substitute the x 𝑥 x italic_x and x 2 superscript 𝑥 2 x^{2} italic_x start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT terms with the diagonal matrices
X ^ = [ x 0 ⋱ x N ] and X ^ 2 = [ x 0 2 ⋱ x N 2 ] , ^ 𝑋 matrix subscript 𝑥 0 missing-subexpression missing-subexpression missing-subexpression ⋱ missing-subexpression missing-subexpression missing-subexpression subscript 𝑥 𝑁 and superscript ^ 𝑋 2 matrix superscript subscript 𝑥 0 2 missing-subexpression missing-subexpression missing-subexpression ⋱ missing-subexpression missing-subexpression missing-subexpression superscript subscript 𝑥 𝑁 2 {\hat{X}=\begin{bmatrix}x_{0}&&\\
&\ddots&\\
&&x_{N}\end{bmatrix}}\ \textrm{and}\ {\hat{X}^{2}=\begin{bmatrix}x_{0}^{2}&&\\
&\ddots&\\
&&x_{N}^{2}\end{bmatrix}}, over^ start_ARG italic_X end_ARG = [ start_ARG start_ROW start_CELL italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] and over^ start_ARG italic_X end_ARG start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] ,
(35)
respectively, where x k = x 0 + k h subscript 𝑥 𝑘 subscript 𝑥 0 𝑘 ℎ x_{k}=x_{0}+kh italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_k italic_h .
We are required to represent these matrices as linear combinations of the Pauli operators in order to be able to simulate their dynamics with QNUTE. Firstly, let us define the following one-qubit matrices.
A ^ ↖ ( 1 ) := [ 1 0 0 0 ] = I ^ + Z ^ 2 A ^ ↘ ( 1 ) := [ 0 0 0 1 ] = I ^ − Z ^ 2 A ^ ↗ ( 1 ) := [ 0 1 0 0 ] = X ^ + i Y ^ 2 A ^ ↙ ( 1 ) := [ 0 0 1 0 ] = X ^ − i Y ^ 2 assign superscript subscript ^ 𝐴 ↖ 1 matrix 1 0 0 0 absent ^ 𝐼 ^ 𝑍 2 assign superscript subscript ^ 𝐴 ↘ 1 matrix 0 0 0 1 absent ^ 𝐼 ^ 𝑍 2 assign superscript subscript ^ 𝐴 ↗ 1 matrix 0 1 0 0 absent ^ 𝑋 𝑖 ^ 𝑌 2 assign superscript subscript ^ 𝐴 ↙ 1 matrix 0 0 1 0 absent ^ 𝑋 𝑖 ^ 𝑌 2 \displaystyle\begin{aligned} \hat{A}_{\nwarrow}^{(1)}:=\begin{bmatrix}1&0\\
0&0\end{bmatrix}&=\frac{\hat{I}+\hat{Z}}{2}\\
\hat{A}_{\searrow}^{(1)}:=\begin{bmatrix}0&0\\
0&1\end{bmatrix}&=\frac{\hat{I}-\hat{Z}}{2}\\
\hat{A}_{\nearrow}^{(1)}:=\begin{bmatrix}0&1\\
0&0\end{bmatrix}&=\frac{\hat{X}+i\hat{Y}}{2}\\
\hat{A}_{\swarrow}^{(1)}:=\begin{bmatrix}0&0\\
1&0\end{bmatrix}&=\frac{\hat{X}-i\hat{Y}}{2}\end{aligned} start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT := [ start_ARG start_ROW start_CELL 1 end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL 0 end_CELL end_ROW end_ARG ] end_CELL start_CELL = divide start_ARG over^ start_ARG italic_I end_ARG + over^ start_ARG italic_Z end_ARG end_ARG start_ARG 2 end_ARG end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT := [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL 1 end_CELL end_ROW end_ARG ] end_CELL start_CELL = divide start_ARG over^ start_ARG italic_I end_ARG - over^ start_ARG italic_Z end_ARG end_ARG start_ARG 2 end_ARG end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT := [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL 1 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL 0 end_CELL end_ROW end_ARG ] end_CELL start_CELL = divide start_ARG over^ start_ARG italic_X end_ARG + italic_i over^ start_ARG italic_Y end_ARG end_ARG start_ARG 2 end_ARG end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT := [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL 1 end_CELL start_CELL 0 end_CELL end_ROW end_ARG ] end_CELL start_CELL = divide start_ARG over^ start_ARG italic_X end_ARG - italic_i over^ start_ARG italic_Y end_ARG end_ARG start_ARG 2 end_ARG end_CELL end_ROW
(36)
Further, consider the n 𝑛 n italic_n -qubit generalisations of Eq. (36 ) given by
A ^ ↖ ( n ) := A ^ ↖ ( 1 ) ⊗ A ^ ↖ ( n − 1 ) , A ^ ↘ ( n ) := A ^ ↘ ( 1 ) ⊗ A ^ ↘ ( n − 1 ) , A ^ ↗ ( n ) := A ^ ↗ ( 1 ) ⊗ A ^ ↗ ( n − 1 ) , A ^ ↙ ( n ) := A ^ ↙ ( 1 ) ⊗ A ^ ↙ ( n − 1 ) . superscript subscript ^ 𝐴 ↖ 𝑛 assign absent tensor-product superscript subscript ^ 𝐴 ↖ 1 superscript subscript ^ 𝐴 ↖ 𝑛 1 superscript subscript ^ 𝐴 ↘ 𝑛 assign absent tensor-product superscript subscript ^ 𝐴 ↘ 1 superscript subscript ^ 𝐴 ↘ 𝑛 1 superscript subscript ^ 𝐴 ↗ 𝑛 assign absent tensor-product superscript subscript ^ 𝐴 ↗ 1 superscript subscript ^ 𝐴 ↗ 𝑛 1 superscript subscript ^ 𝐴 ↙ 𝑛 assign absent tensor-product superscript subscript ^ 𝐴 ↙ 1 superscript subscript ^ 𝐴 ↙ 𝑛 1 \displaystyle\begin{aligned} \hat{A}_{\nwarrow}^{(n)}&:=\hat{A}_{\nwarrow}^{(1%
)}\otimes\hat{A}_{\nwarrow}^{(n-1)},\\
\hat{A}_{\searrow}^{(n)}&:=\hat{A}_{\searrow}^{(1)}\otimes\hat{A}_{\searrow}^{%
(n-1)},\\
\hat{A}_{\nearrow}^{(n)}&:=\hat{A}_{\nearrow}^{(1)}\otimes\hat{A}_{\nearrow}^{%
(n-1)},\\
\hat{A}_{\swarrow}^{(n)}&:=\hat{A}_{\swarrow}^{(1)}\otimes\hat{A}_{\swarrow}^{%
(n-1)}.\end{aligned} start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT end_CELL start_CELL := over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT , end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT end_CELL start_CELL := over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT , end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT end_CELL start_CELL := over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT , end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT end_CELL start_CELL := over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT . end_CELL end_ROW
(37)
Tensor product strings comprising n 𝑛 n italic_n copies of the four 1-qubit operators in Eq. (36 ) allows us to generate matrices that have a 1 in exactly one entry of a 2 n × 2 n superscript 2 𝑛 superscript 2 𝑛 2^{n}\times 2^{n} 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT × 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT matrix with 0s elsewhere. We will use these n 𝑛 n italic_n -qubit tensor strings of the operators in Eq. (36 ) to define the linear boundary conditions for the Black-Scholes Hamiltonian.
Let us construct the X ^ ^ 𝑋 \hat{X} over^ start_ARG italic_X end_ARG matrix for n 𝑛 n italic_n -qubits. We have
X ^ ( n ) = [ x 0 x 1 ⋱ x N ] = x 0 𝟙 ^ + h [ 0 1 ⋱ 2 n − 1 ] = x 0 𝟙 ^ + h χ ^ ( n ) . superscript ^ 𝑋 𝑛 matrix subscript 𝑥 0 missing-subexpression missing-subexpression missing-subexpression missing-subexpression subscript 𝑥 1 missing-subexpression missing-subexpression missing-subexpression missing-subexpression ⋱ missing-subexpression missing-subexpression missing-subexpression missing-subexpression subscript 𝑥 𝑁 subscript 𝑥 0 ^ 1 ℎ matrix 0 missing-subexpression missing-subexpression missing-subexpression missing-subexpression 1 missing-subexpression missing-subexpression missing-subexpression missing-subexpression ⋱ missing-subexpression missing-subexpression missing-subexpression missing-subexpression superscript 2 𝑛 1 subscript 𝑥 0 ^ 1 ℎ superscript ^ 𝜒 𝑛 \hat{X}^{(n)}=\begin{bmatrix}x_{0}&&&\\
&x_{1}&&\\
&&\ddots&\\
&&&x_{N}\end{bmatrix}=x_{0}\hat{\mathbbm{1}}+h\begin{bmatrix}0&&&\\
&1&&\\
&&\ddots&\\
&&&2^{n}-1\end{bmatrix}=x_{0}\hat{\mathbbm{1}}+h\hat{\chi}^{(n)}. over^ start_ARG italic_X end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] = italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT over^ start_ARG blackboard_1 end_ARG + italic_h [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL 1 end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_CELL end_ROW end_ARG ] = italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT over^ start_ARG blackboard_1 end_ARG + italic_h over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT .
(38)
Consider the matrix χ ^ ( n ) superscript ^ 𝜒 𝑛 \hat{\chi}^{(n)} over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT . For n = 1 𝑛 1 n=1 italic_n = 1 , χ ^ ( 1 ) = A ^ ↘ ( 1 ) superscript ^ 𝜒 1 superscript subscript ^ 𝐴 ↘ 1 \hat{\chi}^{(1)}=\hat{A}_{\searrow}^{(1)} over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT = over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT , while for n = 2 𝑛 2 n=2 italic_n = 2 , we have
χ ^ ( 2 ) = [ χ ^ ( 1 ) 0 0 2 I ^ + χ ^ ( 1 ) ] = A ^ ↖ ( 1 ) ⊗ χ ^ ( 1 ) + A ^ ↘ ( 1 ) ⊗ ( 2 I ^ + χ ^ ( 1 ) ) . superscript ^ 𝜒 2 matrix superscript ^ 𝜒 1 0 0 2 ^ 𝐼 superscript ^ 𝜒 1 tensor-product superscript subscript ^ 𝐴 ↖ 1 superscript ^ 𝜒 1 tensor-product superscript subscript ^ 𝐴 ↘ 1 2 ^ 𝐼 superscript ^ 𝜒 1 \hat{\chi}^{(2)}=\begin{bmatrix}\hat{\chi}^{(1)}&0\\
0&2\hat{I}+\hat{\chi}^{(1)}\end{bmatrix}=\hat{A}_{\nwarrow}^{(1)}\otimes\hat{%
\chi}^{(1)}+\hat{A}_{\searrow}^{(1)}\otimes(2\hat{I}+\hat{\chi}^{(1)}). over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 2 ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL 2 over^ start_ARG italic_I end_ARG + over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] = over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT + over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ ( 2 over^ start_ARG italic_I end_ARG + over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ) .
(39)
Generalising to n 𝑛 n italic_n -qubits, we have it that
χ ^ ( n ) = [ χ ^ ( n − 1 ) 0 0 2 n − 1 I ^ ⊗ n − 1 + χ ^ ( n − 1 ) ] = I ^ ⊗ χ ^ ( n − 1 ) + 2 n − 1 ( A ^ ↘ ( 1 ) ⊗ I ^ ⊗ n − 1 ) . superscript ^ 𝜒 𝑛 matrix superscript ^ 𝜒 𝑛 1 0 0 superscript 2 𝑛 1 superscript ^ 𝐼 tensor-product absent 𝑛 1 superscript ^ 𝜒 𝑛 1 tensor-product ^ 𝐼 superscript ^ 𝜒 𝑛 1 superscript 2 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↘ 1 superscript ^ 𝐼 tensor-product absent 𝑛 1 \hat{\chi}^{(n)}=\begin{bmatrix}\hat{\chi}^{(n-1)}&0\\
0&2^{n-1}\hat{I}^{\otimes n-1}+\hat{\chi}^{(n-1)}\end{bmatrix}=\hat{I}\otimes%
\hat{\chi}^{(n-1)}+2^{n-1}\left(\hat{A}_{\searrow}^{(1)}\otimes\hat{I}^{%
\otimes n-1}\right). over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL 0 end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL 2 start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT + over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] = over^ start_ARG italic_I end_ARG ⊗ over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + 2 start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ( over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT ) .
(40)
Squaring both sides yields
( χ ^ ( n ) ) 2 superscript superscript ^ 𝜒 𝑛 2 \displaystyle(\hat{\chi}^{(n)})^{2} ( over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT
= ( I ^ ⊗ χ ^ ( n − 1 ) + 2 n − 1 ( A ^ ↘ ( 1 ) ⊗ I ^ ⊗ n − 1 ) ) ( I ^ ⊗ χ ^ ( n − 1 ) + 2 n − 1 ( A ^ ↘ ( 1 ) ⊗ I ^ ⊗ n − 1 ) ) absent tensor-product ^ 𝐼 superscript ^ 𝜒 𝑛 1 superscript 2 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↘ 1 superscript ^ 𝐼 tensor-product absent 𝑛 1 tensor-product ^ 𝐼 superscript ^ 𝜒 𝑛 1 superscript 2 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↘ 1 superscript ^ 𝐼 tensor-product absent 𝑛 1 \displaystyle=\left(\hat{I}\otimes\hat{\chi}^{(n-1)}+2^{n-1}\left(\hat{A}_{%
\searrow}^{(1)}\otimes\hat{I}^{\otimes n-1}\right)\right)\left(\hat{I}\otimes%
\hat{\chi}^{(n-1)}+2^{n-1}\left(\hat{A}_{\searrow}^{(1)}\otimes\hat{I}^{%
\otimes n-1}\right)\right) = ( over^ start_ARG italic_I end_ARG ⊗ over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + 2 start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ( over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT ) ) ( over^ start_ARG italic_I end_ARG ⊗ over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + 2 start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ( over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT ) )
= I ^ ⊗ ( χ ^ ( n − 1 ) ) 2 + 2 n ( A ^ ↘ ( 1 ) ⊗ χ ^ ( n − 1 ) ) + 2 2 ( n − 1 ) ( ( A ^ ↘ ( 1 ) ) 2 ⊗ I ^ ⊗ n − 1 ) absent tensor-product ^ 𝐼 superscript superscript ^ 𝜒 𝑛 1 2 superscript 2 𝑛 tensor-product subscript superscript ^ 𝐴 1 ↘ superscript ^ 𝜒 𝑛 1 superscript 2 2 𝑛 1 tensor-product superscript subscript superscript ^ 𝐴 1 ↘ 2 superscript ^ 𝐼 tensor-product absent 𝑛 1 \displaystyle=\hat{I}\otimes(\hat{\chi}^{(n-1)})^{2}+2^{n}\left(\hat{A}^{(1)}_%
{\searrow}\otimes\hat{\chi}^{(n-1)}\right)+2^{2(n-1)}\left((\hat{A}^{(1)}_{%
\searrow})^{2}\otimes\hat{I}^{\otimes n-1}\right) = over^ start_ARG italic_I end_ARG ⊗ ( over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ( over^ start_ARG italic_A end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT ⊗ over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT ) + 2 start_POSTSUPERSCRIPT 2 ( italic_n - 1 ) end_POSTSUPERSCRIPT ( ( over^ start_ARG italic_A end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT )
= I ^ ⊗ ( χ ^ ( n − 1 ) ) 2 + A ^ ↘ ( 1 ) ⊗ ( 2 n χ ^ ( n − 1 ) + 2 2 ( n − 1 ) I ^ ⊗ n − 1 ) . absent tensor-product ^ 𝐼 superscript superscript ^ 𝜒 𝑛 1 2 tensor-product subscript superscript ^ 𝐴 1 ↘ superscript 2 𝑛 superscript ^ 𝜒 𝑛 1 superscript 2 2 𝑛 1 superscript ^ 𝐼 tensor-product absent 𝑛 1 \displaystyle=\hat{I}\otimes(\hat{\chi}^{(n-1)})^{2}+\hat{A}^{(1)}_{\searrow}%
\otimes\left(2^{n}\hat{\chi}^{(n-1)}+2^{2(n-1)}\hat{I}^{\otimes n-1}\right). = over^ start_ARG italic_I end_ARG ⊗ ( over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT + over^ start_ARG italic_A end_ARG start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT ⊗ ( 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT over^ start_ARG italic_χ end_ARG start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + 2 start_POSTSUPERSCRIPT 2 ( italic_n - 1 ) end_POSTSUPERSCRIPT over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n - 1 end_POSTSUPERSCRIPT ) .
(41)
Next, let us consider the first derivative ∂ ∂ x partial-derivative 𝑥 \partialderivative{x} start_DIFFOP divide start_ARG ∂ end_ARG start_ARG ∂ start_ARG italic_x end_ARG end_ARG end_DIFFOP . This operator is approximated by the central difference matrix 1 2 h D ^ 1 ( n ) 1 2 ℎ superscript subscript ^ 𝐷 1 𝑛 \frac{1}{2h}\hat{D}_{1}^{(n)} divide start_ARG 1 end_ARG start_ARG 2 italic_h end_ARG over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT , where
D ^ 1 ( n ) = [ 0 1 − 1 0 1 ⋱ ⋱ ⋱ − 1 0 1 − 1 0 ] . superscript subscript ^ 𝐷 1 𝑛 matrix 0 1 missing-subexpression missing-subexpression missing-subexpression 1 0 1 missing-subexpression missing-subexpression missing-subexpression ⋱ ⋱ ⋱ missing-subexpression missing-subexpression missing-subexpression 1 0 1 missing-subexpression missing-subexpression missing-subexpression 1 0 \hat{D}_{1}^{(n)}=\begin{bmatrix}0&1&&&\\
-1&0&1&&\\
&\ddots&\ddots&\ddots&\\
&&-1&0&1\\
&&&-1&0\end{bmatrix}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL 1 end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL - 1 end_CELL start_CELL 0 end_CELL start_CELL 1 end_CELL start_CELL end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL - 1 end_CELL start_CELL 0 end_CELL start_CELL 1 end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL - 1 end_CELL start_CELL 0 end_CELL end_ROW end_ARG ] .
(42)
For one qubit case, n = 1 𝑛 1 n=1 italic_n = 1 , we have
D ^ 1 ( 1 ) = [ 0 1 − 1 0 ] = i Y ^ . superscript subscript ^ 𝐷 1 1 matrix 0 1 1 0 𝑖 ^ 𝑌 \hat{D}_{1}^{(1)}=\begin{bmatrix}0&1\\
-1&0\end{bmatrix}=i\hat{Y}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL 0 end_CELL start_CELL 1 end_CELL end_ROW start_ROW start_CELL - 1 end_CELL start_CELL 0 end_CELL end_ROW end_ARG ] = italic_i over^ start_ARG italic_Y end_ARG .
(43)
Generalising to n 𝑛 n italic_n -qubits, we have
D ^ 1 ( n ) = [ D ^ 1 ( n − 1 ) A ^ ↙ ( n − 1 ) − A ^ ↗ ( n − 1 ) D ^ 1 ( n − 1 ) ] = I ^ ⊗ D ^ 1 ( n − 1 ) + A ^ ↗ ( 1 ) ⊗ A ^ ↙ ( n − 1 ) − A ^ ↙ ( 1 ) ⊗ A ^ ↗ ( n − 1 ) . superscript subscript ^ 𝐷 1 𝑛 matrix superscript subscript ^ 𝐷 1 𝑛 1 superscript subscript ^ 𝐴 ↙ 𝑛 1 superscript subscript ^ 𝐴 ↗ 𝑛 1 superscript subscript ^ 𝐷 1 𝑛 1 tensor-product ^ 𝐼 superscript subscript ^ 𝐷 1 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↗ 1 superscript subscript ^ 𝐴 ↙ 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↙ 1 superscript subscript ^ 𝐴 ↗ 𝑛 1 \hat{D}_{1}^{(n)}=\begin{bmatrix}\hat{D}_{1}^{(n-1)}&\hat{A}_{\swarrow}^{(n-1)%
}\\
-\hat{A}_{\nearrow}^{(n-1)}&\hat{D}_{1}^{(n-1)}\end{bmatrix}=\hat{I}\otimes%
\hat{D}_{1}^{(n-1)}+\hat{A}_{\nearrow}^{(1)}\otimes\hat{A}_{\swarrow}^{(n-1)}-%
\hat{A}_{\swarrow}^{(1)}\otimes\hat{A}_{\nearrow}^{(n-1)}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW start_ROW start_CELL - over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] = over^ start_ARG italic_I end_ARG ⊗ over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT - over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT .
(44)
Next, let us consider the second derivative ∂ 2 ∂ x 2 partial-derivative 𝑥 2 \partialderivative[2]{x} start_DIFFOP divide start_ARG start_DIFFOP SUPERSCRIPTOP start_ARG ∂ end_ARG start_ARG 2 end_ARG end_DIFFOP end_ARG start_ARG SUPERSCRIPTOP start_ARG ∂ start_ARG italic_x end_ARG end_ARG start_ARG 2 end_ARG end_ARG end_DIFFOP , which is approximated by the central difference matrix 1 h 2 D ^ 2 ( n ) 1 superscript ℎ 2 superscript subscript ^ 𝐷 2 𝑛 \frac{1}{h^{2}}\hat{D}_{2}^{(n)} divide start_ARG 1 end_ARG start_ARG italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT , where
D ^ 2 ( n ) = [ − 2 1 1 − 2 1 ⋱ ⋱ ⋱ 1 − 2 1 1 − 2 ] . superscript subscript ^ 𝐷 2 𝑛 matrix 2 1 missing-subexpression 1 2 1 missing-subexpression missing-subexpression ⋱ ⋱ ⋱ missing-subexpression missing-subexpression missing-subexpression 1 2 1 missing-subexpression missing-subexpression missing-subexpression missing-subexpression 1 2 \hat{D}_{2}^{(n)}=\begin{bmatrix}-2&1&\\
1&-2&1&\\
&\ddots&\ddots&\ddots&\\
&&1&-2&1&\\
&&&1&-2\end{bmatrix}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL - 2 end_CELL start_CELL 1 end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL 1 end_CELL start_CELL - 2 end_CELL start_CELL 1 end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL 1 end_CELL start_CELL - 2 end_CELL start_CELL 1 end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL 1 end_CELL start_CELL - 2 end_CELL end_ROW end_ARG ] .
(45)
For n = 1 𝑛 1 n=1 italic_n = 1 , we have
D ^ 2 ( 1 ) = [ − 2 1 1 − 2 ] = − 2 I ^ + X ^ . superscript subscript ^ 𝐷 2 1 matrix 2 1 1 2 2 ^ 𝐼 ^ 𝑋 \hat{D}_{2}^{(1)}=\begin{bmatrix}-2&1\\
1&-2\end{bmatrix}=-2\hat{I}+\hat{X}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL - 2 end_CELL start_CELL 1 end_CELL end_ROW start_ROW start_CELL 1 end_CELL start_CELL - 2 end_CELL end_ROW end_ARG ] = - 2 over^ start_ARG italic_I end_ARG + over^ start_ARG italic_X end_ARG .
(46)
Generalising to n 𝑛 n italic_n -qubits, it can be shown that
D ^ 2 ( n ) = [ D ^ 2 ( n − 1 ) A ^ ↙ ( n − 1 ) A ^ ↗ ( n − 1 ) D ^ 2 ( n − 1 ) ] = I ^ ⊗ D ^ 2 ( n − 1 ) + A ^ ↗ ( 1 ) ⊗ A ^ ↙ ( n − 1 ) + A ^ ↙ ( 1 ) ⊗ A ^ ↗ ( n − 1 ) . superscript subscript ^ 𝐷 2 𝑛 matrix superscript subscript ^ 𝐷 2 𝑛 1 superscript subscript ^ 𝐴 ↙ 𝑛 1 superscript subscript ^ 𝐴 ↗ 𝑛 1 superscript subscript ^ 𝐷 2 𝑛 1 tensor-product ^ 𝐼 superscript subscript ^ 𝐷 2 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↗ 1 superscript subscript ^ 𝐴 ↙ 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↙ 1 superscript subscript ^ 𝐴 ↗ 𝑛 1 \hat{D}_{2}^{(n)}=\begin{bmatrix}\hat{D}_{2}^{(n-1)}&\hat{A}_{\swarrow}^{(n-1)%
}\\
\hat{A}_{\nearrow}^{(n-1)}&\hat{D}_{2}^{(n-1)}\end{bmatrix}=\hat{I}\otimes\hat%
{D}_{2}^{(n-1)}+\hat{A}_{\nearrow}^{(1)}\otimes\hat{A}_{\swarrow}^{(n-1)}+\hat%
{A}_{\swarrow}^{(1)}\otimes\hat{A}_{\nearrow}^{(n-1)}. over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW start_ROW start_CELL over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL start_CELL over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT end_CELL end_ROW end_ARG ] = over^ start_ARG italic_I end_ARG ⊗ over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT + over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT .
(47)
Using the X ^ ( n ) superscript ^ 𝑋 𝑛 \hat{X}^{(n)} over^ start_ARG italic_X end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT , D ^ 2 ( n ) superscript subscript ^ 𝐷 2 𝑛 \hat{D}_{2}^{(n)} over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT and D ^ 2 ( n ) superscript subscript ^ 𝐷 2 𝑛 \hat{D}_{2}^{(n)} over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT representations above, the n 𝑛 n italic_n -qubit Black-Scholes Hamiltonian takes the form
− i H ^ B S ( n ) = σ 2 2 h 2 ( X ^ ( n ) ) 2 D ^ 2 ( n ) + r 2 h X ^ ( n ) D ^ 1 ( n ) − r I ^ ⊗ n . 𝑖 superscript subscript ^ 𝐻 𝐵 𝑆 𝑛 superscript 𝜎 2 2 superscript ℎ 2 superscript superscript ^ 𝑋 𝑛 2 superscript subscript ^ 𝐷 2 𝑛 𝑟 2 ℎ superscript ^ 𝑋 𝑛 superscript subscript ^ 𝐷 1 𝑛 𝑟 superscript ^ 𝐼 tensor-product absent 𝑛 -i\hat{H}_{BS}^{(n)}=\frac{\sigma^{2}}{2h^{2}}(\hat{X}^{(n)})^{2}\hat{D}_{2}^{%
(n)}+\frac{r}{2h}\hat{X}^{(n)}\hat{D}_{1}^{(n)}-r\hat{I}^{\otimes n}. - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_B italic_S end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG ( over^ start_ARG italic_X end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT + divide start_ARG italic_r end_ARG start_ARG 2 italic_h end_ARG over^ start_ARG italic_X end_ARG start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT over^ start_ARG italic_D end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT - italic_r over^ start_ARG italic_I end_ARG start_POSTSUPERSCRIPT ⊗ italic_n end_POSTSUPERSCRIPT .
(48)
Expressing Eq. (48 ) in matrix form over n 𝑛 n italic_n -qubits, we have it that
− i H ^ B S ( n ) = [ γ 0 β 0 α 1 γ 1 β 1 ⋱ ⋱ ⋱ α 2 n − 2 γ 2 n − 2 β 2 n − 2 α 2 n − 1 γ 2 n − 1 ] , 𝑖 superscript subscript ^ 𝐻 𝐵 𝑆 𝑛 matrix subscript 𝛾 0 subscript 𝛽 0 missing-subexpression subscript 𝛼 1 subscript 𝛾 1 subscript 𝛽 1 missing-subexpression missing-subexpression ⋱ ⋱ ⋱ missing-subexpression missing-subexpression missing-subexpression subscript 𝛼 superscript 2 𝑛 2 subscript 𝛾 superscript 2 𝑛 2 subscript 𝛽 superscript 2 𝑛 2 missing-subexpression missing-subexpression missing-subexpression subscript 𝛼 superscript 2 𝑛 1 subscript 𝛾 superscript 2 𝑛 1 -i\hat{H}_{BS}^{(n)}=\begin{bmatrix}\gamma_{0}&\beta_{0}&\\
\alpha_{1}&\gamma_{1}&\beta_{1}&\\
&\ddots&\ddots&\ddots&\\
&&\alpha_{2^{n}-2}&\gamma_{2^{n}-2}&\beta_{2^{n}-2}\\
&&&\alpha_{2^{n}-1}&\gamma_{2^{n}-1}\end{bmatrix}, - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_B italic_S end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT = [ start_ARG start_ROW start_CELL italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL italic_α start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL ⋱ end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL start_CELL italic_β start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 2 end_POSTSUBSCRIPT end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL end_CELL start_CELL end_CELL start_CELL italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT end_CELL start_CELL italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT end_CELL end_ROW end_ARG ] ,
(49)
where
α k = σ 2 x k 2 2 h 2 − r x k 2 h , β k = σ 2 x k 2 2 h 2 + r x k 2 h , and γ k = − r − α k − β k . formulae-sequence subscript 𝛼 𝑘 superscript 𝜎 2 superscript subscript 𝑥 𝑘 2 2 superscript ℎ 2 𝑟 subscript 𝑥 𝑘 2 ℎ formulae-sequence subscript 𝛽 𝑘 superscript 𝜎 2 superscript subscript 𝑥 𝑘 2 2 superscript ℎ 2 𝑟 subscript 𝑥 𝑘 2 ℎ and
subscript 𝛾 𝑘 𝑟 subscript 𝛼 𝑘 subscript 𝛽 𝑘 \alpha_{k}=\frac{\sigma^{2}x_{k}^{2}}{2h^{2}}-\frac{rx_{k}}{2h},\quad\beta_{k}%
=\frac{\sigma^{2}x_{k}^{2}}{2h^{2}}+\frac{rx_{k}}{2h},\quad\text{and}\quad%
\gamma_{k}=-r-\alpha_{k}-\beta_{k}. italic_α start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_h end_ARG , italic_β start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = divide start_ARG italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG start_ARG 2 italic_h start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT end_ARG + divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG start_ARG 2 italic_h end_ARG , and italic_γ start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT = - italic_r - italic_α start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT - italic_β start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT .
(50)
To include linear boundary conditions, we neglect the second derivative terms and substitute the first and last row of Eq. (48 ) with forward and backward finite difference coefficients, respectively. The revised first row coefficients that take into account the linear boundary conditions are
γ 0 ′ = − r − r x 0 h and β 0 ′ = r x 0 h , formulae-sequence superscript subscript 𝛾 0 ′ 𝑟 𝑟 subscript 𝑥 0 ℎ and
superscript subscript 𝛽 0 ′ 𝑟 subscript 𝑥 0 ℎ \gamma_{0}^{\prime}=-r-\frac{rx_{0}}{h}\quad\text{and}\quad\beta_{0}^{\prime}=%
\frac{rx_{0}}{h}, italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = - italic_r - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG and italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = divide start_ARG italic_r italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG ,
(51)
while the revised last row coefficients that into account the linear boundary conditions are
α 2 n − 1 ′ = − r x N h and γ 2 n − 1 ′ = − r + r x N h . formulae-sequence superscript subscript 𝛼 superscript 2 𝑛 1 ′ 𝑟 subscript 𝑥 𝑁 ℎ and
superscript subscript 𝛾 superscript 2 𝑛 1 ′ 𝑟 𝑟 subscript 𝑥 𝑁 ℎ \alpha_{2^{n}-1}^{\prime}=-\frac{rx_{N}}{h}\quad\text{and}\quad\gamma_{2^{n}-1%
}^{\prime}=-r+\frac{rx_{N}}{h}. italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = - divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG and italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = - italic_r + divide start_ARG italic_r italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT end_ARG start_ARG italic_h end_ARG .
(52)
Consequently, for n ≥ 2 𝑛 2 n\geq 2 italic_n ≥ 2 qubits, the Black-Scholes Hamiltonian with linear boundary conditions is written as
− i H ^ L B S ( n ) 𝑖 superscript subscript ^ 𝐻 𝐿 𝐵 𝑆 𝑛 \displaystyle-i\hat{H}_{LBS}^{(n)} - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_L italic_B italic_S end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT
= \displaystyle= =
− i H ^ B S ( n ) + ( γ 0 ′ − γ 0 ) A ^ ↖ ( n ) + ( β 0 ′ − β 0 ) ( A ^ ↖ ( n − 1 ) ⊗ A ^ ↗ ( 1 ) ) 𝑖 superscript subscript ^ 𝐻 𝐵 𝑆 𝑛 superscript subscript 𝛾 0 ′ subscript 𝛾 0 superscript subscript ^ 𝐴 ↖ 𝑛 superscript subscript 𝛽 0 ′ subscript 𝛽 0 tensor-product superscript subscript ^ 𝐴 ↖ 𝑛 1 superscript subscript ^ 𝐴 ↗ 1 \displaystyle-i\hat{H}_{BS}^{(n)}+(\gamma_{0}^{\prime}-\gamma_{0})\hat{A}_{%
\nwarrow}^{(n)}+(\beta_{0}^{\prime}-\beta_{0})(\hat{A}_{\nwarrow}^{(n-1)}%
\otimes\hat{A}_{\nearrow}^{(1)}) - italic_i over^ start_ARG italic_H end_ARG start_POSTSUBSCRIPT italic_B italic_S end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT + ( italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT + ( italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - italic_β start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) ( over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↖ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↗ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT )
(53)
+ ( α 2 n − 1 ′ − α 2 n − 1 ) ( A ^ ↘ ( n − 1 ) ⊗ A ^ ↙ ( 1 ) ) + ( γ 2 n − 1 ′ − γ 2 n − 1 ) A ^ ↘ ( n ) . superscript subscript 𝛼 superscript 2 𝑛 1 ′ subscript 𝛼 superscript 2 𝑛 1 tensor-product superscript subscript ^ 𝐴 ↘ 𝑛 1 superscript subscript ^ 𝐴 ↙ 1 superscript subscript 𝛾 superscript 2 𝑛 1 ′ subscript 𝛾 superscript 2 𝑛 1 superscript subscript ^ 𝐴 ↘ 𝑛 \displaystyle+\ (\alpha_{2^{n}-1}^{\prime}-\alpha_{2^{n}-1})(\hat{A}_{\searrow%
}^{(n-1)}\otimes\hat{A}_{\swarrow}^{(1)})+(\gamma_{2^{n}-1}^{\prime}-\gamma_{2%
^{n}-1})\hat{A}_{\searrow}^{(n)}. + ( italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - italic_α start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT ) ( over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n - 1 ) end_POSTSUPERSCRIPT ⊗ over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↙ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( 1 ) end_POSTSUPERSCRIPT ) + ( italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT - italic_γ start_POSTSUBSCRIPT 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_POSTSUBSCRIPT ) over^ start_ARG italic_A end_ARG start_POSTSUBSCRIPT ↘ end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ( italic_n ) end_POSTSUPERSCRIPT .
The rescaling protocol
Under the assumption of linear boundary conditions, u ( x , τ ) 𝑢 𝑥 𝜏 u(x,\tau) italic_u ( italic_x , italic_τ ) is linear with respect to x 𝑥 x italic_x in the neighbourhood of x 0 subscript 𝑥 0 x_{0} italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT and x N subscript 𝑥 𝑁 x_{N} italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT , hence, we have
u ( x , τ ) = a ( τ ) x + b ( τ ) 𝑢 𝑥 𝜏 𝑎 𝜏 𝑥 𝑏 𝜏 u(x,\tau)=a(\tau)x+b(\tau) italic_u ( italic_x , italic_τ ) = italic_a ( italic_τ ) italic_x + italic_b ( italic_τ )
(54)
for x ≈ x 0 𝑥 subscript 𝑥 0 x\approx x_{0} italic_x ≈ italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT and x ≈ x N 𝑥 subscript 𝑥 𝑁 x\approx x_{N} italic_x ≈ italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT .
Substituting Eq. (54 ) into the Black-Scholes equation, Eq. (34 ), we obtain the boundary equation
∂ ∂ τ ( a ( τ ) x + b ( τ ) ) partial-derivative 𝜏 𝑎 𝜏 𝑥 𝑏 𝜏 \displaystyle\partialderivative{\tau}\left(a(\tau)x+b(\tau)\right) start_DIFFOP divide start_ARG ∂ end_ARG start_ARG ∂ start_ARG italic_τ end_ARG end_ARG end_DIFFOP ( italic_a ( italic_τ ) italic_x + italic_b ( italic_τ ) )
= r x ∂ ∂ x ( a ( τ ) x + b ( τ ) ) − r ( a ( τ ) x + b ( τ ) ) , absent 𝑟 𝑥 partial-derivative 𝑥 𝑎 𝜏 𝑥 𝑏 𝜏 𝑟 𝑎 𝜏 𝑥 𝑏 𝜏 \displaystyle=rx\partialderivative{x}\left(a(\tau)x+b(\tau)\right)-r\left(a(%
\tau)x+b(\tau)\right), = italic_r italic_x start_DIFFOP divide start_ARG ∂ end_ARG start_ARG ∂ start_ARG italic_x end_ARG end_ARG end_DIFFOP ( italic_a ( italic_τ ) italic_x + italic_b ( italic_τ ) ) - italic_r ( italic_a ( italic_τ ) italic_x + italic_b ( italic_τ ) ) ,
(55)
which implies
x d a d τ + d b d τ = − r b ( τ ) . 𝑥 derivative 𝜏 𝑎 derivative 𝜏 𝑏 𝑟 𝑏 𝜏 x\derivative{a}{\tau}+\derivative{b}{\tau}=-rb(\tau). italic_x divide start_ARG roman_d start_ARG italic_a end_ARG end_ARG start_ARG roman_d start_ARG italic_τ end_ARG end_ARG + divide start_ARG roman_d start_ARG italic_b end_ARG end_ARG start_ARG roman_d start_ARG italic_τ end_ARG end_ARG = - italic_r italic_b ( italic_τ ) .
(56)
Equation (56 ) is an ODE with solutions
a ( τ ) = a ( 0 ) and b ( τ ) = b ( 0 ) e − r τ . formulae-sequence 𝑎 𝜏 𝑎 0 and
𝑏 𝜏 𝑏 0 superscript 𝑒 𝑟 𝜏 a(\tau)=a(0)\quad\text{and}\quad b(\tau)=b(0)e^{-r\tau}. italic_a ( italic_τ ) = italic_a ( 0 ) and italic_b ( italic_τ ) = italic_b ( 0 ) italic_e start_POSTSUPERSCRIPT - italic_r italic_τ end_POSTSUPERSCRIPT .
(57)
Determining a ( 0 ) 𝑎 0 a(0) italic_a ( 0 ) and b ( 0 ) 𝑏 0 b(0) italic_b ( 0 ) at each boundary, Eq. (54 ) becomes a closed form expression that explains how u ( x , τ ) 𝑢 𝑥 𝜏 u(x,\tau) italic_u ( italic_x , italic_τ ) evolves at the boundaries. Assuming h ℎ h italic_h is sufficiently small, we can approximate a ( 0 ) 𝑎 0 a(0) italic_a ( 0 ) and b ( 0 ) 𝑏 0 b(0) italic_b ( 0 ) at each boundary by assuming that the closest sample point also follows the linear condition. Thus, on the left boundary, using u ( x 0 , 0 ) = a 0 ( 0 ) x 0 + b 0 ( 0 ) 𝑢 subscript 𝑥 0 0 subscript 𝑎 0 0 subscript 𝑥 0 subscript 𝑏 0 0 u(x_{0},0)=a_{0}(0)x_{0}+b_{0}(0) italic_u ( italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , 0 ) = italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_b start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) and u ( x 1 , 0 ) = a 0 ( 0 ) x 1 + b 0 ( 0 ) 𝑢 subscript 𝑥 1 0 subscript 𝑎 0 0 subscript 𝑥 1 subscript 𝑏 0 0 u(x_{1},0)=a_{0}(0)x_{1}+b_{0}(0) italic_u ( italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , 0 ) = italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + italic_b start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) , we have
a 0 = u ( x 1 , 0 ) − u ( x 0 , 0 ) h and b 0 ( 0 ) = u ( x 0 , 0 ) − a 0 x 0 . formulae-sequence subscript 𝑎 0 𝑢 subscript 𝑥 1 0 𝑢 subscript 𝑥 0 0 ℎ and
subscript 𝑏 0 0 𝑢 subscript 𝑥 0 0 subscript 𝑎 0 subscript 𝑥 0 a_{0}=\frac{u(x_{1},0)-u(x_{0},0)}{h}\quad\text{and}\quad b_{0}(0)=u(x_{0},0)-%
a_{0}x_{0}. italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT = divide start_ARG italic_u ( italic_x start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , 0 ) - italic_u ( italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , 0 ) end_ARG start_ARG italic_h end_ARG and italic_b start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) = italic_u ( italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , 0 ) - italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT .
(58)
Similarly, on the right boundary, we have
a N = u ( x N , 0 ) − u ( x N − 1 , 0 ) h and b N ( 0 ) = u ( x N , 0 ) − a N x N . formulae-sequence subscript 𝑎 𝑁 𝑢 subscript 𝑥 𝑁 0 𝑢 subscript 𝑥 𝑁 1 0 ℎ and
subscript 𝑏 𝑁 0 𝑢 subscript 𝑥 𝑁 0 subscript 𝑎 𝑁 subscript 𝑥 𝑁 a_{N}=\frac{u(x_{N},0)-u(x_{N-1},0)}{h}\quad\text{and}\quad b_{N}(0)=u(x_{N},0%
)-a_{N}x_{N}. italic_a start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT = divide start_ARG italic_u ( italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT , 0 ) - italic_u ( italic_x start_POSTSUBSCRIPT italic_N - 1 end_POSTSUBSCRIPT , 0 ) end_ARG start_ARG italic_h end_ARG and italic_b start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ( 0 ) = italic_u ( italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT , 0 ) - italic_a start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT .
(59)
Using Eq. (58 ) and Eq. (59 ), we define a protocol that rescales the normalised state | ψ ¯ u ( τ ) ⟩ ket subscript ¯ 𝜓 𝑢 𝜏 \ket{\bar{\psi}_{u}(\tau)} | start_ARG over¯ start_ARG italic_ψ end_ARG start_POSTSUBSCRIPT italic_u end_POSTSUBSCRIPT ( italic_τ ) end_ARG ⟩ obtained from QNUTE by a factor C ∗ ( τ ) subscript 𝐶 𝜏 C_{*}(\tau) italic_C start_POSTSUBSCRIPT ∗ end_POSTSUBSCRIPT ( italic_τ ) such that
⟨ 0 | C ∗ ( τ ) | ψ ¯ u ( τ ) ⟩ = a 0 x 0 + b 0 ( 0 ) e − r τ , bra 0 subscript 𝐶 𝜏 ket subscript ¯ 𝜓 𝑢 𝜏 subscript 𝑎 0 subscript 𝑥 0 subscript 𝑏 0 0 superscript 𝑒 𝑟 𝜏 \bra{0}C_{*}(\tau)\ket{\bar{\psi}_{u}(\tau)}=a_{0}x_{0}+b_{0}(0)e^{-r\tau}, ⟨ start_ARG 0 end_ARG | italic_C start_POSTSUBSCRIPT ∗ end_POSTSUBSCRIPT ( italic_τ ) | start_ARG over¯ start_ARG italic_ψ end_ARG start_POSTSUBSCRIPT italic_u end_POSTSUBSCRIPT ( italic_τ ) end_ARG ⟩ = italic_a start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + italic_b start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( 0 ) italic_e start_POSTSUPERSCRIPT - italic_r italic_τ end_POSTSUPERSCRIPT ,
(60)
or
⟨ 2 n − 1 | C ∗ ( τ ) | ψ ¯ u ( τ ) ⟩ = a N x N + b N ( 0 ) e − r τ . bra superscript 2 𝑛 1 subscript 𝐶 𝜏 ket subscript ¯ 𝜓 𝑢 𝜏 subscript 𝑎 𝑁 subscript 𝑥 𝑁 subscript 𝑏 𝑁 0 superscript 𝑒 𝑟 𝜏 \bra{2^{n}-1}C_{*}(\tau)\ket{\bar{\psi}_{u}(\tau)}=a_{N}x_{N}+b_{N}(0)e^{-r%
\tau}. ⟨ start_ARG 2 start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT - 1 end_ARG | italic_C start_POSTSUBSCRIPT ∗ end_POSTSUBSCRIPT ( italic_τ ) | start_ARG over¯ start_ARG italic_ψ end_ARG start_POSTSUBSCRIPT italic_u end_POSTSUBSCRIPT ( italic_τ ) end_ARG ⟩ = italic_a start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT + italic_b start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT ( 0 ) italic_e start_POSTSUPERSCRIPT - italic_r italic_τ end_POSTSUPERSCRIPT .
(61)
The choice between Eq. (60 ) and Eq. (61 ) depends on the preference assigned to the boundaries during simulation. This work used the left boundary when modelling put options, and the right boundary when modelling call options. The protocol fails if a ( 0 ) = b ( 0 ) = 0 𝑎 0 𝑏 0 0 a(0)=b(0)=0 italic_a ( 0 ) = italic_b ( 0 ) = 0 on both boundaries.