Article | Open | Published:

# Quantum algorithm for preparing the ground state of a system via resonance transition

Scientific Reportsvolume 7, Article number: 16342 (2017) | Download Citation

## Abstract

Preparing the ground state of a system is an important task in physics. We propose a quantum algorithm for preparing the ground state of a physical system that can be simulated on a quantum computer. The system is coupled to an ancillary qubit, by introducing a resonance mechanism between the ancilla qubit and the system, and combined with measurements performed on the ancilla qubit, the system can be evolved to monotonically converge to its ground state through an iterative procedure. We have simulated the application of this algorithm for the Afflect-Kennedy-Lieb-Tasaki model, whose ground state can be used as resource state in one-way quantum computation.

## Introduction

Purification of quantum states is the key for many quantum applications, e.g., highly-purified quantum states are required in improving the signal to noise ratio in spectroscopy1,2 and the resolution in metrology and quantum sensing3,4,5,6. It is also essential in quantum information science, such as initializing a set of qubits to a known state in many quantum algorithms, preparing resource state in one-way quantum computation7, and supplying fresh ancillary qubits in fault-tolerant quantum computing and quantum error correction8,9. To purify a quantum state, in addition to physical cooling, algorithmic cooling can be used to reduce the entropy of the system. In quantum computation, algorithmic cooling can be used for preparing the ground state of a quantum computer by means of the computer itself10,11.

There are a few quantum cooling algorithms have been proposed. In ref.12, a heat-bath algorithmic cooling (HBAC) approach was proposed and demonstrated experimentally. In this approach, the entropy of qubits is reduced by distributing more entropy to one of the qubits, which can release the excess entropy to a heat bath through thermalization. HBAC is not a universal cooling algorithm, it is mainly used for preparing polarized spins as initial states for quantum computation. Another approach13,14 for quantum cooling is to engineer dissipative open-system dynamics to drive quantum states to the ground state of a simulated system. This approach is based on simulation of the Lindblad master equations, and is restricted to the frustration-free Hamiltonians. In ref.15, a universal quantum cooling approach was proposed, this approach can be applied to enhance the probability of the ground-state projection through non-unitary operations introduced through measurements. In this approach, it cannot be verified directly that the system is cooled to its ground state. In ref.16, a method is proposed for purifying a quantum system A to a pure state through Zeno-like measurements on another quantum system B that is coupled to A. The effect of performing a series of frequent measurements on system B introduces non-unitary operations on system A and drives it to a pure state.

In this work, we propose a quantum algorithm for preparing the ground state of a system via resonance transition, provided that the ground state energy of the system is known. The system is coupled to an ancillary qubit and a resonance transition is introduced between them, through an energy exchange with the ancilla qubit, the system can be driven to monotonically converge to its ground state in an iterative way. In this algorithm, the system is prepared in an initial state and the amplitude of the ground state is amplified through a resonance mechanism, by performing measurements on the ancilla qubit, the system is purified to converge quickly to its ground state. The algorithm can be applied to any system with a Hamiltonian that can be simulated on a quantum computer. We have simulated the application of this algorithm for the Afflect-Kennedy-Lieb-Tasaki (AKLT) model, whose ground state can be used as resource state in one-way quantum computation.

## Results

### The Algorithm

For a qubit coupled to a physical system, when the qubit resonates with a transition in the system, it exhibits a dynamical response and an energy exchange occurs between the qubit and the system. By performing measurements on the qubit, the system can be purified to its ground state. Based on this, we propose a quantum algorithm for preparing the ground state of a system, provided that the ground state energy is known. For some systems, such as some oracle-based problems in quantum computation, the ground state energies are already known, or they can be obtained through the algorithm we introduced here and in ref.17. In this algorithm, the system is coupled with an ancillary qubit and is prepared in an initial state which can be spanned by the eigen-basis of the Hamiltonian of the system, the amplitude of the ground state is amplified through a resonance mechanism. By performing measurements on the ancilla qubit, which introduces a non-unitary operations on the system16, the system can be purified and driven to monotonically converge to its ground state. Details of the algorithm are as follows.

