Express Letter The following article is Free article

Resonant Quantum Search with Monitor Qubits*

, and

© 2020 Chinese Physical Society and IOP Publishing Ltd
, , Citation Frank Wilczek et al 2020 Chinese Phys. Lett. 37 050304 DOI 10.1088/0256-307X/37/5/050304

0256-307X/37/5/050304

Abstract

We present an algorithm for the generalized search problem (searching k marked items among N items) based on a continuous Hamiltonian and exploiting resonance. This resonant algorithm has the same time complexity $O(\sqrt{N/k})$ as the Grover algorithm. A natural extension of the algorithm, incorporating auxiliary "monitor" qubits, can determine k precisely, if it is unknown. The time complexity of our counting algorithm is $O(\sqrt{N})$, similar to the best quantum approximate counting algorithm, or better, given appropriate physical resources.

Export citation and abstract BibTeX RIS

The advantages of quantum computers over classical computers are rooted in the tensor product structure of quantum mechanics and the superposition principle. It is, however, not straightforward to utilize those advantages. Shor's algorithm for factorizing large integer numbers[1] and Grover's search algorithm[2] are outstanding but rare examples where quantum computation gives a theoretical edge in a natural problem.[3] Shor's and Grover's algorithms are quantum circuit algorithms, consisting of a sequence of discrete operations known as quantum gates.[3]

There is a different paradigm of quantum computing wherein algorithms are designed by constructing Hamiltonians. The system is initially in an easy-to-prepare quantum state, and the quantum computer evolves the quantum state using designed Hamiltonians. It eventually arrives at a quantum state which encodes the solution of the problem. The Hamiltonian approach can take advantage of intuition in quantum mechanics that physicists have cultivated over decades of research. A Hamiltonian was proposed for quantum search by Farhi and Gutmann in 1998,[4] and a generic quantum adiabatic algorithm was proposed in 2000.[5] In the adiabatic algorithm, the quantum computer follows the ground state of a time-dependent Hamiltonian. It has been shown that every quantum circuit algorithm can be converted into a quantum adiabatic algorithm, whose time complexity is exactly the same.[6,7] A quantum Hamiltonian algorithm for independent-set problems has some advantages over other known quantum algorithms and classical algorithms.[8]

A quantum algorithm is essentially a manipulation that evolves an initial state to a target quantum state. Since resonance has been widely exploited in many branches of physics to achieve that sort of state evolution, it is natural to ask whether resonant evolution might be useful in this context.

Here we use resonance to construct a quantum Hamiltonian algorithm for a generalized form of the problem addressed by Grover, namely to find, given an oracle, marked entries within a list of items. If the list has N entries, and there are k ≥ 1 marked items, our resonant algorithm can find one of the marked entries in time $O(\sqrt{N/k})$. This time complexity is the same as the Grover algorithm[2] and the quantum adiabatic search algorithm.[9,10] Though there is no gain in performance, there is no loss either, and the resonant approach seems particularly simple and transparent.

Next we introduce a monitor qubit, which is very natural in our context. Roughly speaking, a monitor qubit keeps track of whether the resonant transition of interest has occurred. Through use of monitor bits we can both avoid wasteful measurements on computational bits, and also gather information on the initial state. Below we demonstrate two different, characteristic methods to extract information using monitor qubits: predictive dissonance and robust readout. In the search context, predictive dissonance allows us to determine the number k of marked entries, when it is not given, with the time complexity $O(\sqrt{N})$. All known quantum algorithms can only approximately determine k with a similar time complexity.[11,12] Robust readout is a more open-ended concept, which depends in detail on the physical implementation of the quantum computer. Given appropriate resources, it can speed things up further.

Let us briefly recall the basic resonance phenomenon in a two-state quantum system.[13] We consider the time-dependent Hamiltonian,

Equation (1)

where Δ is the energy difference between the two states and ω and ε are the frequency and strength of the external drive, respectively. Without loss of generality, we assume that ε is real. This Hamiltonian can describe some realistic physical systems, or arise as a rotating-wave approximation of systems where the driving is proportional to cos(ω t). By going to a rotating reference frame in Hilbert space, one readily derives the time evolution operator corresponding to Eq. (1) to be

