Reachable states in quantum phase estimation

5 minute read

Published:

A famous, basic algorithm in quantum computing is the quantum phase estimation algorithm. We can see the algorithm as a quantum query algorithm 1 for oracles $O_d=\ket{\mathrm{idle}}\bra{\mathrm{idle}} + d\ket{\mathrm{v}}\bra{\mathrm{v}}$, where $d\in\mathbb{C}, \lVert d \rVert = 1$ is the eigenvalue to be estimated - for discretization purposes, we choose $|D|\in\mathbb{N}^{+}$ and assume $d$ is a $|D|$th root of unity, $d\in D$ with $D:=\left\{d\mid d\in\mathbb{C}, d^{|D|}=1\right\}$.

We’ll characterize which combinations of states (for some $d\in D$) are reachable in $j$-query quantum query algorithms, i.e. algorithms starting from a $d$-independent initial state $\ket{\psi^0}$ and applying $O_d$ $j$ times in between $d$-independent unitaries $U^0,\ldots, U^j$, acting on the oracles’ query space together with an ancilla space. As in 1, we can track the evolutions of all states at once, subsuming all the oracles in a single block-diagonal “super-oracle” $O=\sum_{d\in D}\ket{d}\bra{d}\otimes O_d$, and the states after the $j$th oracle application in a single “super-state” $\ket{\Psi^j}=\sum_{d\in D}\ket{d}\otimes \ket{\psi^j_d}$, where the $\ket{d}$ are computational basis vectors of a new Hilbert space $\mathcal{D}$.

Fourier transforming the input register

The basic idea is to Fourier transform the input register $\mathcal{D}$. Introduce the orthonormal Fourier basis $K=\left\{\ket{k}=|D|^{-1/2} \sum_{d\in D} d^k\ket{d}\mid k\in \mathbb{Z}_{|D|}\right\}$. In that basis, the initial state is $\ket{\Psi^0}=|D| \ket{0}\bra{0}\otimes\ket{\psi^0}$, and the oracle $O$ becomes a combination of identity and shift operators: $O=\sum_{k\in \mathbb{Z}_{|D|}}(\ket{k,\mathrm{idle}}\bra{k,\mathrm{idle}}+\ket{k+1,v}\bra{k,v})=I_{\mathcal{D}} P_{\mathrm{idle}}+X_{\mathcal{D}} P_{v}$ (note that the addition in $\mathbb{Z}_{|D|}$ is modulo $|D|$). Now this is a simple permutation matrix of the new basis vectors, and it seems much easier to understand which states are reachable after some number of steps.

Condition 1: $P_k\ket{\Psi^j}=0$ for $k>j$.

By induction and the form of the oracle, the super-state after $j$ queries $\ket{\Psi^j}$ must lie entirely in the subspace spanned by the Fourier modes $0,\ldots,j$.

Condition 2

Modified shift operators

Now define the “modified shift operator” $X’:=X_{\mathcal{D}}(1-P_{|D|-1})=(1-P_0)X_{\mathcal{D}}$, with $X_{\mathcal{D}}$ as in the Fourier basis definition of $O$. Then for $\Delta k \in {0,\ldots,|D|-1}$, $(X’)^{\Delta k}=\sum_{k=0}^{|D|-1-\Delta k}\ket{k+\Delta k}\bra{k}$, and the expectation values $\langle \Psi^j \mid (X’)^{\Delta k}\mid \Psi^j \rangle$ are given by sums of diagonal or off-diagonal reduced density operator entries on the $\mathcal{D}$ register.

The condition: $\langle\Psi^j\mid (X’)^{\Delta k}\mid \Psi^j\rangle=|D| \delta_{\Delta k,0}$ for $j<|D|, \Delta k \in \mathbb{Z}_{|D|}$