The algorithm requires (n + 2) qubits, two ancillary qubits and n qubits that represent the system. The first ancilla qubit is coupled to a quantum register R of (n + 1) qubits consisting of the second ancilla qubit and an n-qubit quantum register representing a system of dimension N = 2n. The Hamiltonian of the algorithm is constructed as

$$H=-\frac{1}{2}{\sigma }_{z}\otimes {I}_{2}^{\otimes (n+\mathrm{1)}}+{I}_{2}\otimes {H}_{R}+c{\sigma }_{x}\otimes {\sigma }_{x}\otimes {I}_{N},$$
(1)

where

$${H}_{R}={\varepsilon }_{0}|0\rangle \langle 0|\otimes {I}_{N}+|1\rangle \langle 1|\otimes {H}_{S},$$
(2)

and H S is the Hamiltonian of the physical system. The eigenstates of the system are |χ j 〉 and H S |χ j 〉 = E j |χ j 〉 (j = 1, 2, …, N), where E j are the eigenvalues of H S . I 2 is the two-dimensional identity operator, σ x and σ z are the Pauli matrices. The first term in Eq. (1) is the Hamiltonian of the first ancilla qubit, the second term is the Hamiltonian of the register R, and the third term describes the interaction between the ancilla qubit and R. Here, ε 0 is a reference parameter, and c is the coupling strength between the first ancilla qubit and R.

In the algorithm, a guess state |φ (0)〉 of the ground state of the system is prepared as the initial input state. The register R of the circuit is prepared in state |0〉 |φ (0)〉, which is an eigenstate of the Hamiltonian H R with eigenvalue ε 0. We set the parameter ε 0 such that ε 0 − E 1 = 1, where E 1 represents the ground state energy of the system. The procedures of the algorithm are as follows:

For k = 1:

1. (i)

Prepare the first ancilla qubit in its ground state |0〉 and the register R in state |0〉 |φ (k−1)〉.

2. (ii)

Construct Hamiltonian of the algorithm as shown in Eq. (1), and implement the time evolution operator U(τ) = exp(−iHτ) with τ = π/(2c).

3. (iii)

Perform a measurement on the first ancilla qubit in its computational basis. If the measurement result is in its excited state |1〉, go to the next step; otherwise, set k = 1 and run the algorithm start from step (i) again.

4. (iv)

Take the state of the last n qubits obtained from step (iii) as input state |φ (k)〉 for the system. Set k = k + 1 and run the procedures from step (i) again.

Here, k represents the iteration number of the algorithm. The state |φ (m)〉 obtained on the last n qubits is close to the ground state of the system. The time evolution operator U(τ) = exp(−iHτ) can be implemented efficiently through the Trotter formula18.

The initial state of the system |φ (0)〉 can be spanned by the complete set of eigenstates of the system Hamiltonian {|χ j 〉, j = 1, 2, …, N} as $$|{\phi }^{\mathrm{(0)}}\rangle ={\sum }_{j=1}^{N}\,{d}_{j}|{\chi }_{j}\rangle$$, where d j  = 〈φ (0)|χ j 〉 and $${\sum }_{j=1}^{N}\,{|{d}_{j}|}^{2}=1$$. In basis {|Ψ j 〉 = |0〉 |0〉 |χ j 〉, |Ψ N+j 〉 = |1〉 |1〉 |χ j 〉, j = 1, 2, …, N}, the Hamiltonian of the algorithm can be decomposed as direct sum of N two-dimensional matrix as $$H={\oplus }_{j=1}^{N}\,{H}_{j}$$. With ε 0 − E 1 = ω = 1, H j are in the form

$${H}_{j}=(\begin{array}{cc}\tfrac{1}{2}+{E}_{1} & c\\ c & \tfrac{1}{2}+{E}_{j}\end{array}).$$
(3)

In the first iteration of the algorithm, the initial state of the circuit is |Ψ0〉 = |0〉 |0〉 |φ (0)〉, the unitary evolution of the circuit is $$U|{{\rm{\Psi }}}_{0}\rangle ={\sum }_{j=1}^{N}\,{d}_{j}{U}_{j}|0\rangle |0\rangle |{\chi }_{j}\rangle$$, where U j  = exp(−iH j τ). Then we have