Equation (2)

where $\kappa =\sqrt{{\epsilon }^{2}+{(\omega -\varDelta )}^{2}/4}$.

Off resonance, when |ωΔ| ≫ |ε|, we have

Equation (3)

In this case, if the initial condition has only upper component, then the system will remain concentrated on the upper component.

On resonance, |ωΔ | ≪ ε, the time propagator becomes

Equation (4)

If we start with only the upper component present, it will have evolved completely into a state with only the lower component after a time τ = π/(2ε).

We now apply this framework to construct a quantum search algorithm. The search problem is to find items that satisfy certain criteria in an unsorted database of N items. On a quantum computer, these items are stored as n = log2N qubits with N orthonormal basis states |1⟩, |2⟩, ..., |N⟩ embodying a binary encoding. To exploit quantum resonant search, we construct the Hamiltonian

Equation (5)

where ${\hat{H}}_{\gamma }=|\gamma \rangle \langle \gamma |$ and ${\hat{H}}_{x}=|x\rangle \langle x|$. The state $|\gamma \rangle =\displaystyle \frac{1}{\sqrt{N}}\displaystyle \sum _{j}|j\rangle $ is the equal-weight superposition of the number basis. Since |x⟩ is the state that satisfies our searching criteria, we call it the answer state. In general, there could be more than one state that satisfy the searching criteria, and we will discuss those scenarios shortly. ${\hat{H}}_{x}$ embodies the oracle[9,10] which encodes the answer.

As the initial state and the Hamiltonian have the same permutation symmetry, we decompose the quantum state |ψ⟩ as

Equation (6)

Here $|{x}_{\perp }\rangle = \frac{1}{\sqrt{N-1}} \sum _{j}^{\prime}|j\rangle $, where the summation is over all items other than the answer item. This converts the system into a two-state model spanned by |x⟩ and |x⟩. The Hamiltonian (5) now takes the reduced form

Equation (7)

where we have taken the large N limit. We choose

Equation (8)

Equation (9)

Equation (10)

By comparing it to the Hamiltonian in Eq. (1), we have $\epsilon =p/(2\sqrt{N})$. (Here we have invoked the rotating wave approximation. It could be avoided with a slightly different, notationally more complicated Hamiltonian.) As our initial state is mostly in the upper component, ⟨s|x⟩ ≈ 1, we see that it will have rotated to the desired item |x⟩ after ${\tau }_{1}=\pi \sqrt{N}/p$. If p is independent of N, the time complexity of our algorithm is $O(\sqrt{N})$, the same as the Grover algorithm[2] and the quantum adiabatic search algorithm.[9,10]

Note that $a(t)=1-\displaystyle \frac{t}{T}$, $b(t)=-c(t)=-\displaystyle \frac{t}{T}$ corresponds to the quantum search Hamiltonian of Farhi and Gutmann.[4]

A simple variation on the basic search problem is to allow k different valid answers. Similarly, we can decompose the Hilbert space into two: one sub-space spanned by the k answer items, and the rest space spanned by the other items. As long as kN, we have in the large N limit

Equation (11)

The critical rotation time is then ${\tau }_{k}=\pi \sqrt{N/k}/p$.

We define a monitor qubit by expanding the Hilbert space to include an auxiliary qubit and generalizing a(t), b(t), and c(t) in the form

Equation (12)

Equation (13)

Equation (14)

where of course the second factor acts on the monitor qubit. We again use the rotating wave approximation and Eq. (6) to reduce the Hamiltonian. In the rotating frame, we have

Equation (15)

On resonance |ωΔ| ≪ ε the time evolution operator is

Equation (16)

demonstrating that the monitor qubit rotates simultaneously with the computational qubits.

If the initial state is prepared to be

Equation (17)

then following the dynamics given by Eq. (16), we find

Equation (18)

