Post

Simulating Hamiltonian dynamics with a truncated Taylor Series

Paper by Berry, Childs, Cleve, Kothari, and Somma (2014)

Introduction

The paper introduces a new approach to Hamiltonian simulation with exponentially improved performance compared to the past work1. The key idea is to decompose the Hamiltonian in to a linear combination of unitary operations and implement Taylor series of the evolution operator. The time evolution is broken up into segments each of which is performed using oblivious amplitude amplification2.

Summary of Method

Suppose we are simulating the time evolution of a finite-dimentional Hamiltonian of the form

\[\begin{equation} H = \sum^L_{l=1}\alpha_lH_l \label{eq:linear} \end{equation}\]

where each $H_l$ is unitary.

Any Hamiltonian can be decomposed as a linear combination of unitary matrices.

Suppose we wish to simulate the evolution under a Hamiltonian $H$ for time $t$:

\[\begin{equation} U:=\exp{-iHt} \label{eq:time} \end{equation}\]

within error $\epsilon$. Dividing the evolution time into $r$ segments of length $t/r$, the evolution can be approximated as

\[\begin{equation} U_r:=\exp(-iHt/r) \approx \sum^K_{k=0}\frac{1}{k!}(-iHt/r)^k, \label{eq:taylor} \end{equation}\]

where the Taylor series is truncated at order $K$.

$e^x = \sum^\infty_{i=0}\frac{x^i}{i!}$

Here, we can achieve the accuracy of each segment to $\epsilon/r$ by choosing

\[\begin{equation} K = O\left(\frac{\log{r/\epsilon}}{\log{\log{r/\epsilon}}}\right) \label{eq:K} \end{equation}\]

Oblivious Amplitude Amplification

To read more about the process, I assign the future reading1. It essentially enables deterministic implementation of a sum of unitary operators.

Although the powers of $H$ are not themselves unitary, we can expand \eqref{eq:taylor} as following using \eqref{eq:linear}:

\[\begin{equation} U_r \approx \sum^K_{k=0} \sum^L_{l_1,\ldots,l_k=1}\frac{(-it/r)^k}{k!}\alpha_{l_1}\cdots\alpha_{l_k}H_{l_1}\cdots H_{l_k} \label{eq:expansion} \end{equation}\]

How did the expansion work?

Now notice that the \eqref{eq:expansion} is in the form

\[\begin{equation} \tilde{U} = \sum^{m-1}_{j=0}\beta_j V_j \label{eq:unitary-form} \end{equation}\]

where $\beta_j>0$ and each $V_j$ is a unitary that corresponds to some $(-i)^kH_{l_1}\cdots H_{l_k}$.

Sum of Unitary Operators

The procedure follows as if the entire sum were unitary. While the sum is not exactly unitary, it is close to unitary upto the bounded error.

The mechanism for implementing each unitary $V_j$ in \eqref{eq:unitary-form} follows by defining unitary operations ‘prep’ and ‘select’:

\[\begin{equation} \text{select}(V)\ket{j}\ket{\psi} = \ket{j}V_j\ket{\psi}, \label{eq:select} \end{equation}\]

for any $j\in{0, 1, \ldots, m - 1}$ and any state $\ket{\psi}$. ‘prep’ is an $m$-dimensional unitary,

\[\begin{equation} \text{prep}\ket{0} = \frac{1}{\sqrt{s}}\sum^{m-1}_{j=0}\sqrt{\beta_j}\ket{j}, \label{eq:prep} \end{equation}\]

where $s$ is a normalization constant defined as $s:=\sum^{m-1}_{j=0}\beta_j$.

Now define

\[\begin{equation} W:=(\text{prep}^\dagger\otimes \mathbb{I})(\text{select(V)})(\text{prep}\otimes \mathbb{I}) \label{eq:W} \end{equation}\]

then it follows from the definition that

\[\begin{equation} W\ket{0}\ket{\psi} = \frac{1}{s}\ket{0}\tilde{U}\ket{\psi} + \sqrt{1-\frac{1}{s^2}}\ket{\Phi} \label{eq:W-on-kets} \end{equation}\]

where $\ket{\Phi}$ is an ancillary state in the orthogonal subspace to $\ket{0}$. So by applying the projector $P:=\ket{0}\bra{0} \otimes \mathbb{I}$,

\[\begin{equation} PW\ket{0}\ket{\psi} = \frac{1}{s}\ket{0}\tilde{U}\ket{\psi} \label{eq:PW-on-kets} \end{equation}\]

where the value of $s$ can be adjusted by choosing the size of the segments. To use oblivious amplitude amplification, we aim for $s=2$. The paper also claims that using $A:=-WRW^\dagger RW$, where $R:=\mathbb{I} - 2P$, we can exactly implement the unitary $\tilde{U}$. i.e.,

\[\begin{equation} A\ket{0}\ket{\psi} = \ket{0}\tilde{U}\ket{\psi} \end{equation}\]

Leave the proof for the reader and myself :)

Effect of Nonunitarity

Oblivious amplitude amplification cannot be directly used to the approximation $\tilde{U}$ becuase it is nonunitary. Instead, the paper proves a robust version of oblivious amplitude amplification even when $\tilde{U}$ is only close to a unitary matrix.

Proof

First observe

\[\begin{equation} PA\ket{0}\ket{\psi} = (4PW - 4PWPW^\dagger PW)\ket{0}\ket{\psi} \label{eq:PA-proof} \end{equation}\]

Then we obtain, by \eqref{eq:PA-proof},

\[\begin{equation} PA\ket{0}\ket{\psi} = \ket{0}\left(\frac{3}{s}\tilde{U} - \frac{4}{s^3}\tilde{U}\tilde{U}^\dagger\tilde{U}\right)\ket{\psi}. \label{eq:PA-amp} \end{equation}\]

Error

Provided that $|s-2| = O(\delta)$ and $\lVert\tilde{U} - U_r\rVert = O(\delta)$, it follows that the conditions of oblivious amplitude amplification (the unitarity of approximation $\tilde{U}$) are true to order $\delta$, i.e., $\lVert\tilde{U}\tilde{U}^\dagger - \mathbb{I}\rVert = O(\delta)$. Then \eqref{eq:PA-amp} implies

\[\begin{equation} \lVert PA\ket{0}\ket{\psi} - \ket{0}U_r\ket{\psi}\rVert = O(\delta). \label{eq:PA-approx} \end{equation}\]

Thus, we can overcome the problem arosed from the nonunitarity within the error of $O(\delta)$.

  1. D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R.D. Somma, in Proc. 46th ACM Symposium on Theory of Computing, pp. 283–292 (2014). ↩︎ ↩︎2

  2. D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R.D. Somma. Simulating Hamiltonian dynamics with a truncated Taylor series (Dec. 16, 2014). ↩︎

This post is licensed under CC BY 4.0 by the author.