$${U}_{1}|0\rangle |0\rangle |{\chi }_{1}\rangle ={c}_{1}|1\rangle |1\rangle |{\chi }_{1}\rangle ,$$
(4)

where $${c}_{1}={e}^{-i(\alpha +\frac{\pi }{2})}$$ and $$\alpha =\frac{2{E}_{1}+1}{4c}\pi$$. And

$${U}_{j}|0\rangle |0\rangle |{\chi }_{j}\rangle ={c}_{j0}|0\rangle |0\rangle |{\chi }_{j}\rangle +{c}_{j1}|1\rangle |1\rangle |{\chi }_{j}\rangle ,\,j > 1$$
(5)

where

$${c}_{j0}=[\frac{1}{2}-\frac{{\delta }_{j}}{2\sqrt{4{c}^{2}+{\delta }_{j}^{2}}}+(\frac{1}{2}+\frac{{\delta }_{j}}{2\sqrt{4{c}^{2}+{\delta }_{j}^{2}}})\,{e}^{\frac{i\pi \sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{2c}}]\times {e}^{-i\pi \frac{{\kappa }_{j}+\sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{4c}},$$
(6)
$${c}_{j1}=\frac{c}{\sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{e}^{-i\pi \frac{{\kappa }_{j}+\sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{4c}}(1-{e}^{\frac{i\pi \sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{2c}})$$
(7)

and δ j  = E j  − E 1, κ j  = E 1 + E j  + 1. Then

$$\begin{array}{rcl}U|{{\rm{\Psi }}}_{0}\rangle & = & U|0\rangle |0\rangle \,{\sum }_{j=1}^{N}\,{d}_{j}|{\chi }_{j}\rangle \\ & = & {\sum }_{j=1}^{N}\,{d}_{j}{U}_{j}|0\rangle |0\rangle |{\chi }_{j}\rangle \\ & = & |1\rangle ({d}_{1}{c}_{1}|1\rangle |{\chi }_{1}\rangle +{\sum }_{j=2}^{N}\,{d}_{j}{c}_{j1}|1\rangle |{\chi }_{j}\rangle )\\ & & +|0\rangle \,{\sum }_{j=2}^{N}\,{d}_{j}{c}_{j0}|0\rangle |{\chi }_{j}\rangle \mathrm{.}\end{array}$$
(8)

From Eq. (7), we can see that $${|{c}_{j1}|}^{2}=\frac{{c}^{2}}{4{c}^{2}+{\delta }_{j}^{2}}\,[2-2\,\cos \,(\frac{\pi \sqrt{4{c}^{2}+{\delta }_{j}^{2}}}{2c})]$$. The probability of the measurement on the ancilla qubit being in its excited state |1〉, depends on the coupling coefficient c and the energy gaps between the ground state and the excited states δ j . In the case where $${\delta }_{j}\gg c$$ and $$c\ll 1$$, $$|{c}_{j1}|\ll 1$$ and $$|{c}_{j0}|\approx 1$$. Therefore in the first iteration of the algorithm, the probability of the measurement on the ancilla qubit being in its excited state is ≈|d 1|2. The system is evolved to the excited states of the system energy when the measurement on the ancilla qubit is in state |0〉, while the system is purified to a state that is close to its ground state when the measurement is in its excited state |1〉. When the measurement on the first ancilla qubit is in state |1〉, the circuit is collapsed to state $$|{{\rm{\Psi }}}^{\mathrm{(1)}}\rangle =\frac{1}{\sqrt{{N}_{r}}}|1\rangle ({d}_{1}{c}_{1}|1\rangle |{\chi }_{1}\rangle +{\sum }_{j=2}^{N}\,{d}_{j}{c}_{j1}|1\rangle |{\chi }_{j}\rangle )$$, where $${N}_{r}={|{d}_{1}{c}_{1}|}^{2}+{\sum }_{j=2}^{N}\,{|{d}_{j}{c}_{j1}|}^{2}$$ is the renormalization factor. Because |c 1| = 1 and $$|{c}_{j1}|\approx c\ll 1$$ provided that $${\delta }_{j}\gg c$$, the state |1〉 |1〉 |χ 1〉 that encodes the ground state of H S contributes most to the state |Ψ(1)〉, as long as d 1 is polynomial large. Ignoring phase factors, the state on the last n qubits of the circuit can be written as $$\frac{1}{\sqrt{1+{({a}_{0}c)}^{2}}}(|{\chi }_{1}\rangle +{a}_{0}c|{\bar{\chi }}_{1}\rangle )$$, where $${a}_{0}=\sqrt{{\sum }_{j=2}^{N}\,{|\frac{{d}_{j}{c}_{j1}}{{d}_{1}c}|}^{2}}$$, $$|{\bar{\chi }}_{1}\rangle =\frac{1}{{a}_{0}c}\,{\sum }_{j=2}^{N}\,\frac{{d}_{j}}{|{d}_{1}|}\,{c}_{j1}|1\rangle |{\chi }_{j}\rangle$$ represents a state that does not contain the ground state |χ 1〉. The amplitude of the ground state of the system is amplified in a rate about 1 : a 0 c through the resonance mechanism. After m continuous measurements on the first ancilla qubit being in its excited state |1〉, the system is purified to state $$\frac{1}{\sqrt{1+{({a}_{0}c)}^{2m}}}[|{\chi }_{1}\rangle +{({a}_{0}c)}^{m}|{\bar{\chi }}_{1}\rangle ]$$, and the amplitude of the component that does not contain the ground state of H S is compressed to be exponentially small with m.

The success probability for (m + 1) continuous measurements on the first ancilla qubit to be in its excited state |1〉 is

$$\begin{array}{rcl}{P}_{{\rm{succ}}} & = & {|{d}_{1}|}^{2}\,\prod _{k=1}^{m}\,\frac{1}{1+{({a}_{0}c)}^{2k}}\\ & > & {|{d}_{1}|}^{2}\,{[\tfrac{1}{1+{({a}_{0}c)}^{2}}]}^{m}\\ & \approx & {|{d}_{1}|}^{2}\,{[1-{({a}_{0}c)}^{2}]}^{m}.\end{array}$$
(9)

If the coupling coefficient c is set such that $${a}_{0}c < 1/\sqrt{m}$$ and $${\delta }_{j}\gg c$$, then the success probability of the algorithm P succ > |d 1|2/e in the asymptotic limit of m. The system is purified to a state that has fidelity of (1 − m(a 0 c)2m) with the ground state of the Hamiltonian H S . The number of trials the algorithm has to be run is proportional to 1/P succ. The evolution time of the algorithm is τ = π/(2c), if the energy gap between the ground state and the excited states δ j is polynomially large, then the coupling coefficient c can be set to be polynomially small and $${\delta }_{j}\gg c$$, then as long as |d 1|2 is not exponentially small, the algorithm can be run in polynomial time with finite success probability.

Since the amplitude of the ground state of the system is amplified in a rate about 1 : a 0 c where $${a}_{0}c\ll 1$$, the system is evolved very fast to a state that is very close to the ground state of the system when the measurement on the first ancilla qubit is in its excited state. The success probability of the algorithm mainly depends on the overlap between the initial state and the ground state of the system. Once the measurement on the ancilla qubit fails to be in its excited state, we can start over the algorithm again. Then after a few iterations, the initial state is purified to be close to the ground state of the system. In practice, the system can be purified to a state that is very close to the ground state of the system in a few iterations of the algorithm, as we can see in the example below.

We have to implement the time evolution operator U(τ) = exp(−iHτ). In the algorithm Hamiltonian H, as shown in Eq. (1), the first two terms commute, while they do not commute with the third term. The operator U(τ) can be implemented through the Trotter formula18:

$$U(\tau )={[{e}^{-i(-\tfrac{1}{2}{\sigma }_{z}\otimes {I}_{2}^{\otimes (n+\mathrm{1)}}+{I}_{2}\otimes {H}_{R})\tau /L}{e}^{-i(c{\sigma }_{x}\otimes {\sigma }_{x}\otimes {I}_{N})\tau /L}]}^{L}+O(\mathrm{1/}L)$$
(10)

By making L very large, the error can be made as small as possible. L can be made sufficiently large such that the error is bounded by some threshold. By applying the Trotter approximation, the evolution operator on the circuit is U(τ) − O(1/L), which introduces a slight deviation from the real unitary evolution of the state in an iteration of the algorithm. Then the probability for (m + 1) continuous measurements on the first ancilla qubit to be in its excited state |1〉 becomes $${P}_{{\rm{succ}}}^{^{\prime} }\approx {|{d}_{1}|}^{2}{[1-{({a}_{0}c)}^{2}]}^{m}\,{[1-O(\mathrm{1/}L)]}^{m+1}$$.

A slight modification of the algorithm can be used for obtaining the ground state energy of a system. When the transition frequency between the reference state and an eigenstate of the system matches the frequency of the first ancilla qubit, it contributes the most to the excitation of the qubit. By performing measurements on the first ancilla qubit to obtain its excitation probability, a peak in the excitation rate of the qubit will be observed. Therefore by varying the eigenvalue of the reference state ε 0, and run the algorithm, we can locate the transition frequency between the reference state and the ground state and obtain the ground state energy of the system. The procedures are the same as in ref.17.

### Simulating the algorithm for the AKLT model

In the following, we simulate the algorithm for the one-dimensional Afflect-Kennedy-Lieb-Tasaki model. The ground state of the two-dimensional AKLT model can be used as resource state for universal one-way quantum computation19. The AKLT model is a gapped model, therefore it can be cooled to its ground state, and by performing single-qubit operations, one-way quantum computation can be implemented on this model. In ref.20, the authors simulated one-way quantum computation on the one-dimensional AKLT model by preparing the solid bond state of the model on photon system, but they did not use a cooling method21. Here, by applying the algorithm we proposed, we can evolve the simulated AKLT model on qubit system to its ground state.

The one-dimensional AKLT model consists of a linear chain of N spin-1’s in the bulk and two spin-1/2’s on the boundary. The spin-1 operators are represented by $${\overrightarrow{S}}_{k}$$ and spin-1/2 operators by $${\overrightarrow{s}}_{j}$$, where j = 0, N + 1. The Hamiltonian of the system is22

$${H}_{{\rm{AKLT}}}=\sum _{k=1}^{N-1}\,[{\overrightarrow{S}}_{k}{\overrightarrow{S}}_{k+1}+\frac{1}{3}{({\overrightarrow{S}}_{k}{\overrightarrow{S}}_{k+1})}^{2}]+{\theta }_{0,1}+{\theta }_{N,N+1}\mathrm{.}$$
(11)

The boundary terms θ describe interaction between a spin-1/2 and a spin-1, and

$${\theta }_{0,1}=\frac{2}{3}(1+{\overrightarrow{s}}_{0}{\overrightarrow{S}}_{1}),\,{\theta }_{N,N+1}=\frac{2}{3}(1+{\overrightarrow{s}}_{N+1}{\overrightarrow{S}}_{N})\mathrm{.}$$
(12)

Using the 3-spin 1d-AKLT model as an example, we simulate the algorithm for preparing the ground state of this system. The Hamiltonian of the system is

$${H}_{S}=\frac{2}{3}(1+{\overrightarrow{s}}_{0}{\overrightarrow{S}}_{1})+\frac{2}{3}(1+{\overrightarrow{s}}_{2}{\overrightarrow{S}}_{1})\mathrm{.}$$
(13)

The ground state of the system Hamiltonian H S is unique and the eigenvalue is zero. We use four qubits to simulate this system. The states |−1〉, |0〉, |1〉 of the spin-1 system are represented in the symmetric space of two qubits:

$$|1,1\rangle =|00\rangle ,|1,0\rangle =\frac{1}{\sqrt{2}}(|01\rangle +|10\rangle ),|1,-1\rangle =|11\rangle \mathrm{.}$$
(14)

We set the eigenvalue of the reference state as ε 0 = 1. In the basis above, the ground state of the simulated AKLT model in qubit system is $$1/\sqrt{12}(|0011\rangle +|1100\rangle +|0101\rangle +|1010\rangle )$$ − $$1/\sqrt{3}(|0110\rangle +|1001\rangle )$$. The initial state of the system is prepared in state |1100〉, which has fidelity of 1/12 with the ground state of the system.

In the following, we show that the ground state energy of the AKLT model above can be obtained using the algorithm we proposed here. The coupling coefficient is set as c = 0.05. We vary the eigenvalue of the reference state ε 0 in the range $$[0.8,1.2]$$ and discretize it into 100 equal elements. We run the algorithm for a number times in order to obtain the excitation probability of the first ancilla qubit. The excitation probability of the ancilla qubit at different eigenvalues of the reference state is shown in Fig. 1. From the figure we can see that the excitation probability reaches its maximum at ε 0 = 1, thus the ground state energy of the AKLT model can be obtained as E 1 = 0.

By setting ε 0 = 1, c = 0.05 and run the algorithm, in the first iteration, when the measurement on the first ancilla qubit is in its excited state, the state we obtained on the last n qubits of the circuit is $$|{\phi }^{\mathrm{(1)}}\rangle =0.321(|0011\rangle +|0101\rangle +|1010\rangle )$$ − $$0.573(|0110\rangle +|1001\rangle )+0.186|1100\rangle$$, which has fidelity of 0.99 with the ground state of the system. And after running the algorithm for two iterations, the state we obtained is $$|{\phi }^{\mathrm{(2)}}\rangle =0.288(|0011\rangle +|0101\rangle +|1010\rangle )$$ − $$0.577(|0110\rangle +|1001\rangle )+0.292|1100\rangle$$, which has fidelity about one with the ground state of the AKLT model.

Here we only use the simplest 1d-AKLT model as an example to show the application of the algorithm. In refs23,24, it was shown that the ground state of the two-dimensional AKLT model of spin-3/2 particles is a universal resource for one-way quantum computation. In this model, the spin states of a spin-3/2 particle are represented by three qubits as shown in23. The 2d-AKLT model of spin-3/2 particles is a gapped model and the algorithm we proposed here can be applied for preparing its ground state. We can use this algorithm to obtain its ground state energy, then run the algorithm to evolve the system to converge to its ground state.

## Discussion

We have proposed a quantum algorithm for preparing the ground state of a system, provided that the ground state energy is known. A resonance mechanism is introduced to amplify the amplitude of the ground state that is contained in an initial input state of the system. A measurement performed on the ancilla qubit indicates whether the system is prepared to its ground state or not. The procedures of the algorithm can be run iteratively to drive the system to converge monotonically to its ground state. This algorithm can be applied to any system with a Hamiltonian that can be simulated on a quantum computer.

The efficiency of the algorithm depends on the overlap between the initial input state and the ground state of the system, as shown in Eq. (9) when the energy gap between the ground and excited states of the system is much larger the coupling coefficient c. It is limited by the energy gap between the ground state and excited states, as shown in Eqs (68), when the energy gap is small, the amplification rate of the amplitude of the ground state in the input state of the algorithm is limited by the energy gap. If the overlap between the initial input state and the ground state of the system is finite, and the energy gap between the ground state and the first excited state of the system is polynomial large, such that the coupling coefficient c in the algorithm can be set to be much less than the energy gap, then the system can be evolved to its ground state in polynomial time with finite success probability.

We now compare this algorithm with other cooling algorithms for preparing the ground state of a system. Firstly, in our algorithm, the ground state energy of the system is required. For some systems, the ground state energy is already known, such as the example we used and some oracle-based problems in quantum computation. For a system whose ground state energy is unknown, an approximate ground state energy can be obtained using the algorithm in ref.17 or the algorithm in this work as shown in the example. Obtaining the ground state energy of a system requires some extra cost, but it provides some advantages for the algorithm. By using this algorithm, whether a system is prepared to its ground state can be determined according to the measurement result on the first ancilla qubit. We can be certain that the system is evolved to a state that is close to the ground state of the system when an excitation is observed on the first ancilla qubit. While for other algorithms, there is no direct way of verifying that the system is cooled to its ground state.

Secondly, the algorithm we proposed here can be run iteratively. With the known ground state energy, the system can be evolved to converge monotonically to its ground state through the iterative procedures in the algorithm. This algorithm provides a systematic way of purifying a state to the ground state of a system. While other cooling algorithms do not have such a property.

Thirdly, in our algorithm, a total number of (n + 2) qubits are used, while other algorithms use (n + 1) qubits. By adding the second ancillary qubit, we can introduce a reference state that does not depend on the energy spectrum of the system, which gives us the flexibility of setting proper resonance transitions to evolve the system to any of its eigenstates. The algorithms in our previous work17,25 that use (n + 1) qubits, can also be used for preparing the ground state of a system. But they can only be run in one time and the resonance transition induced depends on the energy spectrum of the system. While in the present algorithm, we can purify the ground state iteratively, the purity of the ground state can be increased in a systematic way.

In ref.26, a cooling algorithm was proposed also based on resonance transition, where a qubit that represents the bath is coupled to the system. The frequency of the qubit is adjusted to match a transition frequency of the system to induce a resonance transition to cool the system. While in our algorithm, by adding the second ancillary qubit, we can introduce a reference state that is independent of the energy spectrum of the system. Its eigenvalue can be adjusted such that the transition frequency between the reference state and the ground state of the system matches the frequency of the first ancilla qubit, therefore a resonance mechanism can be induced. This provides the flexibility of obtaining any eigenstate of the system. Besides, our algorithm can be run iteratively to evolve the system to converge monotonically to its ground state. While the algorithm in ref.26 does not have this property.

Adiabatic evolution can also be used for preparing the ground state of a system. In the adiabatic state preparation approach, one starts with an initial Hamiltonian and evolve it adiabatically to the target Hamiltonian, therefore the system is evolved from the ground state of the initial Hamiltonian to the ground state of the target Hamiltonian. While our algorithm starts with the target Hamiltonian directly to obtain its ground state. It requires only information concerning the spectrum of the Hamiltonian of the system, and not any intermediate Hamiltonians of the adiabatic evolution. The implementation is simpler for our algorithm, and whether the system is evolved to its ground state can be determined from the measurement on the first ancilla qubit.

In ref.27, the author introduced a controlled quantum adiabatic evolutions of single- and two-qubit operations for performing universal quantum computation. Compare with the algorithm we proposed here, both algorithms have a similarity in the controlled Hamiltonian, one can see that the Hamiltonian H R in our algorithm can be thought of as a controlled Hamiltonian evolution. And the initial states for both algorithms are eigenstates of the controlled Hamiltonians, respectively. The difference is that our algorithm is based on a resonance mechanism to obtain the ground state of a system, it starts from the target Hamiltonian directly; while the algorithm in27, the desired quantum state is reached through a controlled adiabatic evolution.

## Additional information

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

1. 1.

Ardenkjæ-Larsen, J. H. et al. Increase in signal-to-noise ratio of >10,000 times in liquid-state NMR. Proc. Natl. Acad. Sci. 100, 10158 (2003).

2. 2.

Hall, D. A. et al. Polarization-enhanced NMR spectroscopy of biomolecules in frozen solution. Science 276, 930 (1997).

3. 3.

Mosley, P. J. et al. Heralded generation of ultrafast single photons in pure quantum states. Phys. Rev. Lett. 100, 133601 (2008).

4. 4.

Riedel, M. F. et al. Atom-chip-based generation of entanglement for quantum metrology. Nature 464, 1170 (2010).

5. 5.

Thomas-Peter, N. et al. Real-world quantum sensors: evaluating resources for precision measurement. Phys. Rev. Lett. 107, 113603 (2011).

6. 6.

Ye, J., Kimble, H. & Katori, H. Quantum state engineering and precision metrology using state-insensitive light traps. Science 320, 1734 (2008).

7. 7.

Raussendorf, R. & Briegel, H. J. A one-way quantum computer. Phys. Rev. Lett. 86, 5188 (2001).

8. 8.

Knill, E., Laflamme, R. & Zurek, W. H. Resilient quantum computation: error models and thresholds. Proc. Roy. Soc. London Ser. A 454, 365 (1998).

9. 9.

Aharonov, D. & Ben-Or, M. Fault-tolerant quantum computation with constant error. In Proceedings of the 29th ACM Symposium on the Theory of Computing, pp. 176–188 (ACM, El Paso, TX, 1997).

10. 10.

Baugh, J. et al. Experimental implementation of heat-bath algorithmic cooling using solid-state nuclear magnetic resonance. Nature 438, 470 (2005).

11. 11.

Brassard, G. et al. Experimental heat-bath cooling of spins. e-print arXiv:quant-ph/0511156 (2005).

12. 12.

Boykin, P. O. et al. Algorithmic cooling and scalable NMR quantum computers. Proc. Natl Acad. Sci. 99, 3388 (2002).

13. 13.

Kraus, B. et al. Preparation of entangled states by quantum markov processes. Phys. Rev. A 78, 042307 (2008).

14. 14.

Verstraete, F., Wolf, M. M. & Cirac, J. I. Quantum computation and quantum-state engineering driven by dissipation. Nat. Phys. 5, 633 (2009).

15. 15.

Xu, J.-S. et al. Demon-like algorithmic quantum cooling and its realization with quantum optics. Nat. Photon. 8, 113 (2014).

16. 16.

Nakazato, H., Takazawa, T. & Yuasa, K. Purification through Zeno-Like Measurements. Phys. Rev. Lett. 90, 060401 (2003).

17. 17.

Wang, H., Ashhab, S. & Nori, F. Quantum algorithm for obtaining the energy spectrum of a physical system. Phys. Rev. A 85, 062304 (2012).

18. 18.

Nielsen, M. A. & Chuang, I. L. Quantum computation and quantum information. (Cambridge Univ. Press, Cambridge, England, 2000).

19. 19.

Wei, T.-C. & Raussendorf, R. Universal measurement-based quantum computation with spin-2 Affleck-Kennedy-Lieb-Tasaki states. Phys. Rev. A 92, 012310 (2015).

20. 20.

Kaltenbaek, R. et al. Optical one-way quantum computing with a simulated valence-bond solid. Nat. Phys. 6, 850 (2010).

21. 21.

Raussendorf, R. Quantum computing: Shaking up ground states. Nat. Phys. 6, 840 (2010).

22. 22.

Fan, H., Korepin, V. & Roychowdhury, V. Entanglement in a valence-bond solid state. Phys. Rev. Lett. 93, 227203 (2004).

23. 23.

Wei, T.-H., Affleck, I. & Raussendorf, R. Affleck-Kennedy-Lieb-Tasaki state on a honeycomb lattice is a universal quantum computational resource. Phys. Rev. Lett. 106, 070501 (2011).

24. 24.

Cai, J.-M. et al. Universal quantum computer from a quantum magnet. Phys. Rev. A. 82, 052309 (2010).

25. 25.

Wang, H., Ashhab, S. & Nori, F. Quantum algorithm for simulating the dynamics of an open quantum system. Phys. Rev. A 83, 062317 (2011).

26. 26.

Kafri, D. & Taylor, J. M. Algorithmic cooling of a quantum simulator, e-print arXiv:quant-ph/1207.7111.

27. 27.

Hen, I. Quantum gates with controlled adiabatic evolutions. Phys. Rev. A. 91, 022309 (2015).

Download references

## Acknowledgements

This work was supported by the National Nature Science Foundation of China (Grants No. 11275145).

## Author information

### Affiliations

1. #### Department of Applied Physics, Xi’an Jiaotong University, Xi’an, 710049, China

• Hefeng Wang
2. #### Key Laboratory of Quantum Information and Quantum Optoelectronic Devices, Shaanxi Province, China

• Hefeng Wang

### Competing Interests

The authors declare that they have no competing interests.

### Corresponding author

Correspondence to Hefeng Wang.

## About this article

### DOI

https://doi.org/10.1038/s41598-017-16396-0

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.