This allows us to make measurement on the monitor qubit without collapsing the computational qubits to their number states. Suppose we make a measurement at time t on the monitor qubit. If the result is |1⟩, the system collapses to $\left(\displaystyle \frac{1}{\sqrt{N}}|{x}_{\perp }\rangle +\displaystyle \frac{\sqrt{N-1}}{\sqrt{N}}|x\rangle \right)\otimes |1\rangle $. In the case, we measure the computational qubits and will find the answer with probability (N − 1)/N. If the result is |0⟩, the system will collapse to state $\left(\displaystyle \frac{1}{\sqrt{N}}|x\rangle +\displaystyle \frac{\sqrt{N-1}}{\sqrt{N}}|{x}_{\perp }\rangle \right)\otimes |0\rangle $, which is exactly the initial state |ψ(0)⟩ we prepared. Therefore we can continue to run the algorithm without the need to reinitialize the system. This could be useful, in the case k is known, if we have small errors which take us off exact resonance and introduce rare failures.

More interesting is the possibility to address the general problem of determining k, when it is not given. This is known as quantum counting problem.[11,12] We will discuss two approaches: the first involves the concept of predictive dissonance and the second involves the concept of robust readout. Both of them are of independent interest. They are characteristic potentialities opened up by monitor qubits, and could be of wider utility.

In Eq. (16) we must take

Equation (19)

As a consequence, there will be times

Equation (20)

where l is an integer, when the monitor qubit (initially |0⟩) is surely 0 and times

Equation (21)

when the monitor qubit is surely 1. The case k = 0 is special: then the monitor qubit is always 0.

Now given values k1, k2, we want to find times for which k1 predicts the monitor qubit to be 0 and k2 predicts it to be 1, or vice versa, i.e.,

Equation (22)

or

Equation (23)

for integers l1, l2. We will refer to this phenomenon where alternative hypotheses give contradictory predictions, exactly or with high probability, as "predictive dissonance". In our context, it is related to the physical phenomenon of beats. Predictive dissonance is a way to insure progress. By measuring the monitor qubit at such a time, we will rule out either k1 or k2. For example, in the case of Eq. (22), if the monitor bit is measured to be 0, k2 can be ruled out; if the monitor bit is 1, k1 can be ruled out. And thus, if we are given an upper bound kmax on the possible values of k, we can home in a unique k after at most kmax invocations of predictive dissonance. Our numerical results show that the number of invocations is proportional to ${k}_{\max }^{{}_{{}^{\alpha }}}$ with α ≲ 0.7 (see next section).

Unfortunately it is not always possible to achieve exact predictive dissonance. For one thing, the occurrence of square roots of k1 and k2 generally precludes the existence of such times. On the other hand, by careful consideration of $\sqrt{{k}_{1}/{k}_{2}}$ we can find times which satisfy our requirements to a good approximation. At such times, we can interpret the measurement of the monitor qubit as ruling out k1 or k2 with high probability. Of course, for efficiency we also want to keep the times reasonably small.

We can assume that k1 < k2. First suppose that $\sqrt{\displaystyle \frac{{k}_{2}}{{k}_{1}}}$ is rational, and write it in the reduced form ${2}^{s}\displaystyle \frac{a}{b}$ with a, b odd. Then if s < 0 we can satisfy Eq. (22) with

Equation (24)

while if s > 0 we can satisfy Eq. (23) with

Equation (25)

In the exceptional case s = 0 we do not get exact predictive dissonance, but we can get close, as follows. At times $t=2{l}_{2}\pi \displaystyle \frac{\sqrt{N}}{p\sqrt{{k}_{2}}}$ we will surely measure 0 if k = k2 on the monitor qubit, while if k = k1 we will measure 1 with probability

Equation (26)

Now elementary number theory instructs us that there will be values of l2 < a for which

Equation (27)

For these values of l2 we will have

Equation (28)

since a ≥ 3. Thus if we measure 1 we can eliminate k2 as a candidate, while if we measure 0 repeatedly we can eliminate k1 with high confidence. For each measurement, the same time bound in Eqs. (24) and (25) applies.