For $j=0$, the claim in the section title 2 is clearly true with $\delta_{k,0}$ being the Kronecker delta ($1$ for $k=0$, $0$ otherwise). The quantum computer’s unitaries act trivially on $\mathcal{D}$ and don’t change the expectation values, so we are done when we show that they are conserved after an oracle call in the first $|D|-1$ queries. With $\ket{\Phi^j}$ the super-state directly before the $j$th query (i.e. after at most $|D|-2$ queries), we write

$\langle \Phi^j \mid O^\dagger (X’)^{\Delta k} O \mid \Phi^j \rangle=
\bra{\Phi^j}P_{\mathrm{idle}} (X’)^{\Delta k}\ket{\Phi^j}+\bra{\Phi^j}{P_{\Phi}}X_{\mathcal{D}}^\dagger (X’)^{\Delta k} X_{\mathcal{D}} \ket{\Phi^j}$.

By Condition 1, for $j<|D|-1$, $X’ \ket{\Phi^j}=X\ket{\Phi^j}$ and $\bra{\Phi^j}X^\dagger X’=\bra{\Phi^j}(I-P_{|D|-1})=\bra{\Phi^j}$. So the quantity above equals $\bra{\Phi^j}P_{\mathrm{idle}} (X’)^{\Delta k}\ket{\Phi^j}+\bra{\Phi^j}{P_{\Phi}} (X’)^{\Delta k} \ket{\Phi^j}=\langle \Phi^j \mid (X’)^{\Delta k} \mid \Phi^j \rangle$.

Note that the truth of either condition is unchanged when the quantum computer applies a unitary $U$ onto query and ancilla space.

Sufficiency of these conditions

Let $0<j<|D|$, and $\ket{\Phi^j}=\sum^j_{k=0} \ket{k} \otimes \ket{\phi^j_k}$ be a super-state fulfilling both conditions. We’ll find a unitary $U$ acting on query and ancilla space such that $\ket{\Phi^j}=UO\ket{\Phi^{j-1}}$, with $\ket{\Phi^{j-1}}$ fulfilling both conditions as well. By induction, this implies that all states fulfilling conditions 1-2 for some $j<|D|$ can be generated from a state $\ket{0}\otimes\ket{\psi^0}$ in $j$ queries, which in turn can be generated from any $d$-independent initial state by a $d$-independent unitary.

Condition $2$ for $\Delta k = j$ states that $\langle \phi^j_j \mid \phi^j_0 \rangle=0$. So we can choose our $U$ such that $P_{\mathrm{idle}} U\ket{\phi^j_0} = U\ket{\phi^j_0}$, and $P_v U\ket{\phi^j_j} = U\ket{\phi^j_j}$. Then $\ket{\Phi^{j-1}}=O^\dagger U \ket{\Phi^j}$ fulfills condition 1.

By the calculation proving condition 2, we see that $\ket{\Phi^{j-1}}$ fulfills condition 2 as well.

For $j=|D|-1$, a final state whose reduced density operator on $\mathcal{D}$ is the identity is achievable - in the computational basis, this means that the states for all different inputs are orthogonal and can be distinguished without error. So if one is interested in measurements, it is not so bad that our argument breaks down after $|D|$ queries.

Measurements

Once again, the conditions fit into a semidefinite program/convex optimization problem: In principle, the set of PSD matrices equals the set of possible reduced density operators on $\mathcal{D}$ associated with some non-normalized collection of states, condition 1 determines the dimension of the positive semidefinite matrices to consider, and condition 2 is a set of simple linear constraints on these matrices. As in 1, understanding the set of possible measurement probabilities fits into a semidefinite programming framework as well.

Footnotes and References

  1. https://github.com/qudent/RhoPaths  2 3

  2. If I am not mistaken, the expectation values $X^{\Delta k}$ being conserved is equivalent to the fact that the diagonal elements of the Gram matrix in the norms of the states for individual $d$ are unchanged throughout the computation. One can check that $X_{\mathcal{D}}^\Delta k = (X’)^{\Delta k} + ((X’)^\dagger)^{|D|-\Delta k}$, so what we prove for the first $|D|-1$ steps is stronger.