We now switch to a different procedure, cruder but more general, which applies when $\sqrt{\displaystyle \frac{{k}_{2}}{{k}_{1}}}$ is irrational. (Number-theoretic refinements are certainly possible, but they are beyond the scope of this paper.) To set the stage, let us re-state the essence of our problem in the form we will address it. We want to set up predictive dissonance by finding a time, not too large, such that on resonance measurement of the monitor qubit will surely yield 0 if k = k2 but will have large probability to yield 1 if k = k1. The first condition reads

Equation (29)

and gives us

Equation (30)

We want to insure that phase1 is close to $\displaystyle \frac{\pi }{2}$ modulo π, and also, in order for our time bound to hold, that ${l}_{2}\le \sqrt{{k}_{2}}$. Let us consider the phase modulo π as defining a circle. If $\pi \sqrt{\displaystyle \frac{{k}_{1}}{{k}_{2}}}$ lies within the interval of length $\displaystyle \frac{\pi }{3}$ centered at $\displaystyle \frac{\pi }{2}$, then simply by choosing l2 = 1 we achieve

Equation (31)

as in Eq. (28). If $\theta \equiv \pi \sqrt{\displaystyle \frac{{k}_{1}}{{k}_{2}}}$ lies in the interval $0\lt \theta \le \displaystyle \frac{1}{3}\pi $, modulo π, then steps in units of θ will move us monotonically into the sector just described. If θ lies in the interval $\displaystyle \frac{2}{3}\pi \le \theta \lt \pi $, then steps in units of θ will move us monotonically backward into that sector. One can check that the number of steps required is always consistent with our standard time bound. Finally, the case θ = 0, corresponding to k1 = 0, is trivial.

We apply predictive dissonance to a class of problems, where the estimated maximum number of possible solutions kmax is independent of N. For many hard instances of NP complete problems, this is indeed the case.[14] We want to pinpoint the number of solutions, ktrue ∈ [0,kmax]. We choose pairs of k1 and k2 in the range [0,kmax], and use predictive dissonance to eliminate one of them after the readout. In general, the choice of k1 and k2 will result in $\sqrt{\displaystyle \frac{{k}_{2}}{{k}_{1}}}$ as an irrational number. Then we could use the protocol described in the previous section to choose the proper time trun such that the measurement of monitor qubit will surely yield 0 if k = k2 and will have high probability p to yield 1 if k = k1. In fact, the protocol described in the previous section ensures p ≥ 0.75. To further enhance the probability p, we take a sequential J measurements of monitor qubit, and the readout will be a binary string of length J, i.e., R = [0,0,1,0,...], where 0 means no flip of the monitor qubit and 1 denotes the flip of the monitor qubit. If there is at least one 1 in the readout R, we can eliminate k2. If the readout R has only 0, then we can eliminate k1 confidently, because the probability of such a case appearing is (1 − P)J ≪ 1. The general time complexity of our predictive dissonance protocol can be expressed as $O({k}_{\max }^{\alpha }{N}^{\beta })$. We expect β = 0.5 because the single run time ${t}_{{\rm{run}}}\propto \sqrt{N}$. As will be shown below, α depends on the detail of choosing k1, k2 pairs. In the following, we discuss two pairing schemes: (1) half-size pairing and (2) head-tail pairing.

At a given time, we always have a list of possible $\{{\mathop{k}\limits^{\sim }}_{i}\}$ and assume ${\mathop{k}\limits^{\sim }}_{0}\lt {\mathop{k}\limits^{\sim }}_{1}\lt \cdots \lt {\mathop{k}\limits^{\sim }}_{n}$. For the half-size pairing scheme, we choose ${k}_{1}={\mathop{k}\limits^{\sim }}_{i}$ and ${k}_{2}={\mathop{k}\limits^{\sim }}_{i+n/2}$; for the head-tail pairing scheme, we choose ${k}_{1}={\mathop{k}\limits^{\sim }}_{i}$ and ${k}_{2}={\mathop{k}\limits^{\sim }}_{n-i}$. In numerical simulation, for each fix kmax and N, we random sample ktrue ∈ [0,kmax], and follow predictive dissonance protocol to find ktrue. And we use ensemble averaged $\overline{T}$ to denote the average running time to pinpoint ktrue for given N and kmax. For those two pairing schemes, we first fix kmax = 50, and then vary the number of items N in the database. The result is shown in Fig. 1(a). We find for both pairing schemes, $\overline{T}\propto \sqrt{N}$. This is reasonable, because each run time is proportional to $\sqrt{N}$ whichever pairing scheme is chosen. Therefore, ensemble averaged run time should also be proportional to $\sqrt{N}$.

Fig. 1.

Fig. 1. Scaling behavior of ensemble averaged running time $\overline{T}$ as a function of N and kmax. For a given N and kmax, we uniformly sample ktrue ∈ [0,kmax] 300 times. For each k sample, we follow the predictive dissonance protocol to pinpoint k and record the running time T, and we choose repetition J = 6. The ensemble averaged time $\overline{T}$ is plotted for each N and kmax. In subplot (a), it shows $\overline{T}\propto {N}^{\beta }$, where β is approximately 0.5; in subplot (b), it shows $\overline{T}\propto {k}_{{\max }^{\alpha }}$, and α depends on the details of pairing schemes.

Standard image

Next we study the relation between averaged run time $\overline{T}$ and kmax. We fix N = 20000 and vary kmax. As shown in Fig. 1(b), we find that $\overline{T}\propto {k}_{\max }^{{}_{{}^{\alpha }}}$ with the power α depending on the pairing scheme. For the half-size pairing, $\overline{T}\propto {k}_{\max }^{{}_{{}^{0.59}}}$, while for head-tail pairing, $\overline{T}\propto {k}_{\max }^{{}_{{}^{0.68}}}$. We conjecture that the lower bound for α is 0.5, because we can roughly estimate that $\overline{T}\propto {k}_{\max }\sqrt{N/{k}_{\max }}\propto \sqrt{{k}_{\max }N}$. What pairing scheme can achieve the optimal lower bound is subject to further discussion. There are problems where the number of solutions ktrue scale with N.[8] If ktrueNγ, our numerical results indicate that $\overline{T}\propto {N}^{\alpha \gamma +0.5}$.

We now briefly describe a very different way to exploit monitor qubits to address the same problem. It is conceptually simpler and potentially much faster, but it requires additional resources and it depends upon assumed physical properties of qubits. Indeed, let us assume that we have an ensemble containing several monitor qubits, each of the kind described before, and that they are localized particles - "spins" - carrying a magnetic moment, all within a common small region. Then the systematic oscillation of the ensemble of monitor bits will set up an oscillating magnetic field, which can be read out with great sensitivity, for instance using a SQUID. The frequency of that oscillating field encodes the unknown value of k, according to our preceding formulae. Use of several monitor qubits, of course, also brings in protection against errors in any one of them, and against small uncorrelated errors that affect all of them.

We have used resonance to construct quantum search algorithms. In addition, with monitor qubits we have implemented predictive dissonance and robust readout, which allow us to find the number of answers efficiently when that is unknown. Our algorithms illustrate the importance of physical considerations in assessing computational potential. The parameter p, which governs overall speed, represents interaction energy at a particular frequency, and could become quite large in a resonant context. Robust readout can in principle obviate k dependence altogether. We indicated in broad terms how robust readout can be implemented using spin qubits. Both this and possible alternative implementations merit further study.

Footnotes

  • B.W. is supported by the National Key R&D Program of China (Grant Nos. 2017YFA0303302 and 2018YFA0305602), the National Natural Science Foundation of China (Grant No. 11921005), and Shanghai Municipal Science and Technology Major Project (Grant No. 2019SHZDZX01). F.W. is supported by the Swedish Research Council (Contract No. 335–2014-7424), U.S. Department of Energy (Contract No. de-sc0012567), and the European Research Council (Grant No. 742104).

Please wait… references are loading.
10.1088/0256-307X/37/5/050304