Researchain Logo Researchain
  • Decentralized Journals

    A

    Archives
  • Avatar
    Welcome to Researchain!
    Feedback Center
Decentralized Journals
A
Archives Updated
Archive Your Research
Quantum Physics

Non-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation

Prasanth Shyamsundar

Abstract
This paper generalizes the quantum amplitude amplification and amplitude estimation algorithms to work with non-boolean oracles. The action of a non-boolean oracle U_\varphi on an eigenstate |x\rangle is to apply a state-dependent phase-shift \varphi(x). Unlike boolean oracles, the eigenvalues \exp(i\varphi(x)) of a non-boolean oracle are not restricted to be \pm 1. Two new oracular algorithms based on such non-boolean oracles are introduced. The first is the non-boolean amplitude amplification algorithm, which preferentially amplifies the amplitudes of the eigenstates based on the value of \varphi(x). Starting from a given initial superposition state |\psi_0\rangle, the basis states with lower values of \cos(\varphi) are amplified at the expense of the basis states with higher values of \cos(\varphi). The second algorithm is the quantum mean estimation algorithm, which uses quantum phase estimation to estimate the expectation \langle\psi_0|U_\varphi|\psi_0\rangle, i.e., the expected value of \exp(i\varphi(x)) for a random x sampled by making a measurement on |\psi_0\rangle. It is shown that the quantum mean estimation algorithm offers a quadratic speedup over the corresponding classical algorithm. Both algorithms are demonstrated using simulations for a toy example. Potential applications of the algorithms are briefly discussed.
Full PDF

PPrepared for submission to

ACM Transactions on Quantum Computing

FERMILAB-PUB-21-018-QIS

February 09, 2021

Non-Boolean Quantum Amplitude Amplification andQuantum Mean Estimation

PRASANTH SHYAMSUNDAR (cid:18) , Fermi National Accelerator Laboratory, USAThis paper generalizes the quantum amplitude amplification and amplitude estimation algorithms to workwith non-boolean oracles. The action of a non-boolean oracle ๐‘ˆ ๐œ‘ on an eigenstate | ๐‘ฅ โŸฉ is to apply a state-dependent phase-shift ๐œ‘ ( ๐‘ฅ ) . Unlike boolean oracles, the eigenvalues exp ( ๐‘–๐œ‘ ( ๐‘ฅ )) of a non-boolean oracle arenot restricted to be ยฑ . Two new oracular algorithms based on such non-boolean oracles are introduced. Thefirst is the non-boolean amplitude amplification algorithm, which preferentially amplifies the amplitudes ofthe eigenstates based on the value of ๐œ‘ ( ๐‘ฅ ) . Starting from a given initial superposition state | ๐œ“ โŸฉ , the basisstates with lower values of cos ( ๐œ‘ ) are amplified at the expense of the basis states with higher values of cos ( ๐œ‘ ) .The second algorithm is the quantum mean estimation algorithm, which uses quantum phase estimationto estimate the expectation (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) , i.e., the expected value of exp ( ๐‘–๐œ‘ ( ๐‘ฅ )) for a random ๐‘ฅ sampled bymaking a measurement on | ๐œ“ โŸฉ . It is shown that the quantum mean estimation algorithm offers a quadraticspeedup over the corresponding classical algorithm. Both algorithms are demonstrated using simulations fora toy example. Potential applications of the algorithms are briefly discussed.CCS Concepts: โ€ข Theory of computation โ†’ Quantum computation theory ; โ€ข

Computer systems or-ganization โ†’ Quantum computing .Additional Key Words and Phrases: quantum algorithm, quantum speedup, Groverโ€™s algorithm, quantummachine learning, state overlap

Groverโ€™s algorithm, introduced in Ref. [1], is a quantum search algorithm for finding the uniqueinput ๐‘ฅ good that satisfies ๐‘“ bool ( ๐‘ฅ good ) = , (1)for a given boolean function ๐‘“ bool : { , , . . . , ๐‘ โˆ’ } โ†’ { , } . Such an input ๐‘ฅ good satisfying (1) isreferred to as the winning input of ๐‘“ bool . Groverโ€™s original algorithm has also been adapted to workwith boolean functions with multiple winning inputs [2], where the goal is to find any one of thewinning inputs.An important generalization of Groverโ€™s algorithm is the amplitude amplification algorithm[3โ€“5], in which the function ๐‘“ bool is accessed through a boolean quantum oracle ^ ๐‘ˆ ๐‘“ bool that acts onthe orthonormal basis states | โŸฉ , . . . , | ๐‘ โˆ’ โŸฉ as follows: ^ ๐‘ˆ ๐‘“ bool | ๐‘ฅ โŸฉ = (cid:40) โˆ’ | ๐‘ฅ โŸฉ , if ๐‘“ bool ( ๐‘ฅ ) = , + | ๐‘ฅ โŸฉ , if ๐‘“ bool ( ๐‘ฅ ) = . (2)In this way, the oracle marks the winning states by flipping their phase (shifting the phase by ๐œ‹ ).Given a superposition state | ๐œ“ โŸฉ , the goal of the amplitude amplification algorithm is to amplifythe amplitudes (in the superposition state) of the winning states. The algorithm accomplishesthis iteratively, by initializing a quantum system in the state | ๐œ“ โŸฉ and performing the operation ๐‘† ๐œ“ ^ ๐‘ˆ ๐‘“ bool on the system during each iteration, where ๐‘† ๐œ“ โ‰ก | ๐œ“ โŸฉ โŸจ ๐œ“ | โˆ’ ๐ผ . (3)Here, ๐ผ is the identity operator. Performing a measurement on the system after the iterative ampli-fication process results in one of winning states with high probability. Groverโ€™s original algorithm Authorโ€™s address: Prasanth Shyamsundar, [email protected], Fermi National Accelerator Laboratory, Fermilab QuantumInstitute, PO Box 500, Batavia, Illinois, 60510-0500, USA. a r X i v : . [ qu a n t - ph ] F e b Prasanth Shyamsundar is a special case of the amplitude amplification algorithm, where a) the uniform superposition state | ๐‘  โŸฉ , given by | ๐‘  โŸฉ = โˆš ๐‘ ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = | ๐‘ฅ โŸฉ , (4)is used as the initial state | ๐œ“ โŸฉ of the system, and b) there is exactly one winning input.Closely related to the amplitude amplification algorithm is the amplitude estimation algorithm [5,6]. It combines ideas from the amplitude amplification algorithm and the quantum phase estimation(QPE) algorithm [7] to estimate the probability that making a measurement on the initial state | ๐œ“ โŸฉ will yield a winning input. If the uniform superposition state | ๐‘  โŸฉ is used as | ๐œ“ โŸฉ , the amplitudeestimation algorithm can help estimate the number of winning inputs of ๐‘“ bool โ€”this special case isalso referred to as the quantum counting algorithm [6].The amplitude amplification algorithm and the amplitude estimation algorithm have a widerange of applications, and are important primitives that feature as subroutines in a number ofother quantum algorithms [8โ€“18]. The amplitude amplification algorithm can be used to find awinning input to ๐‘“ bool with O (cid:0) โˆš ๐‘ (cid:1) queries of the quantum oracle, regardless of whether thenumber of winning states is a priori known or unknown [2]. This represents a quadratic speedupover classical algorithms, which require O ( ๐‘ ) evaluations of the function ๐‘“ bool . Similarly, theamplitude estimation algorithm also offers a quadratic speedup over the corresponding classicalapproaches [5]. The quadratic speedup due to the amplitude amplification algorithm has beenshown to be optimal for oracular quantum search algorithms [19].A limitation of the amplitude amplification and estimation algorithms is that they work onlywith boolean oracles, which classify the basis states as good and bad. On the other hand, one mightbe interested in using these algorithms in the context of a non-boolean function of the input ๐‘ฅ . Insuch situations, the typical approach is to create a boolean oracle from the non-boolean function,by using a threshold value of the function as the decision boundaryโ€”the winning states are theones for which the value of the function is, say, less than the chosen threshold value [20, 21]. Inthis way, the problem at hand can be adapted to work with the standard amplitude amplificationand estimation algorithms. Another approach is to adapt the algorithms to work directly withnon-boolean functions [15].This paper generalizes the amplitude amplification and estimation algorithms to work withquantum oracles for non-boolean functions. In particular, a) the boolean amplitude amplificationalgorithm of Ref. [5] is generalized to the non-boolean amplitude amplification algorithm, andb) the amplitude estimation algorithm of Ref. [5] is generalized to the quantum mean estimationalgorithm. Henceforth, the qualifiers โ€œbooleanโ€ and โ€œnon-booleanโ€ will be used whenever necessary,in order to distinguish between the different versions of the amplitude amplification algorithm.The rest of this section introduces non-boolean oracles and describes the goals of the two mainalgorithms of this paper. The behavior of the boolean oracle ^ ๐‘ˆ ๐‘“ bool in (2) can be generalized to non-boolean functions byallowing the oracle to perform arbitrary phase-shifts on the different basis states. More concretely,let ๐œ‘ : { , , . . . , ๐‘ โˆ’ } โ†’ R be a real-valued function, and let ๐‘ˆ ๐œ‘ be a quantum oracle given by ๐‘ˆ ๐œ‘ โ‰ก ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) | ๐‘ฅ โŸฉ โŸจ ๐‘ฅ | . (5) The

O (โˆš ๐‘ ) and O ( ๐‘ ) scalings for the quantum and classical algorithms, respectively, hold assuming that the number ofwinning states does not scale with ๐‘ . on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 3 The actions of the oracle ๐‘ˆ ๐œ‘ and its inverse ๐‘ˆ โ€  ๐œ‘ on the basis states | โŸฉ , . . . , | ๐‘ โˆ’ โŸฉ are given by ๐‘ˆ ๐œ‘ | ๐‘ฅ โŸฉ = ๐‘’ + ๐‘–๐œ‘ ( ๐‘ฅ ) | ๐‘ฅ โŸฉ = (cid:104) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) + ๐‘– sin (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:105) | ๐‘ฅ โŸฉ , (6) ๐‘ˆ โ€  ๐œ‘ | ๐‘ฅ โŸฉ = ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | ๐‘ฅ โŸฉ = (cid:104) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โˆ’ ๐‘– sin (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:105) | ๐‘ฅ โŸฉ . (7) Given an oracle ๐‘ˆ ๐œ‘ and an initial state | ๐œ“ โŸฉ , the goal of the non-boolean amplitude amplificationalgorithm introduced in this paper is to preferentially amplify the amplitudes of the basis states | ๐‘ฅ โŸฉ with lower values of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) , at the expense of the amplitude of states with higher valuesof cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . Depending on the context in which the algorithm is to be used, a different functionof interest ๐‘“ (which is intended to guide the amplification) can be appropriately mapped onto thefunction ๐œ‘ . For example, if the range of ๐‘“ is [ , ] and one intends to amplify the states with highervalues of ๐‘“ , then (8) shows two different options for formulating the problem in terms of ๐œ‘ . ๐œ‘ ( ๐‘ฅ ) = ๐œ‹ ๐‘“ ( ๐‘ฅ ) or ๐œ‘ ( ๐‘ฅ ) = arccos (cid:0) โˆ’ ๐‘“ ( ๐‘ฅ ) (cid:1) . (8)In both these cases, cos ( ๐œ‘ ) is monotonically decreasing in ๐‘“ .The connection between the boolean and non-boolean amplitude amplification algorithms canbe seen as follows: If either of the two options in (8) is used to map a boolean function ๐‘“ bool onto ๐œ‘ bool , then ๐œ‘ bool ( ๐‘ฅ ) = (cid:40) ๐œ‹ , if ๐‘“ bool ( ๐‘ฅ ) = , , if ๐‘“ bool ( ๐‘ฅ ) = . (9)In this case, it can be seen from (2), (6), and (7) that the oracle ๐‘ˆ ๐œ‘ and its inverse ๐‘ˆ โ€  ๐œ‘ both reduce toa boolean oracle as follows: ๐‘ˆ ๐œ‘ bool = ๐‘ˆ โ€  ๐œ‘ bool = ^ ๐‘ˆ ๐‘“ bool . (10)Congruently, the task of amplifying (the amplitude of) the states with lower values of cos ( ๐œ‘ ) alignswith the task of amplifying the winning states | ๐‘ฅ โŸฉ with ๐‘“ bool ( ๐‘ฅ ) = . Given a generic unitary operator ๐‘ˆ and a state | ๐œ“ โŸฉ , the goal of the quantum mean estimationalgorithm introduced in this paper is to estimate the quantity โŸจ ๐œ“ | ๐‘ˆ | ๐œ“ โŸฉ . (11)In this paper, this task will be phrased in terms of the oracle ๐‘ˆ ๐œ‘ as estimating the expectation of theeigenvalue ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) , for a state | ๐‘ฅ โŸฉ chosen randomly by making a measurement on the superpositionstate | ๐œ“ โŸฉ . The connection between the two tasks can be seen, using (5), as follows: (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:12)(cid:12) ๐‘ฅ (cid:11) (cid:10) ๐‘ฅ (cid:12)(cid:12) ๐œ“ (cid:11) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) โŸจ ๐‘ฅ | ๐œ“ โŸฉ (cid:12)(cid:12) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) . (12)Here, (cid:12)(cid:12) โŸจ ๐‘ฅ | ๐œ“ โŸฉ (cid:12)(cid:12) is the probability for a measurement on | ๐œ“ โŸฉ to yield ๐‘ฅ . The only difference between โ€ข estimating (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) for an oracle ๐‘ˆ ๐œ‘ of the form in (5), and โ€ข estimating โŸจ ๐œ“ | ๐‘ˆ | ๐œ“ โŸฉ for a generic unitary operator ๐‘ˆ is that {| โŸฉ , . . . , | ๐‘ โˆ’ โŸฉ} is known, beforehand, to be an eigenbasis of ๐‘ˆ ๐œ‘ . On the other hand, theeigenstates of a generic unitary operator ๐‘ˆ may be a priori unknown. However, as we will see, themean estimation algorithm of this paper does not use the knowledge of the eigenstates, and henceis applicable for generic unitary operators ๐‘ˆ as well. Prasanth Shyamsundar

As mentioned before, the mean estimation algorithm of this paper is a generalization of theamplitude estimation algorithm of Ref. [5]. To see the connection between the respective tasksof these algorithms, note that the eigenvalues of a boolean oracle are either + or โˆ’ , and theexpectation of the eigenvalue under | ๐œ“ โŸฉ is directly related to the probability of a measurementyielding a winning state with eigenvalue โˆ’ . This probability is precisely the quantity estimatedby the amplitude estimation algorithm.The rest of the paper is organized as follows: The non-boolean amplitude amplification algorithmis described in Section 2 and analyzed in Section 3. Section 4 contains the description and analysisof the quantum mean estimation algorithm. Both these algorithms are demonstrated using a toyexample in Section 5. Slightly modified versions of the algorithms are provided in Section 6. Thetasks performed by these modified algorithms are related to, but different from, the tasks of thealgorithms introduced in Section 2 and Section 4. Finally, the findings of this study and summarizedand contextualized briefly in Section 7. In addition to the quantum system (or qubits) that serve as inputs to the quantum oracle, thenon-boolean amplitude amplification algorithm introduced in this section will use one extra ancillaqubit. For concreteness, let the quantum system used in the algorithm consist of two quantumregisters. The first register contains the lone ancilla qubit, and the second register will be actedupon by the quantum oracle.The notations | ๐‘Ž โŸฉ โŠ— | ๐‘ โŸฉ and | ๐‘Ž, ๐‘ โŸฉ will both refer to the state where the two registers are unen-tangled, with the first register in state | ๐‘Ž โŸฉ and the second register in state | ๐‘ โŸฉ . The tensor productnotation โŠ— will also be used to combine operators that act on the individual registers into operatorsthat simultaneously act on both registers. Such two-register operators will be represented byboldface symbols, e.g., S ๐šฟ , U ๐œ‘ , I . Likewise, boldface symbols will be used to represent the states ofthe two-register system in the braโ€“ket notation, e.g., | ๐šฟ โŸฉ . Throughout this paper, any state writtenin the braโ€“ket notation, e.g., | ๐œ“ โŸฉ , will be unit normalized, i.e., normalized to 1. The dagger notation( โ€  ) will be used to denote the Hermitian conjugate of an operator, which is also the inverse for aunitary operator.Throughout this paper, unless otherwise specified, {| โŸฉ , | โŸฉ , . . . , | ๐‘ โˆ’ โŸฉ} will be used as thebasis for (the state space of) the second register. Any measurement of the second register will referto measurement in this basis. Likewise, unless otherwise specified, (cid:110) | , โŸฉ , | , โŸฉ , . . . , | , ๐‘ โˆ’ โŸฉ (cid:111) โˆช (cid:110) | , โŸฉ , | , โŸฉ , . . . , | , ๐‘ โˆ’ โŸฉ (cid:111) (13)will be used as the basis for the two-register system.Let | ๐œ“ โŸฉ be the initial state of the second register from which the amplification process is tobegin. Let ๐ด be the unitary operator that changes the state of the second register from | โŸฉ to | ๐œ“ โŸฉ . | ๐œ“ โŸฉ โ‰ก ๐ด | โŸฉ โ‰ก ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) | ๐‘ฅ โŸฉ , such that ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) = , (14)where ๐‘Ž ( ๐‘ฅ ) is the initial amplitude of the basis state | ๐‘ฅ โŸฉ . It is implicitly assumed here that there exists a state | โŸฉ which is simultaneously an eigenstate of ๐‘ˆ ๐œ‘ , as well as a special,easy-to-prepare state of the second register. The algorithms of this paper can be modified to work even without thisassumptionโ€”it is made only for notational convenience. on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 5 Circuit for S ๐šฟ register 1(ancilla) ๐ป | , โŸฉ โŸจ , | โˆ’ I ๐ป register 2 ๐ด โ€  ๐ด Fig. 1. Quantum circuit for an implementation of S ๐šฟ , based on (19) . As we will see shortly, the algorithm introduced in this section will initialize the ancilla in the |+โŸฉ state given by |+โŸฉ = | โŸฉ + | โŸฉโˆš . (15)Anticipating this, let the two-register state | ๐šฟ โŸฉ be defined as | ๐šฟ โŸฉ โ‰ก |+ ,๐œ“ โŸฉ = | ,๐œ“ โŸฉ + | ,๐œ“ โŸฉโˆš (16a) = โˆš ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) (cid:104) | , ๐‘ฅ โŸฉ + | , ๐‘ฅ โŸฉ (cid:105) . (16b) The following unitary operations will be used in the generalized amplitude amplification algorithmof this paper:

Let the two-register unitary operator S ๐šฟ be defined as S ๐šฟ โ‰ก | ๐šฟ โŸฉ โŸจ ๐šฟ | โˆ’ I (17a) = |+ ,๐œ“ โŸฉ โŸจ+ ,๐œ“ | โˆ’ I , (17b)where I is the two-register identity operator. S ๐šฟ leaves the state | ๐šฟ โŸฉ unchanged and flips thephase of any state orthogonal to | ๐šฟ โŸฉ . S ๐šฟ is simply the two-register generalization of ๐‘† ๐œ“ used inthe boolean amplitude amplification algorithm. From (14) and (16), it can be seen that | ๐šฟ โŸฉ = (cid:104) ๐ป โŠ— ๐ด (cid:105) | , โŸฉ , (18)where ๐ป is the Hadamard transform. This allows S ๐šฟ to be expressed as S ๐šฟ = (cid:104) ๐ป โŠ— ๐ด (cid:105) (cid:104) | , โŸฉ โŸจ , | โˆ’ I (cid:105) (cid:104) ๐ป โŠ— ๐ด โ€  (cid:105) . (19)This expression leads to an implementation of S ๐šฟ , as depicted in Figure 1, provided one has accessto the quantum circuits that implement ๐ด and ๐ด โ€  . Let the two-register unitary operator U ๐œ‘ be defined as U ๐œ‘ โ‰ก | โŸฉ โŸจ | โŠ— ๐‘ˆ ๐œ‘ + | โŸฉ โŸจ | โŠ— ๐‘ˆ โ€  ๐œ‘ . (20)Its action on the basis states of the two-register system is given by U ๐œ‘ | , ๐‘ฅ โŸฉ = ๐‘’ + ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ , (21) Prasanth Shyamsundar

Circuit for U ๐œ‘ register 1(ancilla) ๐‘‹ ๐‘‹ register 2 ๐‘ˆ ๐œ‘ ๐‘ˆ โ€  ๐œ‘ Fig. 2. Quantum circuit for an implementation of U ๐œ‘ using controlled calls to the ๐‘ˆ ๐œ‘ and ๐‘ˆ โ€  ๐œ‘ oracles. Circuit for U โ€  ๐œ‘ register 1(ancilla) ๐‘‹ ๐‘‹ register 2 ๐‘ˆ ๐œ‘ ๐‘ˆ โ€  ๐œ‘ Fig. 3. Quantum circuit for an implementation of U โ€  ๐œ‘ using controlled calls to the ๐‘ˆ ๐œ‘ and ๐‘ˆ โ€  ๐œ‘ oracles. U ๐œ‘ | , ๐‘ฅ โŸฉ = ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ . (22)If the ancilla is in state | โŸฉ , U ๐œ‘ acts ๐‘ˆ ๐œ‘ on the second register. On the other hand, if the ancilla is instate | โŸฉ , it acts ๐‘ˆ โ€  ๐œ‘ on the second register. The inverse of U ๐œ‘ is given by U โ€  ๐œ‘ = | โŸฉ โŸจ | โŠ— ๐‘ˆ โ€  ๐œ‘ + | โŸฉ โŸจ | โŠ— ๐‘ˆ ๐œ‘ , (23)and the action of U โ€  ๐œ‘ on the basis states is given by U โ€  ๐œ‘ | , ๐‘ฅ โŸฉ = ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ , (24) U โ€  ๐œ‘ | , ๐‘ฅ โŸฉ = ๐‘’ + ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ . (25)The amplitude amplification algorithm for non-boolean functions will involve calls to both U ๐œ‘ and U โ€  ๐œ‘ . Figure 2 and Figure 3 depict implementations of U ๐œ‘ and U โ€  ๐œ‘ using a) the bit-flip (or Pauli-X)gate ๐‘‹ , and b) controlled ๐‘ˆ ๐œ‘ and ๐‘ˆ โ€  ๐œ‘ operations, with the ancilla serving as the control qubit. The amplitude amplification algorithm for non-boolean functions is iterative and consists of thefollowing steps:(1) Initialize the two-register system in the | ๐šฟ โŸฉ state.(2) Perform ๐พ iterations: During the odd iterations, apply the operation S ๐šฟ U ๐œ‘ on the system.During the even iterations, apply S ๐šฟ U โ€  ๐œ‘ on the system.(3) After the ๐พ iterations, measure the ancilla (first register) in the 0/1 basis.Up to a certain number of iterations, the iterative steps are designed to amplify the amplitude ofthe basis states | , ๐‘ฅ โŸฉ and | , ๐‘ฅ โŸฉ with lower values of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . The measurement of the ancilla at on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 7 Odd iterations Even iterations . . . . . . register 1(ancilla) : |+โŸฉ U ๐œ‘ S ๐šฟ U โ€  ๐œ‘ S ๐šฟ (ignored)register 2: | ๐œ“ โŸฉ Final state

Fig. 4. Quantum circuit for the non-boolean amplitude amplification algorithm.

Algorithm 1

Non-boolean amplitude amplification algorithm of Section 2. initialize | ๐šฟ โŸฉ : = | ๐šฟ โŸฉ for ๐‘˜ : = to ๐พ do if ๐‘˜ is odd then update | ๐šฟ โŸฉ : = S ๐šฟ U ๐œ‘ | ๐šฟ โŸฉ else update | ๐šฟ โŸฉ : = S ๐šฟ U โ€  ๐œ‘ | ๐šฟ โŸฉ end if end for Measure the ancilla in the 0/1 basis.the end of the algorithm is performed simply to ensure that the two registers will not be entangledin the final state of the system. The quantum circuit and the pseudocode for the algorithm areshown in Figure 4 and Algorithm 1, respectively. For pedagogical reasons, the specification of ๐พ ,the number of iterations to perform, has been deferred to Section 3, which contains an analysis ofthe algorithm. From (20) and (23), it can be seen that for the boolean oracle case given by ๐œ‘ ( ๐‘ฅ ) = ๐œ‹ ๐‘“ bool ( ๐‘ฅ ) , U ๐œ‘ and U โ€  ๐œ‘ both reduce to ๐ผ โŠ— ^ ๐‘ˆ ๐‘“ bool , where ^ ๐‘ˆ ๐‘“ bool is the oracle used in the boolean amplitude amplificationalgorithm. Furthermore, if the first register is in the |+โŸฉ state, from (3) and (17), the action of S ๐šฟ isgiven by S ๐šฟ (cid:104) |+โŸฉ โŠ— | ๐œ“ โŸฉ (cid:105) = |+โŸฉ โŠ— (cid:104) ๐‘† ๐œ“ | ๐œ“ โŸฉ (cid:105) . (26)Note that the first register is unaffected here. Thus, for the boolean oracle case, Algorithm 1 reducesto simply acting ๐‘† ๐œ“ ^ ๐‘ˆ ๐‘“ bool on the second register during each iterationโ€”the ancilla qubit remainsuntouched and unentangled from the second register. In this way, the algorithm presented in thissection is a generalization of the boolean amplitude amplification algorithm described in Section 1.The two key differences of the generalized algorithm from the boolean one, apart from the usageof a non-boolean oracle, are(1) The addition of the ancilla, which doubles the dimension of the state space of the system, and(2) Alternating between using U ๐œ‘ and U โ€  ๐œ‘ during the odd and even iterations.The motivation for these modifications will be provided in Section 3.1 and Section 3.2, respectively. Prasanth Shyamsundar

Let | ๐šฟ ๐‘˜ โŸฉ be the state of the two-register system after ๐‘˜ = , , . . . , ๐พ iterations of the amplitudeamplification algorithm (but before the measurement of the ancilla). For ๐‘˜ > , | ๐šฟ ๐‘˜ โŸฉ can berecursively written as | ๐šฟ ๐‘˜ โŸฉ โ‰ก ๏ฃฑ๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃณ S ๐šฟ U ๐œ‘ | ๐šฟ ๐‘˜ โˆ’ โŸฉ , if ๐‘˜ is odd , S ๐šฟ U โ€  ๐œ‘ | ๐šฟ ๐‘˜ โˆ’ โŸฉ , if ๐‘˜ is even . (27)Let หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) and หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) be the normalized amplitudes of the basis states | , ๐‘ฅ โŸฉ and | , ๐‘ฅ โŸฉ , respec-tively, in the superposition | ๐šฟ ๐‘˜ โŸฉ . | ๐šฟ ๐‘˜ โŸฉ โ‰ก ๐‘ โˆ‘๏ธ ๐‘ฅ = (cid:104) หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) | , ๐‘ฅ โŸฉ + หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) | , ๐‘ฅ โŸฉ (cid:105) . (28)In the initial state | ๐šฟ โŸฉ , the amplitudes หœ ๐‘Ž ( , ๐‘ฅ ) and หœ ๐‘Ž ( , ๐‘ฅ ) are both given, from (16), by หœ ๐‘Ž ( , ๐‘ฅ ) = หœ ๐‘Ž ( , ๐‘ฅ ) = ๐‘Ž ( ๐‘ฅ )โˆš . (29)Let the parameter ๐œƒ โˆˆ [ , ๐œ‹ ] be implicitly defined by cos ( ๐œƒ ) โ‰ก ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . (30) cos ( ๐œƒ ) is the expected value of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) over bitstrings ๐‘ฅ sampled by measuring the state | ๐œ“ โŸฉ .Let the two-register states | ๐œถ โŸฉ and | ๐œท โŸฉ be defined as | ๐œถ โŸฉ โ‰ก U ๐œ‘ | ๐šฟ โŸฉ , (31) | ๐œท โŸฉ โ‰ก U โ€  ๐œ‘ | ๐šฟ โŸฉ . (32)They will be used to track the evolution of the system through the iterative steps of the algorithm.Using (16), (20), and (23), | ๐œถ โŸฉ and | ๐œท โŸฉ can be written as | ๐œถ โŸฉ = โˆš ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) (cid:104) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ + ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ (cid:105) , (33) | ๐œท โŸฉ = โˆš ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) (cid:104) ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ + ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ (cid:105) . (34)Note that ๐œƒ , | ๐œถ โŸฉ , and | ๐œท โŸฉ are all implicitly dependent on the function ๐œ‘ and the initial state | ๐œ“ โŸฉ .For notational convenience, these dependencies are not explicitly indicated. After one iterative step, the system will be in state | ๐šฟ โŸฉ given by | ๐šฟ โŸฉ = S ๐šฟ U ๐œ‘ | ๐šฟ โŸฉ . (35)Using (17) and (31), this can be written as | ๐šฟ โŸฉ = S ๐šฟ | ๐œถ โŸฉ = โŸจ ๐šฟ | ๐œถ โŸฉ | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ . (36)From (16), (30), and (33), โŸจ ๐šฟ | ๐œถ โŸฉ = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) (cid:104) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) โŸจ , ๐‘ฅ | , ๐‘ฅ โŸฉ + ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) โŸจ , ๐‘ฅ | , ๐‘ฅ โŸฉ (cid:105) (37a) on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 9 = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) (cid:104) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) + ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) (37b) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) = cos ( ๐œƒ ) . (37c)Note that โŸจ ๐šฟ | ๐œถ โŸฉ is real-valued. This fact is crucial to the functioning of the algorithm, as we willsee later in this subsection. The motivation behind adding an ancilla qubit, effectively doubling thenumber of basis states, is precisely to make โŸจ ๐šฟ | ๐œถ โŸฉ real-valued.From (36) and (37), | ๐šฟ โŸฉ can be written as | ๐šฟ โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ . (38)From (16) and (33), the amplitude หœ ๐‘Ž ( , ๐‘ฅ ) of the basis state | , ๐‘ฅ โŸฉ in the superposition | ๐šฟ โŸฉ can bewritten as หœ ๐‘Ž ( , ๐‘ฅ ) = โŸจ , ๐‘ฅ | ๐šฟ โŸฉ = ๐‘Ž ( ๐‘ฅ )โˆš (cid:104) ( ๐œƒ ) โˆ’ ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) . (39)Likewise, the amplitude หœ ๐‘Ž ( , ๐‘ฅ ) of the basis state | , ๐‘ฅ โŸฉ can be written as หœ ๐‘Ž ( , ๐‘ฅ ) = โŸจ , ๐‘ฅ | ๐šฟ โŸฉ = ๐‘Ž ( ๐‘ฅ )โˆš (cid:104) ( ๐œƒ ) โˆ’ ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) . (40)From (39) and (40), it can be seen that after one iterative step, the amplitudes of | , ๐‘ฅ โŸฉ and | , ๐‘ฅ โŸฉ have acquired factors of (cid:2) ( ๐œƒ ) โˆ’ ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:3) and (cid:2) ( ๐œƒ ) โˆ’ ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:3) , respectively. Now, (cid:12)(cid:12) หœ ๐‘Ž ( , ๐‘ฅ ) (cid:12)(cid:12) (cid:12)(cid:12) หœ ๐‘Ž ( , ๐‘ฅ ) (cid:12)(cid:12) = (cid:12)(cid:12) หœ ๐‘Ž ( , ๐‘ฅ ) (cid:12)(cid:12) (cid:12)(cid:12) หœ ๐‘Ž ( , ๐‘ฅ ) (cid:12)(cid:12) = ( ๐œƒ ) + โˆ’ ( ๐œƒ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . (41)This shows that if cos ( ๐œƒ ) is positive, the magnitude of the โ€œamplitude amplification factorโ€ afterone iteration is monotonically decreasing in cos ( ๐œ‘ ) . This preferential amplification of states withlower values of cos ( ๐œ‘ ) is precisely what the algorithm set out to do.Note that this monotonicity property relies crucially on โŸจ ๐šฟ | ๐œถ โŸฉ being real-valued in (36). If โŸจ ๐šฟ | ๐œถ โŸฉ is complex, with a phase ๐›ฟ โˆ‰ { , ๐œ‹ } , then the amplification will be monotonic in cos ( ๐œ‘ โˆ’ ๐›ฟ ) ,which does not meet the present goal of the algorithm. The case where โŸจ ๐šฟ | ๐œถ โŸฉ is not real-valuedis explored further in Section 6. Equations (16), (17), (20), (23), (31), and (32) can be used to derive the following identities, whichcapture the actions of the operators S ๐šฟ , U ๐œ‘ , and U โ€  ๐œ‘ on the states | ๐šฟ โŸฉ , | ๐œถ โŸฉ , and | ๐œท โŸฉ : S ๐šฟ | ๐šฟ โŸฉ = | ๐šฟ โŸฉ , (42) S ๐šฟ | ๐œถ โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ , (43) S ๐šฟ | ๐œท โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œท โŸฉ , (44) U ๐œ‘ | ๐šฟ โŸฉ = | ๐œถ โŸฉ , (45) U ๐œ‘ | ๐œถ โŸฉ = โˆš ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) (cid:104) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ + ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ (cid:105) , (46) U ๐œ‘ | ๐œท โŸฉ = | ๐šฟ โŸฉ , (47) U โ€  ๐œ‘ | ๐šฟ โŸฉ = | ๐œท โŸฉ , (48) U โ€  ๐œ‘ | ๐œถ โŸฉ = | ๐šฟ โŸฉ , (49) Subspace spannedby | ๐šฟ โŸฉ and | ๐œท โŸฉ Subspace spannedby | ๐šฟ โŸฉ and | ๐œถ โŸฉ odd iterationseven iterations Fig. 5. Illustration depicting the evolution of the state of two-register system through the iterations of thenon-boolean amplitude amplification algorithm. U โ€  ๐œ‘ | ๐œท โŸฉ = โˆš ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ( ๐‘ฅ ) (cid:104) ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ + ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) | , ๐‘ฅ โŸฉ (cid:105) . (50)We can see that the subspace spanned by the states | ๐šฟ โŸฉ , | ๐œถ โŸฉ , and | ๐œท โŸฉ is almost stable under theaction of S ๐šฟ , U ๐œ‘ , and U โ€  ๐œ‘ . Only the actions of U ๐œ‘ on | ๐œถ โŸฉ and U โ€  ๐œ‘ on | ๐œท โŸฉ can take the state of thesystem out of this subspace. The motivation behind alternating between using U ๐œ‘ and U โ€  ๐œ‘ duringthe odd and the even iterations is to keep the state of the system within the subspace spanned by | ๐šฟ โŸฉ , | ๐œถ โŸฉ , and | ๐œท โŸฉ .From the identities above, we can write the following expressions capturing the relevant actionsof the odd iteration operator S ๐šฟ U ๐œ‘ and the even iteration operator S ๐šฟ U โ€  ๐œ‘ : S ๐šฟ U ๐œ‘ | ๐šฟ โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ , (51) S ๐šฟ U ๐œ‘ | ๐œท โŸฉ = | ๐šฟ โŸฉ , (52) S ๐šฟ U โ€  ๐œ‘ | ๐šฟ โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œท โŸฉ , (53) S ๐šฟ U โ€  ๐œ‘ | ๐œถ โŸฉ = | ๐šฟ โŸฉ . (54)From these expressions, it can be seen that the odd iteration operator S ๐šฟ U ๐œ‘ maps any state in thespace spanned by | ๐šฟ โŸฉ and | ๐œท โŸฉ to a state in the space spanned by | ๐šฟ โŸฉ and | ๐œถ โŸฉ . Conversely, theeven iteration operator S ๐šฟ U โ€  ๐œ‘ maps any state in the space spanned by | ๐šฟ โŸฉ and | ๐œถ โŸฉ to a state inthe space spanned by | ๐šฟ โŸฉ and | ๐œท โŸฉ . Since the algorithm begins with the system initialized in thestate | ๐šฟ โŸฉ , it can be seen that the state of the system oscillates between the two subspaces duringthe odd and even iterations, as depicted in Figure 5. ๐‘˜ Iterations

Using (27) and (51โ€“54), the state | ๐šฟ ๐‘˜ โŸฉ of the two-register system after ๐‘˜ โ‰ฅ iterations can bewritten, in matrix multiplication notation, as | ๐šฟ ๐‘˜ โŸฉ = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ (cid:104) | ๐šฟ โŸฉ | ๐œถ โŸฉ (cid:105) ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ( ๐œƒ ) โˆ’ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป ๐‘˜ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป , if ๐‘˜ is odd , (cid:104) | ๐šฟ โŸฉ | ๐œท โŸฉ (cid:105) ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ( ๐œƒ ) โˆ’ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป ๐‘˜ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป , if ๐‘˜ is even . (55) on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 11 As shown in Appendix A, (55) can be simplified to | ๐šฟ ๐‘˜ โŸฉ = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) | ๐šฟ โŸฉ โˆ’ sin ( ๐‘˜๐œƒ ) | ๐œถ โŸฉ (cid:105) , if ๐‘˜ is odd , ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) | ๐šฟ โŸฉ โˆ’ sin ( ๐‘˜๐œƒ ) | ๐œท โŸฉ (cid:105) , if ๐‘˜ is even . (56) ๐‘˜ Iterations

From (16), (33), (34), and (56), the amplitudes หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) of the basis states | , ๐‘ฅ โŸฉ after ๐‘˜ โ‰ฅ iterationscan be written as หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) = โŸจ , ๐‘ฅ | ๐šฟ ๐‘˜ โŸฉ = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ is odd ,๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ is even . (57)Similarly, the amplitudes หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) of the basis states | , ๐‘ฅ โŸฉ can be written as หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) = โŸจ , ๐‘ฅ | ๐šฟ ๐‘˜ โŸฉ = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ is odd ,๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ is even . (58)These expressions can be summarized, for ๐‘ โˆˆ { , } , as หœ ๐‘Ž ๐‘˜ ( ๐‘, ๐‘ฅ ) = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ + ๐‘ is odd ,๐‘Ž ( ๐‘ฅ )โˆš ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:105) , if ๐‘˜ + ๐‘ is even . (59) Amplitudes After Ancilla Measurement.

Note that the magnitudes of the amplitudes of the states | , ๐‘ฅ โŸฉ and | , ๐‘ฅ โŸฉ are equal, i.e., (cid:12)(cid:12) หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) (cid:12)(cid:12) = (cid:12)(cid:12) หœ ๐‘Ž ๐‘˜ ( , ๐‘ฅ ) (cid:12)(cid:12) , (60)for all ๐‘˜ โ‰ฅ and ๐‘ฅ โˆˆ { , , . . . , ๐‘ โˆ’ } . So, a measurement of the ancilla qubit in the first register after ๐พ iterations will yield a value of either 0 or 1 with equal probability. Let (cid:12)(cid:12) ๐œ“ ๐พ,๐‘ (cid:11) be the normalizedstate of the second register after performing ๐พ iterations, followed by a measurement of the ancillaqubit, which yields a value ๐‘ โˆˆ { , } . (cid:12)(cid:12) ๐œ“ ๐พ,๐‘ (cid:11) can be written as (cid:12)(cid:12) ๐œ“ ๐พ,๐‘ (cid:11) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘Ž ๐พ,๐‘ ( ๐‘ฅ ) | ๐‘ฅ โŸฉ , (61)where ๐‘Ž ๐พ,๐‘ ( ๐‘ฅ ) are the normalized amplitudes of the basis states of the second register (afterperforming ๐พ iterations and the measurement of the ancilla). ๐‘Ž ๐พ,๐‘ ( ๐‘ฅ ) is simply given by ๐‘Ž ๐พ,๐‘ ( ๐‘ฅ ) = โˆš ๐‘Ž ๐พ ( ๐‘, ๐‘ฅ ) . (62)Much of the following discussion holds a) regardless of whether or not a measurement is performedon the ancilla qubit after the ๐พ iterations, and b) regardless of the value yielded by the ancillameasurement (if performed)โ€”the primary goal of measuring the ancilla is simply to make the tworegisters unentangled from each other. ๐พ Iterations

Let ๐‘ ๐พ ( ๐‘ฅ ) be the probability for a measurement of the second register after ๐พ โ‰ฅ iterations toyield ๐‘ฅ . It can be written in terms of the amplitudes in Section 3.4 as ๐‘ ๐พ ( ๐‘ฅ ) = (cid:104)(cid:12)(cid:12) หœ ๐‘Ž ๐พ ( , ๐‘ฅ ) (cid:12)(cid:12) + (cid:12)(cid:12) หœ ๐‘Ž ๐พ ( , ๐‘ฅ ) (cid:12)(cid:12) (cid:105) = (cid:12)(cid:12) ๐‘Ž ๐พ, ( ๐‘ฅ ) (cid:12)(cid:12) = (cid:12)(cid:12) ๐‘Ž ๐พ, ( ๐‘ฅ ) (cid:12)(cid:12) . (63)This expression shows that the probability ๐‘ ๐พ ( ๐‘ฅ ) depends neither on whether the ancilla wasmeasured, nor on the result of the ancilla measurement (if performed). From (59), ๐‘ ๐พ ( ๐‘ฅ ) can bewritten as ๐‘ ๐พ ( ๐‘ฅ ) = ๐‘ ( ๐‘ฅ ) sin ( ๐œƒ ) (cid:12)(cid:12)(cid:12) sin (cid:0) ( ๐พ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐พ๐œƒ ) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) (cid:12)(cid:12)(cid:12) (64) = ๐‘ ( ๐‘ฅ ) sin ( ๐œƒ ) (cid:104) sin ( ๐พ๐œƒ ) + sin (cid:0) ( ๐พ + ) ๐œƒ (cid:1) โˆ’ ( ๐พ๐œƒ ) sin (cid:0) ( ๐พ + ) ๐œƒ (cid:1) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:105) . (65)It can be seen here that the probability amplification factor ๐‘ ๐พ ( ๐‘ฅ )/ ๐‘ ( ๐‘ฅ ) is monotonic in cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) for all ๐พ โ‰ฅ . The following trigonometric identities, proved in Appendix B, help elucidate the ๐พ dependence of this amplification factor: sin ( ๐ถ ) + sin ( ๐ถ + ๐ท ) = sin ( ๐ท ) + ( ๐ถ ) sin ( ๐ถ + ๐ท ) cos ( ๐ท ) , (66) ( ๐ถ ) sin ( ๐ถ + ๐ท ) = cos ( ๐ท ) โˆ’ cos ( ๐ถ + ๐ท ) . (67)Setting ๐ถ = ๐พ๐œƒ and ๐ท = ๐œƒ , these identities can be used to rewrite (65) as ๐‘ ๐พ ( ๐‘ฅ ) = ๐‘ ( ๐‘ฅ ) (cid:110) โˆ’ ๐œ† ๐พ (cid:104) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โˆ’ cos ( ๐œƒ ) (cid:105) (cid:111) , (68)where the ๐พ -dependent factor ๐œ† ๐พ is given by ๐œ† ๐พ โ‰ก ( ๐พ๐œƒ ) sin (cid:0) ( ๐พ + ) ๐œƒ (cid:1) sin ( ๐œƒ ) = cos ( ๐œƒ ) โˆ’ cos (cid:0) ( ๐พ + ) ๐œƒ (cid:1) sin ( ๐œƒ ) . (69)For notational convenience, the fact that ๐œ† ๐พ depends on ๐œƒ is not explicitly indicated. The result in(68) can be summarized as follows: โ€ข Applying ๐พ iterations of the non-boolean amplitude amplification algorithm changes theprobability of measuring ๐‘ฅ by a factor that is a linear function of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . If the secondregister is initially in an equiprobable state, i.e., if ๐‘ ( ๐‘ฅ ) = constant , then the probability ๐‘ ๐พ ( ๐‘ฅ ) after ๐พ iterations is itself a linear function of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . โ€ข If cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) = cos ( ๐œƒ ) for some ๐‘ฅ , the probability of a measurement of the second registeryielding that ๐‘ฅ is unaffected by the algorithm. โ€ข The slope of the linear dependence is โˆ’ ๐œ† ๐พ . โ€“ If ๐œ† ๐พ is positive, the states with cos ( ๐œ‘ ) < cos ( ๐œƒ ) are amplified. Conversely, if ๐œ† ๐พ is negative,states with cos ( ๐œ‘ ) > cos ( ๐œƒ ) are amplified. โ€“ The magnitude of ๐œ† ๐พ controls the degree to which the preferential amplification has beenperformed.From (69), it can be seen that ๐œ† ๐พ is an oscillatory function of ๐พ , centered around cos ( ๐œƒ )/ sin ( ๐œƒ ) ,with an amplitude of / sin ( ๐œƒ ) and a period of ๐œ‹ / ๐œƒ . Recalling from (30) that ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘ ( ๐‘ฅ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) = cos ( ๐œƒ ) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘ ( ๐‘ฅ ) cos ( ๐œƒ ) , (70)one can verify that for any ๐พ โ‰ฅ , the probabilities ๐‘ ๐พ ( ๐‘ฅ ) from (68) add up to 1. on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 13 From the definition of ๐œ† ๐พ in (69), it can be seen that for all ๐พ , ๐œ† ๐พ is bounded from above by ๐œ† optimal defined as ๐œ† ๐พ โ‰ค ๐œ† optimal โ‰ก cos ( ๐œƒ ) + ( ๐œƒ ) = โˆ’ cos ( ๐œƒ ) . (71)The ๐œ† ๐พ = ๐œ† optimal case represents the maximal preferential amplification of lower values of cos ( ๐œ‘ ) achievable by the algorithm. Let ๐‘ optimal ( ๐‘ฅ ) be the state probability function corresponding to ๐œ† ๐พ = ๐œ† optimal . From (68), ๐‘ optimal ( ๐‘ฅ ) = ๐‘ ( ๐‘ฅ ) (cid:20) โˆ’ cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โˆ’ cos ( ๐œƒ ) โˆ’ cos ( ๐œƒ ) (cid:21) . (72)It is interesting to note that ๐‘ optimal ( ๐‘ฅ ) = for inputs ๐‘ฅ with the highest possible value of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) ,namely 1. In other words, ๐‘ optimal reaches the limit set by the non-negativity of probabilities, inthe context of the algorithm under consideration. In the description of the algorithm in Section 2, the number of iterations ๐พ to perform was leftunspecified. Armed with (69), this aspect of the algorithm can now be tackled. Higher values of ๐œ† ๐พ are preferable for the purposes of this paper, namely to preferentially amplify lower values of cos ( ๐œ‘ ) . From (69), it can be seen that ๐œ† ๐พ is monotonically increasing for ๐พ = , , . . . as long as โ‰ค ( ๐พ + ) ๐œƒ โ‰ค ๐œ‹ + ๐œƒ or, equivalently, for โ‰ค ๐พ โ‰ค (cid:106) ๐œ‹ ๐œƒ (cid:107) , (73)where โŒŠ ๐‘ฃ โŒ‹ denotes the floor of ๐‘ฃ . As with the boolean amplitude amplification algorithm of Ref. [5],a good approach is to stop the algorithm just before the first iteration that, if performed, wouldcause value of ๐œ† ๐พ to decrease (from its value after the previous iteration). This leads to the choice หœ ๐พ for the number of iterations to perform, given by หœ ๐พ = (cid:106) ๐œ‹ ๐œƒ (cid:107) . (74)The corresponding value of ๐œ† ๐พ for ๐พ = หœ ๐พ is given by ๐œ† หœ ๐พ = ( ๐œƒ ) (cid:104) cos ( ๐œƒ ) โˆ’ cos (cid:16) (cid:106) ๐œ‹ ๐œƒ (cid:107) ๐œƒ + ๐œƒ (cid:17) (cid:105) . (75)The choice หœ ๐พ in (74) for the number of iterations offers an amplification iff ๐œ‹ > ๐œƒ > or,equivalently, iff < cos ( ๐œƒ ) < . At one of the extremes, namely ๐œƒ = ๐œ‹ / , we have ๐œ† หœ ๐พ = . Theother extreme, namely cos ( ๐œƒ ) = , corresponds to every state ๐‘ฅ with a non-zero amplitude in theinitial state | ๐œ“ โŸฉ having cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) = ; there is no scope for preferential amplification in this case.From (75), it can be seen that ๐œ† หœ ๐พ exactly equals ๐œ† optimal defined in (71) if ๐œ‹ /( ๐œƒ ) is a half-integer.In terms of ๐œƒ , this condition can be written as ๐œƒ โˆˆ (cid:110) ๐œ‹ , ๐œ‹ , ๐œ‹ , . . . (harmonic progression) (cid:111) โ‡’ ๐œ† หœ ๐พ = ๐œ† optimal . (76)For generic values of ๐œƒ , from (75), it can be seen that ๐œ† หœ ๐พ satisfies ( ๐œƒ ) sin ( ๐œƒ ) โ‰ค ๐œ† หœ ๐พ โ‰ค ๐œ† optimal = cos ( ๐œƒ ) + ( ๐œƒ ) . (77)This can be rewritten as ๐œ† optimal (cid:104) โˆ’ tan ( ๐œƒ / ) (cid:105) โ‰ค ๐œ† หœ ๐พ โ‰ค ๐œ† optimal , (78) using the following identity: ( ๐œƒ ) cos ( ๐œƒ ) + = (cid:104) cos ( ๐œƒ / ) โˆ’ sin ( ๐œƒ / ) (cid:105) ( ๐œƒ / ) โˆ’ + = โˆ’ tan ( ๐œƒ / ) . (79)From (78), it can be seen that for small ๐œƒ , ๐œ† หœ ๐พ is approximately equal to ๐œ† optimal , within an O ( ๐œƒ ) relative error. cos ( ๐œ‘ ) After ๐พ Iterations

Let ๐œ‡ ( ๐‘› ) ๐พ be the ๐‘› -th raw moment of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) for a random value of ๐‘ฅ sampled by measuring thesecond register after ๐พ iterations. ๐œ‡ ( ๐‘› ) ๐พ โ‰ก ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘ ๐พ ( ๐‘ฅ ) cos ๐‘› (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . (80)Under this notation, ๐œ‡ ( ) is simply cos ( ๐œƒ ) . From (68), we can write ๐œ‡ ( ๐‘› ) ๐พ in terms of the initialmoments ( ๐พ = ) as ๐œ‡ ( ๐‘› ) ๐พ = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘ ( ๐‘ฅ ) cos ๐‘› (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) (cid:104) โˆ’ ๐œ† ๐พ (cid:104) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โˆ’ cos ( ๐œƒ ) (cid:105) (cid:105) (81a) = ๐œ‡ ( ๐‘› ) โˆ’ ๐œ† ๐พ (cid:104) ๐œ‡ ( ๐‘› + ) โˆ’ ๐œ‡ ( ๐‘› ) ๐œ‡ ( ) (cid:105) . (81b)In particular, let ๐œ‡ ๐พ and ๐œŽ ๐พ represent the expected value and variance, respectively, of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) after ๐พ iterations. ๐œ‡ ๐พ โ‰ก ๐œ‡ ( ) ๐พ , (82) ๐œŽ ๐พ โ‰ก ๐œ‡ ( ) ๐พ โˆ’ (cid:104) ๐œ‡ ( ) ๐พ (cid:105) . (83)Now, the result in (81) for ๐‘› = can be written as ๐œ‡ ๐พ โˆ’ ๐œ‡ = โˆ’ ๐œ† ๐พ ๐œŽ . (84)For ๐œ† ๐พ > , this equation captures the reduction in the expected value of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) resulting from ๐พ iterations of the algorithm. cos ( ๐œ‘ ) After ๐พ Iterations

Let ๐น cos ๐พ ( ๐‘ฆ ) be the probability that cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โ‰ค ๐‘ฆ , for an ๐‘ฅ sampled as per the probability distribution ๐‘ ๐พ . ๐น cos ๐พ is the cumulative distribution function of cos ( ๐œ‘ ) for a measurement after ๐พ iterations, andcan be written as ๐น cos ๐พ ( ๐‘ฆ ) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:104) ๐‘ ๐พ ( ๐‘ฅ ) [ , โˆž) (cid:2) ๐‘ฆ โˆ’ cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:3) (cid:105) , (85) โˆ’ ๐น cos ๐พ ( ๐‘ฆ ) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:104) ๐‘ ๐พ ( ๐‘ฅ ) (cid:16) โˆ’ [ , โˆž) (cid:2) ๐‘ฆ โˆ’ cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:3) (cid:17) (cid:105) , (86)where [ , โˆž) is the Heaviside step function, which equals when its argument is negative and when its argument is non-negative. Using the expression for ๐‘ ๐พ in (68), these can be written as ๐น cos ๐พ ( ๐‘ฆ ) = ๐น cos0 ( ๐‘ฆ ) (cid:16) + ๐œ† ๐พ ๐œ‡ (cid:17) โˆ’ ๐œ† ๐พ ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:110) ๐‘ ( ๐‘ฅ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) [ , โˆž) (cid:2) ๐‘ฆ โˆ’ cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:3) (cid:111) , (87) on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 15 โˆ’ ๐น cos ๐พ ( ๐‘ฆ ) = (cid:16) โˆ’ ๐น cos0 ( ๐‘ฆ ) (cid:17) (cid:16) + ๐œ† ๐พ ๐œ‡ (cid:17) โˆ’ ๐œ† ๐พ ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:110) ๐‘ ( ๐‘ฅ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) (cid:104) โˆ’ [ , โˆž) (cid:2) ๐‘ฆ โˆ’ cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1)(cid:3) (cid:105) (cid:111) . (88)Every ๐‘ฅ that provides a non-zero contribution to the summation in (87) satisfies cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โ‰ค ๐‘ฆ .This fact can be used to write ๐œ† ๐พ โ‰ฅ โ‡’ ๐น cos ๐พ ( ๐‘ฆ ) โ‰ฅ ๐น cos0 ( ๐‘ฆ ) (cid:16) + ๐œ† ๐พ (cid:0) ๐œ‡ โˆ’ ๐‘ฆ (cid:1)(cid:17) . (89)Likewise, every ๐‘ฅ that provides a non-zero contribution to the summation in (88) satisfies cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) > ๐‘ฆ . This can be used to write ๐œ† ๐พ โ‰ฅ โ‡’ โˆ’ ๐น cos ๐พ ( ๐‘ฆ ) โ‰ค (cid:16) โˆ’ ๐น cos0 ( ๐‘ฆ ) (cid:17) (cid:16) + ๐œ† ๐พ (cid:0) ๐œ‡ โˆ’ ๐‘ฆ (cid:1)(cid:17) . (90)The inequalities in (89) and (90) can be summarized as ๐œ† ๐พ โ‰ฅ โ‡’ ๐น cos ๐‘˜ ( ๐‘ฆ ) โ‰ฅ ๐น cos0 ( ๐‘ฆ ) + ๐œ† ๐พ max (cid:110) ๐น cos0 ( ๐‘ฆ ) (cid:0) ๐œ‡ โˆ’ ๐‘ฆ (cid:1) , (cid:16) โˆ’ ๐น cos0 ( ๐‘ฆ ) (cid:17) (cid:0) ๐‘ฆ โˆ’ ๐œ‡ (cid:1)(cid:111) , (91)where the max function represents the maximum of its two arguments. This equation provides alower bound on the probability that a measurement after ๐พ iterations yields a state whose cos ( ๐œ‘ ) value is no higher than ๐‘ฆ . It may be possible to derive stronger bounds (or even the exact expression)for ๐น cos ๐พ ( ๐‘ฆ ) if additional information is known about the initial distribution of cos ( ๐œ‘ ) . For ๐‘ฆ โ‰ค ๐œ‡ ,the first argument of the max function in (91) will be active, and for ๐‘ฆ โ‰ฅ ๐œ‡ , the second argumentwill be active.For the ๐œ† ๐พ โ‰ค case, it can similarly be shown that ๐œ† ๐พ โ‰ค โ‡’ ๐น cos ๐พ ( ๐‘ฆ ) โ‰ค ๐น cos0 ( ๐‘ฆ ) + ๐œ† ๐พ min (cid:110) ๐น cos0 ( ๐‘ฆ ) (cid:0) ๐œ‡ โˆ’ ๐‘ฆ (cid:1) , (cid:16) โˆ’ ๐น cos0 ( ๐‘ฆ ) (cid:17) (cid:0) ๐‘ฆ โˆ’ ๐œ‡ (cid:1)(cid:111) , (92)where the min function represents the minimum of its two arguments. The result in Section 3.6 for the heuristic choice for the number of iterations, namely หœ ๐พ = โŒŠ ๐œ‹ /( ๐œƒ )โŒ‹ ,might be reminiscent of the analogous result for the boolean amplitude amplification algorithm inRef. [5], namely โŒŠ ๐œ‹ /( ๐œƒ ๐‘Ž )โŒ‹ . The similarity between the two results is not accidental. To see this,consider the parameter ๐œƒ in the boolean oracle case, say ๐œƒ bool . Let ๐‘ƒ good0 be the probability for ameasurement on the initial state | ๐œ“ โŸฉ to yield a winning state. From (30), cos ( ๐œƒ bool ) = (cid:104) โˆ’ ร— ๐‘ƒ good0 (cid:105) + (cid:104) ร— (cid:16) โˆ’ ๐‘ƒ good0 (cid:17)(cid:105) = โˆ’ ๐‘ƒ good0 , (93) โ‡’ sin ( ๐œƒ bool / ) = ๐‘ƒ good0 . (94)Thus, in the boolean oracle case โ€ข sin ( ๐œƒ / ) reduces to the initial probability of โ€œsuccessโ€ (measuring a winning state), whichis captured by sin ( ๐œƒ ๐‘Ž ) in Ref. [5], and โ€ข The parameter ๐œƒ used in this paper reduces to the parameter ๐œƒ ๐‘Ž used in Ref. [5], and โŒŠ ๐œ‹ /( ๐œƒ )โŒ‹ reduces to โŒŠ ๐œ‹ /( ๐œƒ ๐‘Ž )โŒ‹ .In this way, the results of Section 3 in general, and Section 3.6 in particular, can be seen asgeneralizations of the corresponding results in Ref. [5]. Q iter (single iteration) . . . . . . register 1(ancilla) : |+โŸฉ ๐‘‹ U ๐œ‘ S ๐šฟ (ignored)register 2: | ๐œ“ โŸฉ Final state

Fig. 6. Quantum circuit for the alternative formulation, in Section 3.10, of the non-boolean amplitudeamplification algorithm.

Algorithm 2

Alternative formulation, in Section 3.10, of the non-boolean amplitude amplificationalgorithm. initialize | ๐šฟ โŸฉ : = | ๐šฟ โŸฉ for ๐‘˜ : = to ๐พ do update | ๐šฟ โŸฉ : = S ๐šฟ U ๐œ‘ [ ๐‘‹ โŠ— ๐ผ ] | ๐šฟ โŸฉ end for Measure the ancilla in the 0/1 basis.

In the formulation of the non-boolean amplitude amplification algorithm in Section 2, an ancillaqubit (first register) was included solely for the purpose of making the quantity (cid:10) ๐šฟ (cid:12)(cid:12) U ๐œ‘ (cid:12)(cid:12) ๐šฟ (cid:11) = โŸจ ๐šฟ | ๐œถ โŸฉ real-valued. If, in a particular use case, it is guaranteed that (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) will be real-valued(or have a negligible imaginary part ) even without introducing the ancilla, then the algorithmdescribed in Section 2 can be used without the ancilla: alternate between applying ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ during theodd iterations and ๐‘† ๐œ“ ๐‘ˆ โ€  ๐œ‘ during the even iterations. In other words, the properties and structure oftwo-register system were not exploited in the algorithm description, beyond making (cid:10) ๐šฟ (cid:12)(cid:12) U ๐œ‘ (cid:12)(cid:12) ๐šฟ (cid:11) real-valued.However, from (33) and (34), it can be seen that the states | ๐œถ โŸฉ = U ๐œ‘ | ๐šฟ โŸฉ and | ๐œท โŸฉ = U โ€  ๐œ‘ | ๐šฟ โŸฉ arerelated by | ๐œท โŸฉ = [ ๐‘‹ โŠ— ๐ผ ] | ๐œถ โŸฉ , | ๐œถ โŸฉ = [ ๐‘‹ โŠ— ๐ผ ] | ๐œท โŸฉ , (95)where ๐‘‹ is the bit-flip or the Pauli-X operator. This can be exploited to avoid having two separatecasesโ€” ๐‘˜ being odd and evenโ€”in the final expression for | ๐šฟ ๐‘˜ โŸฉ in (56). The expression for both casescan be made the same by acting the Pauli-X gate on the ancilla, once at the end, if the total numberof iterations is even.More interestingly, the relationship between | ๐œถ โŸฉ and | ๐œท โŸฉ can be used to avoid having two differentoperations in the first place, for the odd and even iterations. This leads to the following alternativeformulation of the non-boolean amplitude amplification algorithm: During each iteration, odd oreven, act the same operator Q iter defined by Q iter โ‰ก S ๐šฟ U ๐œ‘ [ ๐‘‹ โŠ— ๐ผ ] . (96)This alternative formulation is depicted as a circuit in Figure 2 and as a pseudocode in Algorithm 2. This could be achieved, e.g, by replacing the function ๐œ‘ ( ๐‘ฅ ) with ๐œ‘ โ€ฒ ( ๐‘ฅ ) = ๐‘Ÿ ( ๐‘ฅ ) ๐œ‘ ( ๐‘ฅ ) , where ๐‘Ÿ : { , , . . . ๐‘ โˆ’ } โ†’ {โˆ’ , + } is a random function independent of ๐œ‘ ( ๐‘ฅ ) , with mean (for ๐‘ฅ sampled by measuring | ๐œ“ โŸฉ ). on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 17 From (51), (52), and (95), the action of Q iter on | ๐šฟ โŸฉ and | ๐œถ โŸฉ can be derived as follows: Q iter | ๐šฟ โŸฉ = S ๐šฟ U ๐œ‘ | ๐šฟ โŸฉ = ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ , (97) Q iter | ๐œถ โŸฉ = S ๐šฟ U ๐œ‘ | ๐œท โŸฉ = | ๐šฟ โŸฉ . (98)Let (cid:12)(cid:12) ๐šฟ alt ๐‘˜ (cid:11) be the state of the two-register system after ๐‘˜ iterations under this alternative formulation(before any measurement of the ancilla). (cid:12)(cid:12) ๐šฟ alt ๐‘˜ (cid:11) โ‰ก Q ๐‘˜ iter | ๐šฟ โŸฉ . (99)Using similar manipulations as in Appendix A, (cid:12)(cid:12) ๐šฟ alt ๐‘˜ (cid:11) can be expressed, for all ๐‘˜ โ‰ฅ , as (cid:12)(cid:12) ๐šฟ alt ๐‘˜ (cid:11) = ( ๐œƒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) | ๐šฟ โŸฉ โˆ’ sin ( ๐‘˜๐œƒ ) | ๐œถ โŸฉ (cid:105) . (100)Note that this expression for (cid:12)(cid:12) ๐šฟ alt ๐‘˜ (cid:11) is almost identical to the expression for | ๐šฟ ๐‘˜ โŸฉ in (56), but withouttwo separate cases for the odd and even values of ๐‘˜ . Much of the analysis of the original formulationof the algorithm in Section 3 holds for the alternative formulation as well, including the expressionsfor the state probabilities ๐‘ ๐พ ( ๐‘ฅ ) , mean ๐œ‡ ๐พ , raw moments ๐œ‡ ( ๐‘› ) ๐พ , and the cumulative distributionfunction ๐น cos ๐พ .In addition to simplifying the amplification algorithm (by using the same operation for everyiteration), the Q iter operator used in this subsection allows for a clearer presentation of the quantummean estimation algorithm, which will be introduced next. The goal of the quantum mean estimation algorithm is to estimate the expected value of ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) for ๐‘ฅ sampled by measuring a given superposition state | ๐œ“ โŸฉ . Let ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) denote this expected value. ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) โ‰ก (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) . (101)This can be written as ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) = Re (cid:104) ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) (cid:105) + ๐‘– Im (cid:104) ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) (cid:105) , (102)where the real and imaginary parts are given by Re (cid:104) ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) (cid:105) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) , (103) Im (cid:104) ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) (cid:105) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) sin (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . (104)The mean estimation can therefore be performed in two partsโ€”one for estimating the mean of cos ( ๐œ‘ ) , and the other for estimating the mean of sin ( ๐œ‘ ) . Note that the expectation of cos ( ๐œ‘ ) underthe state | ๐œ“ โŸฉ is precisely cos ( ๐œƒ ) defined in (30). cos ( ๐œ‘ ) The connection shown in Section 3.9 between the parameter ๐œƒ and the parameter ๐œƒ ๐‘Ž used inRef. [5] serves as the intuition behind the quantum mean estimation algorithm of this paper. Inthe amplitude estimation algorithm of Ref. [5], the parameter ๐œƒ ๐‘Ž is estimated using QPE. Theestimate for ๐œƒ ๐‘Ž is then turned into an estimate for the initial winning probability. Likewise, here The estimation of ๐œƒ ๐‘Ž is only (needed to be) performed up to a two-fold ambiguity of { ๐œƒ ๐‘Ž , ๐œ‹ โˆ’ ๐œƒ ๐‘Ž } . the basic idea is to estimate the parameter ๐œƒ defined in (30) using QPE. The estimate for ๐œƒ canthen be translated into an estimate for the initial expected value of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) , namely cos ( ๐œƒ ) . Therest of this subsection will actualize this intuition into a working algorithm.The key observation is that | ๐šฟ โŸฉ can be written as | ๐šฟ โŸฉ = | ๐œผ + โŸฉ โˆ’ | ๐œผ โˆ’ โŸฉโˆš , (105)where | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ are given by | ๐œผ ยฑ โŸฉ = ๐‘’ ยฑ ๐‘–๐œƒ | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ ๐‘– โˆš ( ๐œƒ ) . (106)The expressions for | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ in (106) can be used to verify (105). Crucially, | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ areunit normalized eigenstates of the unitary operator Q iter , with eigenvalues ๐‘’ ๐‘–๐œƒ and ๐‘’ โˆ’ ๐‘–๐œƒ , respectively. Q iter | ๐œผ ยฑ โŸฉ = ๐‘’ ยฑ ๐‘–๐œƒ | ๐œผ ยฑ โŸฉ , (107) โŸจ ๐œผ ยฑ | ๐œผ ยฑ โŸฉ = . (108)The properties of | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ in (107) and (108) can be verified using (97), (98), and (106), asshown in Appendix C. The observations in (105) and (107) lead to the following algorithm forestimating cos ( ๐œƒ ) :(1) Perform the QPE algorithm with โ€ข the two-register operator Q iter serving the role of the unitary operator under consideration,and โ€ข the superposition state | ๐šฟ โŸฉ in place of the eigenstate required by the QPE algorithm asinput.Let the output of this step, appropriately scaled to be an estimate of the phase angle in therange [ , ๐œ‹ ) , be ^ ๐œ” .(2) Return cos (cid:0) ^ ๐œ” (cid:1) as the estimate for cos ( ๐œƒ ) , i.e., the real part of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) . Proof of correctness of the algorithm: | ๐šฟ โŸฉ is a superposition of the eigenstates | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ ofthe unitary operator Q iter . This implies that ^ ๐œ” will either be an estimate for the phase angle of | ๐œผ + โŸฉ ,namely ๐œƒ , or an estimate for the phase angle of | ๐œผ โˆ’ โŸฉ , namely ๐œ‹ โˆ’ ๐œƒ . Since, cos ( ๐œ‹ โˆ’ ๐œƒ ) = cos ( ๐œƒ ) ,it follows that cos (cid:0) ^ ๐œ” (cid:1) is an estimate for cos ( ๐œƒ ) . ๐‘’ ๐‘–๐œ‘ The algorithm for estimating the expected value of cos ( ๐œ‘ ) in the previous subsection can bere-purposed to estimate the expected value of sin ( ๐œ‘ ) by using the fact that sin ( ๐œ‘ ) = cos ( ๐œ‘ โˆ’ ๐œ‹ / ) . (109) The estimation of ๐œƒ is only (needed to be) performed up to a two-fold ambiguity of { ๐œƒ, ๐œ‹ โˆ’ ๐œƒ } . The forms of the eigenstates | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ in (106) can be guessed from the form of the matrix ๐‘† ๐œƒ in Appendix A. Theycan also be guessed from (100), by rewriting the sin functions in terms of complex exponential functions. If the circuit implementation of Q iter is wrong by an overall (state independent) phase ๐œ™ err , then the estimate for cos ( ๐œƒ ) is cos ( ^ ๐œ” โˆ’ ๐œ™ err ) . This is important, for example, if the operation (cid:2) | , โŸฉ โŸจ , | โˆ’ I (cid:3) is only implemented up to a factor of โˆ’ , i.e., with ๐œ™ err = ๐œ‹ . Note that the final state probabilities under the non-boolean amplitude amplification algorithm areunaffected by such an overall phase error. If ๐œƒ = , the phase angle being estimated is for both | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ . For ๐œƒ โ‰  , ^ ๐œ” will be an estimate for either ๐œƒ or ๐œ‹ โˆ’ ๐œƒ with equal probability , but this detail is not important. Since ๐œƒ lies in [ , ๐œ‹ ] and ๐œ‹ โˆ’ ๐œƒ lies in [ ๐œ‹, ๐œ‹ ] , the output ^ ๐œ” can be converted into an estimate for ๐œƒ alone. But this isnot necessary. on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 19 Circuit for U ๐œ‘ โˆ’ ๐œ‹ / register 1(ancilla) U ๐œ‘ ๐‘… ๐œ‹ / ๐‘‹ ๐‘… โˆ’ ๐œ‹ / ๐‘‹ register 2 Fig. 7. Quantum circuit for an implementation of U ๐œ‘ โˆ’ ๐œ‹ / using U ๐œ‘ . In other words, the imaginary part of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) is the real part of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘– ( ๐œ‘ โˆ’ ๐œ‹ / ) (cid:3) . By using the oracle U ๐œ‘ โˆ’ ๐œ‹ / (for the function ๐œ‘ โˆ’ ๐œ‹ / ), instead of U ๐œ‘ , in the mean estimation algorithm of Section 4.1,the imaginary part of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) can also be estimated. This completes the estimation of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) .For concreteness, U ๐œ‘ โˆ’ ๐œ‹ / can be explicitly written as U ๐œ‘ โˆ’ ๐œ‹ / = ๐‘’ โˆ’ ๐‘–๐œ‹ / | โŸฉ โŸจ | โŠ— ๐‘ˆ ๐œ‘ + ๐‘’ ๐‘–๐œ‹ / | โŸฉ โŸจ | โŠ— ๐‘ˆ โ€  ๐œ‘ . (110)An implementation of U ๐œ‘ โˆ’ ๐œ‹ / using the oracle U ๐œ‘ , the bit-flip operator ๐‘‹ , and the phase-shiftoperator ๐‘… ๐œ™ is shown in Figure 7.Note that the algorithm does not, in any way, use the knowledge that {| โŸฉ , . . . , | ๐‘ โˆ’ โŸฉ} is aneigenbasis of ๐‘ˆ ๐œ‘ . So, this algorithm can be used to estimate โŸจ ๐œ“ | ๐‘ˆ | ๐œ“ โŸฉ for any unitary operator ๐‘ˆ . The speedup offered by the quantum mean estimation algorithm over classical methods will bediscussed here, in the context of estimating the mean of cos ( ๐œ‘ ) alone. The discussion can beextended in a straightforward way to the estimation of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) . For an arbitrary function ๐œ‘ and a knownsampling distribution ๐‘ ( ๐‘ฅ ) for the inputs ๐‘ฅ , one classical approach to finding the mean of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) is to sequentially query the value of ๐œ‘ ( ๐‘ฅ ) for all the inputs, and use the query results to compute themean. Let the permutation ( ๐‘ฅ , ๐‘ฅ , . . . , ๐‘ฅ ๐‘ โˆ’ ) of the inputs ( , , . . . , ๐‘ โˆ’ ) be the order in whichthe inputs are queried. The range of allowed values of cos ( ๐œƒ ) , based only on results for the first ๐‘ž inputs, is given by (cid:34) ๐‘ž โˆ’ โˆ‘๏ธ ๐‘— = ๐‘ ( ๐‘ฅ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ๐‘— ) (cid:1) โˆ’ ๐‘ โˆ’ โˆ‘๏ธ ๐‘— = ๐‘ž ๐‘ ( ๐‘ฅ ) (cid:35) โ‰ค cos ( ๐œƒ ) โ‰ค (cid:34) ๐‘ž โˆ’ โˆ‘๏ธ ๐‘— = ๐‘ ( ๐‘ฅ ) cos (cid:0) ๐œ‘ ( ๐‘ฅ ๐‘— ) (cid:1) + ๐‘ โˆ’ โˆ‘๏ธ ๐‘— = ๐‘ž ๐‘ ( ๐‘ฅ ) (cid:35) . (111)These bounds are derived by setting the values of cos ( ๐œ‘ ) for all the unqueried inputs to their highestand lowest possible values, namely + and โˆ’ . The range of allowed values of cos ( ๐œƒ ) shrinks asmore and more inputs are queried. In particular, if ๐‘ ( ๐‘ฅ ) is equal for all the inputs ๐‘ฅ , the widthof the allowed range (based on ๐‘ž queries) is given by ( ๐‘ โˆ’ ๐‘ž )/ ๐‘ . This strategy will take O ( ๐‘ ) queries before the width of the allowed range reduces to even, say, 1. Thus, this strategy will notbe feasible for large values of ๐‘ .A better classical approach is to probabilistically estimate the expected value as follows:(1) Independently sample ๐‘ž random inputs ( ๐‘ฅ , . . . ๐‘ฅ ๐‘ž ) as per the distribution ๐‘ .(2) Return the sample mean of cos ( ๐œ‘ ) over the random inputs as an estimate for cos ( ๐œƒ ) .Under this approach, the standard deviation of the estimate scales as โˆผ ๐œŽ /โˆš ๐‘ž , where ๐œŽ is thestandard deviation of cos ( ๐œ‘ ) under the distribution ๐‘ . Note that one call to the operator Q iter corresponds to O ( ) calls to ๐ด and the oracles ๐‘ˆ ๐œ‘ and ๐‘ˆ โ€  ๐œ‘ . Let ๐‘ž be the number of times the(controlled) Q iter operation is performed during the QPE subroutine. As ๐‘ž increases, the uncertaintyon the estimate for the phase-angle ๐œƒ (up to a two-fold ambiguity) falls at the rate of O ( / ๐‘ž ) [7].Consequently, the uncertainty on cos ( ๐œƒ ) also falls at the rate of O ( / ๐‘ž ) . This represents a quadraticspeedup over the classical, probabilistic approach, under which the error falls as O ( /โˆš ๐‘ž ) . Notethat the variance of the estimate for cos ( ๐œƒ ) is independent of a) the size of input space ๐‘ , and b)the variance ๐œŽ of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) under the distribution ๐‘ ( ๐‘ฅ ) . It only depends on the true value of cos ( ๐œƒ ) and the number of queries ๐‘ž performed during the QPE subroutine. In this section, the non-boolean amplitude amplification algorithm and the mean estimationalgorithm will both be demonstrated using a toy example. Let the input to the oracle ๐‘ˆ ๐œ‘ , i.e., thesecond register, contain 8 qubits. This leads to = basis input states, namely | โŸฉ , . . . , | โŸฉ .Let the toy function ๐œ‘ ( ๐‘ฅ ) be ๐œ‘ ( ๐‘ฅ ) = ๐‘ฅ ๐œ‹ , for ๐‘ฅ = , , . . . , . (112)The largest phase-shift applied by the corresponding oracle ๐‘ˆ ๐œ‘ on any basis state is ๐œ‹ / , for the state | โŸฉ . Since, cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) is monotonically decreasing in ๐‘ฅ , the goal of the amplitude amplificationalgorithm is to amplify the probabilities of higher values of ๐‘ฅ .Let the initial state, from which the amplification is performed, be the uniform superpositionstate | ๐‘  โŸฉ . | ๐œ“ โŸฉ = | ๐‘  โŸฉ = โˆš โˆ‘๏ธ ๐‘ฅ = | ๐‘ฅ โŸฉ . (113)Such simple forms for the oracle function and the initial state allow for a good demonstration ofthe algorithms.For this toy example, from (30), cos ( ๐œƒ ) and ๐œƒ are given by cos ( ๐œƒ ) = โˆ‘๏ธ ๐‘ฅ = cos (cid:16) ๐‘ฅ ๐œ‹ (cid:17) โ‰ˆ . , (114) ๐œƒ โ‰ˆ . . (115)Figure 8 shows the value of ๐œ† ๐พ , from (69), for the first few values of ๐พ . The heuristic choice for thetotal number of iterations หœ ๐พ = โŒŠ ๐œ‹ /( ๐œƒ )โŒ‹ is 3 for this example, as can also be seen from Figure 8. For this toy example, the quantum circuit for the non-boolean amplitude amplification algorithmwas implemented in Qiskit [22] for three different values of the total number of iterations ๐พ ,namely ๐พ = , , and . In each case, the resulting circuit was simulated (and measured) timesusing Qiskitโ€™s QASM simulator. The estimated measurement frequencies for the observations ๐‘ฅ = , , . . . , are shown in Figure 9 as solid, unfilled, histogramsโ€”the colors green, red, andblue correspond to ๐พ = , , and , respectively. The expected measurement frequencies, namely ๐‘ ๐พ ( ๐‘ฅ ) from (68), are also shown in Figure 9 as dashed curves, and are in good agreement with thecorresponding histograms.As can be seen from Figure 9, in each case, the algorithm preferentially amplifies lower values of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) or, equivalently, higher values of ๐‘ฅ . This is expected from the fact that ๐œ† ๐พ > for allthree values of ๐พ . Furthermore, as ๐พ increases from 0 to หœ ๐พ = , the preferential amplification grows on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 21 K K cos( )sin ( ) cos( ) + 1sin ( ) cos( ) 1sin ( ) Fig. 8. Plot showing ๐œ† ๐พ for ๐พ = , , . . . , , for the toy example considered in Section 5. The red dotscorrespond to the different integer values of ๐พ . The black solid curve depicts the sinusoidal dependence of ๐œ† ๐พ on ๐พ . The dotted lines indicate that ๐œ† ๐พ oscillates around cos ( ๐œƒ )/ sin ( ๐œƒ ) with an amplitude of / sin ( ๐œƒ ) anda period of ๐œ‹ / ๐œƒ (in ๐พ values). x F r e q u e n c y K=1 K = K = p ( x ) = 1/2 x = () Observed for K = 1Observed for K = 2Observed for K = 3 Prediction for K = 1Prediction for K = 2Prediction for K = 3 Fig. 9. The solid histograms show the observed measurement frequencies of the different values of ๐‘ฅ โˆˆ{ , . . . , } after performing the non-boolean amplitude amplification algorithm. The green, red, and bluesolid histograms correspond to the total number of iterations ๐พ being 1, 2, and 3, respectively. In each case,the observed frequencies are based on simulating the circuit for the algorithm times, i.e., shots. Thedashed curves, almost coincident with their corresponding solid histograms, show the predictions ๐‘ ๐พ ( ๐‘ฅ ) (forthe measurement frequencies) computed using (68) . While ๐‘ ๐พ ( ๐‘ฅ ) is technically defined only for the integervalues of ๐‘ฅ , here the dashed curves are interpolated for non-integer values of ๐‘ฅ using (68) . Phase estimate F r e q u e n c y / b i n - w i d t h = = Phase estimate F r e q u e n c y / b i n - w i d t h = = Fig. 10. Histograms showing the observed frequency/bin-width for the different phase estimation outcomes ^ ๐œ” , for the toy example considered in Section 5. The left and right panels show the frequency/bin-width ( ๐‘ฆ -axis)on linear and logarithmic scales, respectively. In both panels, the green-dashed and red-solid histogramscorrespond to using and qubits to measure the phase, respectively. The purple-dotted vertical lines onboth panels correspond to ^ ๐œ” = ๐œƒ and ^ ๐œ” = ๐œ‹ โˆ’ ๐œƒ . In each histogram, the last bin (ending at ๐œ‹ ) is simply acontinuation of the first bin (starting at ), and corresponds to ^ ๐œ” = . stronger. Note that the probabilities of the ๐‘ฅ -s for which cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) โ‰ˆ cos ( ๐œƒ ) are left approximatelyunchanged by the algorithm, as indicated by the purple-dotted crosshair in Figure 9. Only the estimation of cos ( ๐œƒ ) , i.e., the real part of ๐ธ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) is demonstrated here. The imaginary partcan also be estimated using the same technique, as described in Section 4.2.Let ๐‘€ be the number of qubits used in the QPE subroutine of the mean estimation algorithm, tocontain the phase information. This corresponds to performing the (controlled) Q iter operation ๐‘€ โˆ’ times during the QPE subroutine. Note that the estimated phase ^ ๐œ” can only take the followingdiscrete values [7]: ^ ๐œ” โˆˆ (cid:26) ๐œ‹ ๐‘— ๐‘€ (cid:12)(cid:12)(cid:12) ๐‘— โˆˆ (cid:8) , . . . , ๐‘€ โˆ’ (cid:9) (cid:27) . (116)In this way, the value of ๐‘€ controls the precision of the estimated phase and, by extension, theprecision of the estimate for cos ( ๐œƒ ) โ€”the higher the value of ๐‘€ , the higher the precision.Two different quantum circuits were implemented, again using Qiskit, for the mean estimationalgorithm; one with ๐‘€ = and the other with ๐‘€ = . Each circuit was simulated (and measured)using Qiskitโ€™s QASM simulator times, to get a sample of ^ ๐œ” values, all in the range [ , ๐œ‹ ) .The observed frequencies (scaled by 1/bin-width) of the different values of ^ ๐œ” are shown ashistograms on a linear scale in the left panel of Figure 10, and on a logarithmic scale in the rightpanel. Here the bin-width of the histograms is given by ๐œ‹ / ๐‘€ , which is the difference betweenneighboring allowed values of ^ ๐œ” . The green-dashed and red-solid histograms in Figure 10 correspondto the circuits with and phase measurement qubits, respectively. The exact values of ๐œƒ and ๐œ‹ โˆ’ ๐œƒ for this toy example are indicated with vertical purple-dotted lines. In both cases ( ๐‘€ = and ๐‘€ = ), the observed frequencies peak near the exact values of ๐œƒ and ๐œ‹ โˆ’ ๐œƒ , demonstratingthat ^ ๐œ” is a good estimate for them, up to a two-fold ambiguity. Furthermore, as expected, usingmore qubits for estimating the phase leads to a more precise estimate.Figure 11 shows the observed frequencies (scaled by 1/bin-width) of the different values of cos ( ^ ๐œ” ) , which is the estimate for the mean cos ( ๐œƒ ) . As with Figure 10, a) the green-dashed and on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 23 Mean estimate cos( ) F r e q u e n c y / b i n - w i d t h c o s () = c o s () Mean estimate cos( ) F r e q u e n c y / b i n - w i d t h c o s () = c o s () Fig. 11. Histograms showing the observed frequency/bin-width for the different values of cos ( ^ ๐œ” ) , for the toyexample considered in Section 5. The left and right panels show the frequency/bin-width ( ๐‘ฆ -axis) on linearand logarithmic scales, respectively. In both panels, the green-dashed and red-solid histograms correspond tousing 4 and 8 qubits respectively. The purple-dotted vertical lines correspond to cos ( ^ ๐œ” ) = cos ( ๐œƒ โ€ฒ ) . The bins ofthe cos ( ^ ๐œ” ) histograms are induced by the equal-width bins of the corresponding ^ ๐œ” histograms in Figure 10. red-solid histograms correspond to 4 and 8 phase measurement qubits, respectively, and b) the leftand right panels show the histograms on linear and logarithmic scales, respectively. In each panel,the exact value of cos ( ๐œƒ ) is also indicated as a vertical purple-dotted line. As can be seen fromFigure 11, the observed frequencies peak near the exact value of cos ( ๐œƒ ) , indicating that cos ( ^ ๐œ” ) isa good estimate for the same. Both algorithms introduced this in this paper so far, namely โ€ข the amplitude algorithm of Section 2 and its alternative formulation in Section 3.10, and โ€ข the mean estimation algorithm of Section 4use an ancilla qubit to make the quantity (cid:10) ๐šฟ (cid:12)(cid:12) U ๐œ‘ (cid:12)(cid:12) ๐šฟ (cid:11) real-valued. This is important for achievingthe respective goals of the algorithms. However, the same algorithms can be performed without theancilla, albeit to achieve different goals, which may be relevant in some use cases. In this section,the ancilla-free versions of the algorithms will be briefly described and analyzed. The ancilla-free version of the amplitude amplification algorithm is almost identical to the algorithmintroduced in Section 2. The only difference is that in the ancilla-free version, the single-register op-erators ๐‘† ๐œ“ , ๐‘ˆ ๐œ‘ , and ๐‘ˆ โ€  ๐œ‘ are used in place of the two-register operators S ๐šฟ , U ๐œ‘ , and U โ€  ๐œ‘ , respectively.For concreteness, the algorithm proceeds as follows:(1) Initialize a system in the state | ๐œ“ โŸฉ .(2) Act the operation ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ during the odd iterations and ๐‘† ๐œ“ ๐‘ˆ โ€  ๐œ‘ during the even iterations. The upward trends near the left ( โˆ’ ) and right ( + ) edges of the plots in Figure 11 are artifacts caused by the Jacobiandeterminant for the map from ^ ๐œ” to cos ( ^ ๐œ” ). Analogous to the two-register states | ๐œถ โŸฉ and | ๐œท โŸฉ in (31) and (32), let the single-register states | ๐›ผ โ€ฒ โŸฉ and | ๐›ฝ โ€ฒ โŸฉ be defined as | ๐›ผ โ€ฒ โŸฉ โ‰ก ๐‘ˆ ๐œ‘ | ๐œ“ โŸฉ = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) ๐‘Ž ( ๐‘ฅ ) | ๐‘ฅ โŸฉ , (117) | ๐›ฝ โ€ฒ โŸฉ โ‰ก ๐‘ˆ โ€  ๐œ‘ | ๐œ“ โŸฉ = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = ๐‘’ โˆ’ ๐‘–๐œ‘ ( ๐‘ฅ ) ๐‘Ž ( ๐‘ฅ ) | ๐‘ฅ โŸฉ . (118)Analogous to ๐œƒ defined in (30), let ๐œƒ โ€ฒ โˆˆ [ , ๐œ‹ / ] and ๐›ฟ โˆˆ [ , ๐œ‹ ) be implicitly defined by cos ( ๐œƒ โ€ฒ ) ๐‘’ ๐‘–๐›ฟ โ‰ก โŸจ ๐œ“ | ๐›ผ โ€ฒ โŸฉ = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) ๐‘’ ๐‘–๐œ‘ ( ๐‘ฅ ) . (119) cos ( ๐œƒ โ€ฒ ) and ๐›ฟ are the magnitude and phase, respectively, of the initial (i.e., ๐‘ฅ sampled from | ๐œ“ โŸฉ )expected value of ๐‘’ ๐‘–๐œ‘ . An important difference between ๐œƒ โ€ฒ and ๐œƒ is that cos ( ๐œƒ โ€ฒ ) is restricted to benon-negative, unlike cos ( ๐œƒ ) , which can be positive, negative, or zero.Note that cos ( ๐œƒ โ€ฒ ) can be written as cos ( ๐œƒ โ€ฒ ) = ๐‘ โˆ’ โˆ‘๏ธ ๐‘ฅ = (cid:12)(cid:12) ๐‘Ž ( ๐‘ฅ ) (cid:12)(cid:12) ๐‘’ ๐‘–๐œ‘ โ€ฒ ( ๐‘ฅ ) , (120)where ๐œ‘ โ€ฒ ( ๐‘ฅ ) is given by ๐œ‘ โ€ฒ ( ๐‘ฅ ) โ‰ก ๐œ‘ ( ๐‘ฅ ) โˆ’ ๐›ฟ . (121)Acting the oracle ๐‘ˆ ๐œ‘ for the function ๐œ‘ can be thought of as acting the oracle ๐‘ˆ ๐œ‘ โ€ฒ for the function ๐œ‘ โ€ฒ , followed performing a global, state independent phase-shift of ๐›ฟ . Furthermore, from (120), it canseen that (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ โ€ฒ (cid:12)(cid:12) ๐œ“ (cid:11) is real-valued. This observation can be used to re-purpose the analysis inSection 3 for the ancilla-free version; the corresponding results are presented here without explicitproofs.Let (cid:12)(cid:12) ๐œ“ โ€ฒ ๐‘˜ (cid:11) be the state of the system of the after ๐‘˜ โ‰ฅ iterations of the ancilla-free algorithm.Analogous to (56), (cid:12)(cid:12) ๐œ“ โ€ฒ ๐‘˜ (cid:11) can be written as (cid:12)(cid:12) ๐œ“ โ€ฒ ๐‘˜ (cid:11) = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ๐‘’ ๐‘–๐›ฟ sin ( ๐œƒ โ€ฒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ โ€ฒ (cid:1) | ๐œ“ โŸฉ โˆ’ sin ( ๐‘˜๐œƒ โ€ฒ ) ๐‘’ โˆ’ ๐‘–๐›ฟ | ๐›ผ โ€ฒ โŸฉ (cid:105) , if ๐‘˜ is odd , ( ๐œƒ โ€ฒ ) (cid:104) sin (cid:0) ( ๐‘˜ + ) ๐œƒ โ€ฒ (cid:1) | ๐œ“ โŸฉ โˆ’ sin ( ๐‘˜๐œƒ โ€ฒ ) ๐‘’ ๐‘–๐›ฟ | ๐›ฝ โ€ฒ โŸฉ (cid:105) , if ๐‘˜ is even . (122)Let ๐‘ โ€ฒ ๐พ ( ๐‘ฅ ) be probability of measuring the system in state ๐‘ฅ after ๐พ iterations. Analogous to (68), ๐‘ โ€ฒ ๐พ ( ๐‘ฅ ) can be written as ๐‘ โ€ฒ ๐พ ( ๐‘ฅ ) = ๐‘ ( ๐‘ฅ ) (cid:110) โˆ’ ๐œ† โ€ฒ ๐พ (cid:104) cos (cid:0) ๐œ‘ ( ๐‘ฅ ) โˆ’ ๐›ฟ (cid:1) โˆ’ cos ( ๐œƒ โ€ฒ ) (cid:105) (cid:111) , (123)where the ๐œ† โ€ฒ ๐พ , the ancilla-free analogue of ๐œ† ๐พ , is given by ๐œ† โ€ฒ ๐พ = ( ๐พ๐œƒ โ€ฒ ) sin (cid:0) ( ๐พ + ) ๐œƒ โ€ฒ (cid:1) sin ( ๐œƒ โ€ฒ ) = cos ( ๐œƒ โ€ฒ ) โˆ’ cos (cid:0) ( ๐พ + ) ๐œƒ โ€ฒ (cid:1) sin ( ๐œƒ โ€ฒ ) . (124)In this case, the probability amplification factor ๐‘ โ€ฒ ๐พ / ๐‘ is linear in cos ( ๐œ‘ โˆ’ ๐›ฟ ) . on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 25 The ancilla-free mean estimation algorithm described in this subsection can estimate the magni-tude of โŸจ ๐œ“ | ๐‘ˆ | ๐œ“ โŸฉ for a given unitary operator ๐‘ˆ . Here the algorithm is presented in terms ofthe oracle ๐‘ˆ ๐œ‘ , and the goal of the algorithm is to estimate cos ( ๐œƒ โ€ฒ ) from (119), i.e., the magnitude of ๐ธ ๐œ“ (cid:2) ๐‘’ ๐‘–๐œ‘ (cid:3) โ‰ก (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) .Let the unitary operator ๐‘„ evenodd be defined as ๐‘„ evenodd โ‰ก ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ ๐‘† ๐œ“ ๐‘ˆ โ€  ๐œ‘ . (125)Its action corresponds to performing the (ancilla-free) even-iteration operation once, followed bythe odd-iteration operation. Analogous to (105) and (106), the state | ๐œ“ โŸฉ can be written as | ๐œ“ โŸฉ = (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) โˆ’ (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) โˆš , (126)where (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) and (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) are given by (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ | ๐œ“ โŸฉ โˆ’ ๐‘’ โˆ’ ๐‘–๐›ฟ | ๐›ผ โ€ฒ โŸฉ ๐‘– โˆš ( ๐œƒ โ€ฒ ) . (127) (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) and (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) are unit-normalized eigenstates of ๐‘„ evenodd with eigenvalues ๐‘’ ๐‘–๐œƒ โ€ฒ and ๐‘’ โˆ’ ๐‘–๐œƒ โ€ฒ , respec-tively. ๐‘„ evenodd (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) , (128) (cid:10) ๐œ‚ โ€ฒยฑ (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = . (129)These properties of (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) and (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) in (128) and (129) are proved in Appendix D. The observations in(126) and (128) lead to the following algorithm for estimating cos ( ๐œƒ โ€ฒ ) :(1) Perform the QPE algorithm with โ€ข ๐‘„ evenodd serving the role of the unitary operator under consideration, and โ€ข the superposition state | ๐œ“ โŸฉ in place of the eigenstate required by the QPE algorithm asinput.Let the output of this step, appropriately scaled to be an estimate of the phase angle in therange [ , ๐œ‹ ) , be ^ ๐œ” .(2) Return (cid:12)(cid:12) cos (cid:0) ^ ๐œ” / (cid:1)(cid:12)(cid:12) as the estimate for cos ( ๐œƒ โ€ฒ ) . Proof of correctness of the algorithm:

In this version of the algorithm, ^ ๐œ” will be an estimatefor either ๐œƒ or ๐œ‹ โˆ’ ๐œƒ . So, ^ ๐œ” / will be an estimate for either ๐œƒ โ€ฒ or ๐œ‹ โˆ’ ๐œƒ โ€ฒ . Since, a) cos ( ๐œ‹ โˆ’ ๐œƒ โ€ฒ ) = โˆ’ cos ( ๐œƒ โ€ฒ ) , and b) cos ( ๐œƒ โ€ฒ ) is a non-negative number, it follows that (cid:12)(cid:12) cos (cid:0) ^ ๐œ” / (cid:1)(cid:12)(cid:12) is an estimate for cos ( ๐œƒ โ€ฒ ) . In this paper, two new oracular quantum algorithms were introduced and analyzed. The action ofthe oracle ๐‘ˆ ๐œ‘ on a basis state | ๐‘ฅ โŸฉ is to apply a state dependent, real-valued phase shift ๐œ‘ ( ๐‘ฅ ) .The first algorithm is the non-boolean amplitude amplification algorithm, which, starting froman initial superposition state | ๐œ“ โŸฉ , preferentially amplifies the amplitudes of the basis states basedon the value of cos ( ๐œ‘ ) . In this paper, the goal of the algorithm was chosen to be to preferentiallyamplify the states with lower values of cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . The algorithm is iterative in nature. After ๐พ iterations, the probability for a measurement of the system to yield ๐‘ฅ , namely ๐‘ ๐พ ( ๐‘ฅ ) , differs from If ๐œƒ โ€ฒ = , the phase angle being estimated is for both (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) and (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) . the original probability ๐‘ ( ๐‘ฅ ) by a factor that is linear in cos (cid:0) ๐œ‘ ( ๐‘ฅ ) (cid:1) . The coefficient โˆ’ ๐œ† ๐พ of thislinear dependence controls the degree (and direction) of the preferential amplification.The second algorithm is the quantum mean estimation algorithm, which uses QPE as a subroutinein order to estimate the expectation of ๐‘ˆ ๐œ‘ under | ๐œ“ โŸฉ , i.e., (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) . The algorithm offers aquadratic speedup over the classical approach of estimating the expectation, as a sample mean overrandomly sampled inputs.The non-boolean amplitude amplification algorithm and the quantum mean estimation algorithmare generalizations, respectively, of the boolean amplitude amplification and amplitude estimationalgorithms. The boolean algorithms are widely applicable and feature as primitives in severalquantum algorithms [8โ€“18] because of the generic nature of the tasks they accomplish. Furthermore,several extensions and variations of the boolean algorithms exist in the literature, e.g., Refs. [2, 5,14, 15, 23โ€“33].Likewise, the non-boolean algorithms introduced in this paper also perform fairly generic taskswith a wide range of applicability. In addition, there is also a lot of scope for extending and modifyingthese algorithms. For example, โ€ข In this paper, the choice หœ ๐พ for the number of iterations to perform (in the amplitude amplifi-cation algorithm) was derived for the case where the value of cos ( ๐œƒ ) is a priori known. Onthe other hand, if cos ( ๐œƒ ) is not known beforehand, one can devise strategies for choosing thenumber of iterations as in Refs. [2, 5], โ€ข There exist versions of the boolean amplification algorithm in the literature [5, 24] that use ageneralized version of the operator ๐‘† ๐œ“ given by ๐‘† gen ๐œ“ ( ๐œ™ ) = (cid:2) โˆ’ ๐‘’ ๐‘–๐œ™ (cid:3) | ๐œ“ โŸฉ โŸจ ๐œ“ | โˆ’ ๐ผ . (130)The generalized operator ๐‘† gen ๐œ“ ( ๐œ™ ) reduces to ๐‘† ๐œ“ for ๐œ™ = ๐œ‹ . Such a modification, with anappropriately chosen value of ๐œ™ , can be used to improve the success probability of theboolean amplification algorithm to [5, 24]. A similar improvement may be possible for thenon-boolean amplification algorithm as well, by similarly generalizing the S ๐šฟ operator. โ€ข Several variants of the (boolean) amplitude estimation algorithm exist in the literature [26โ€“32], which use classical post-processing either to completely avoid using the QPE algorithm,or to reduce the depth of the circuits used in the QPE subroutine. It may be possible toconstruct similar variants for the mean estimation algorithm of this paper.In the rest of this section, some assorted thoughts on the potential applications of the algorithmsof this paper are presented, in no particular order.

A straightforward application of the non-boolean amplitude amplification algorithm is in theoptimization of objective functions defined over a discrete input space. The objective function tobe optimized needs to be mapped onto the function ๐œ‘ of the oracle ๐‘ˆ ๐œ‘ , with the basis states of theoracle corresponding to the different discrete inputs of the objective function. After performingan appropriate number of iterations of the algorithm, measuring the state of the system will yieldโ€œgoodโ€ states with amplified probabilities. Multiple repetitions of the algorithm (multiple shots) canbe performed to probabilistically improve the quality of the optimization.Note that the technique is not guaranteed to yield the true optimal input, and the performanceof the technique will depend crucially on factors like a) the map from the objective function to theoracle function ๐œ‘ , b) the number of iterations ๐พ , c) the initial superposition | ๐œ“ โŸฉ , and in particular,d) the initial distribution of ๐œ‘ under the superposition | ๐œ“ โŸฉ . This approach joins the list of other on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 27 quantum optimization techniques [15, 34], including the Quantum Approximate OptimizationAlgorithm [35, 36] and Adiabatic Quantum Optimization [37โ€“39].Analyzing the performance of the non-boolean amplitude amplification algorithm for the purposeof approximate optimization is beyond the scope of this work, but the results in Section 3.7 andSection 3.8 can be useful for such analyses. The amplitude amplification algorithm could be useful for simulating certain probability distribu-tions. By choosing the initial state | ๐œ“ โŸฉ , oracle ๐‘ˆ ๐œ‘ , and the number of iterations ๐พ , one can controlthe final sampling probabilities ๐‘ ๐พ ( ๐‘ฅ ) of the basis states; the exact expression for ๐‘ ๐พ ( ๐‘ฅ ) in terms ofthese factors is given in (68). Let | ๐œ“ โŸฉ and | ๐œ™ โŸฉ be two different states produced by acting the unitary operators ๐ด and ๐ต , respectively,on the state | โŸฉ . | ๐œ“ โŸฉ = ๐ด | โŸฉ , | ๐œ™ โŸฉ = ๐ต | โŸฉ . (131)Estimating the overlap (cid:12)(cid:12) โŸจ ๐œ“ | ๐œ™ โŸฉ (cid:12)(cid:12) between the two states is an important task with several applica-tions [40โ€“44], including in Quantum Machine Learning (QML) [45โ€“48]. Several algorithms [49โ€“51], including the Swap test [52] can be used for estimating this overlap. For the Swap test, theuncertainty in the estimated value of (cid:12)(cid:12) โŸจ ๐œ“ | ๐œ™ โŸฉ (cid:12)(cid:12) falls as O ( /โˆš ๐‘ž ) in the number of queries ๐‘ž to theunitaries ๐ด and ๐ต (used to the create the states | ๐œ“ โŸฉ and | ๐œ™ โŸฉ ).On the other hand, the mean estimation algorithm of this paper can also be used to estimate โŸจ ๐œ“ | ๐œ™ โŸฉ by noting that โŸจ ๐œ“ | ๐œ™ โŸฉ = (cid:10) (cid:12)(cid:12) ๐ด โ€  ๐ต (cid:12)(cid:12) (cid:11) . (132)So, by setting ๐‘ˆ โ‰ก ๐ด โ€  ๐ต , (133) | ๐œ“ โŸฉ โ‰ก | โŸฉ , (134) โŸจ ๐œ“ | ๐œ™ โŸฉ can be estimated as โŸจ ๐œ“ | ๐‘ˆ | ๐œ“ โŸฉ using the mean estimation algorithm of Section 4. If one isonly interested in the magnitude of โŸจ ๐œ“ | ๐œ™ โŸฉ , the ancilla-free version of the mean estimation algorithmin Section 6.2 will also suffice. Since, for the mean estimation algorithm, the uncertainty of theestimate falls as O ( / ๐‘ž ) in the number of queries ๐‘ž to the unitaries ๐ด and ๐ต (or their inverses),this approach offers a quadratic speedup over the Swap test. Furthermore, the O ( / ๐‘ž ) scaling ofthe error achieved by this approach matches the performance of the optimal quantum algorithm,derived in [50], for the overlap-estimation task. | ๐œ“ โŸฉ and Unitary ๐‘ˆ Recall from (105) and (107) that Q iter | ๐šฟ โŸฉ = ๐‘’ ๐‘–๐œƒ | ๐œผ + โŸฉ โˆ’ ๐‘’ โˆ’ ๐‘–๐œƒ | ๐œผ โˆ’ โŸฉโˆš , (135)where cos ( ๐œƒ ) is the real part of (cid:10) ๐œ“ (cid:12)(cid:12) ๐‘ˆ ๐œ‘ (cid:12)(cid:12) ๐œ“ (cid:11) . Note that the parameter ๐œƒ depends on the superposition | ๐œ“ โŸฉ and the unitary ๐‘ˆ ๐œ‘ . The action of Q iter on | ๐šฟ โŸฉ is to apply a phase-shift of ๐œƒ on the projectionalong | ๐œผ + โŸฉ and a phase-shift of โˆ’ ๐œƒ on the projection along | ๐œผ โˆ’ โŸฉ . This property can be used to createa meta-oracle, which evaluates the superposition | ๐šฟ โŸฉ and/or the unitary ๐‘ˆ ๐œ‘ (or a generic unitary ๐‘ˆ ) based on the corresponding value of ๐œƒ . More specifically, if the circuit ๐ด for producing | ๐šฟ โŸฉ and/or the circuit for ๐‘ˆ are additionally parameterized using โ€œcontrolโ€ quantum registers (provided as inputs to the circuits), then a meta-oracle can be created using (135) to evaluate the states ofthe control registers. The construction of such a meta-oracle is explicitly shown in Appendix E.Such meta-oracles can be used with quantum optimization algorithms, including the non-booleanamplitude amplification algorithm of this paper, to find โ€œgoodโ€ values (or states) of the controlregisters.Variational quantum circuits, i.e., quantum circuits parameterized by (classical) free parametershave several applications [35, 36, 53], including in QML [54โ€“61]. Likewise, quantum circuitsparameterized by quantum registers can also have applications, e.g., in QML and quantum statisticalinference. The ideas of this subsection and Appendix E can be used to โ€œtrainโ€ such circuits in amanifestly quantum manner; this will be explored further in future work. ACKNOWLEDGMENTS

The author thanks A. Jahin, K. Matchev, S. Mrenna, G. Perdue, E. Peters for useful discussions andfeedback. The author is partially supported by the U.S. Department of Energy, Office of Science,Office of High Energy Physics QuantISED program under the grants a) โ€œHEP Machine Learningand Optimization Go Quantumโ€, Award Number 0000240323, and b) โ€œDOE QuantiSED ConsortiumQCCFP-QMLQCFโ€, Award Number DE-SC0019219.This manuscript has been authored by Fermi Research Alliance, LLC under Contract No. DE-AC02-07CH11359 with the U.S. Department of Energy, Office of Science, Office of High EnergyPhysics.

CODE AND DATA AVAILABILITY

The code and data that support the findings of this study are openly available at the followingURL: https://gitlab.com/prasanthcakewalk/code-and-data-availability/ under the directory named arXiv_2102.xxxxx . REFERENCES [1] Lov K. Grover. 1996. A fast quantum mechanical algorithm for database search. In

Proceedings of the Twenty-EighthAnnual ACM Symposium on Theory of Computing (STOC โ€™96). Association for Computing Machinery, Philadelphia,Pennsylvania, USA, 212โ€“219. isbn: 0897917855. doi: 10.1145/237814.237866. arXiv: quant-ph/9605043.[2] Michel Boyer, Gilles Brassard, Peter Hรธyer, and Alain Tapp. 1998. Tight bounds on quantum searching.

Fortschritteder Physik , 46, 4-5, 493โ€“505. doi: 10.1002/(SICI)1521-3978(199806)46:4/5<493::AID-PROP493>3.0.CO;2-P. arXiv:quant-ph/9605034.[3] Gilles Brassard and Peter Hรธyer. 1997. An exact quantum polynomial-time algorithm for simonโ€™s problem. In

Proceedings of the Fifth Israeli Symposium on Theory of Computing and Systems , 12โ€“23. doi: 10.1109/ISTCS.1997.595153.arXiv: quant-ph/9704027.[4] Lov K. Grover. 1998. Quantum computers can search rapidly by using almost any transformation.

Phys. Rev. Lett. , 80,4329โ€“4332. doi: 10.1103/PhysRevLett.80.4329. arXiv: quant-ph/9712011.[5] Gilles Brassard, Peter Hรธyer, Michele Mosca, and Alain Tapp. 2002. Quantum amplitude amplification and estimation.In

Quantum Computation and Information (AMS Contemporary Mathematics). Samuel J. Lomonaco Jr. and Howard E.Brandt, editors. Volume 305, 53โ€“74. isbn: 9780821821404. doi: 10.1090/conm/305/05215. arXiv: quant-ph/0005055.[6] Gilles Brassard, Peter Hรธyer, and Alain Tapp. 1998. Quantum counting. In

Automata, Languages and Programming .Kim G. Larsen, Sven Skyum, and Glynn Winskel, editors. Springer Berlin Heidelberg, Berlin, Heidelberg, 820โ€“831.arXiv: quant-ph/9805082.[7] Richard Cleve, Artur Ekert, Chiara Macchiavello, and Michele Mosca. 1998. Quantum algorithms revisited.

Proceedingsof the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences , 454, 1969, 339โ€“354. doi:10.1098/rspa.1998.0164. arXiv: quant-ph/9708016.[8] Gilles Brassard, Peter Hรธyer, and Alain Tapp. 1997. Quantum cryptanalysis of hash and claw-free functions.

SIGACTNews , 28, 2, (June 1997), 14โ€“19. issn: 0163-5700. doi: 10.1145/261342.261346.[9] W. P. Baritompa, D. W. Bulger, and G. R. Wood. 2005. Groverโ€™s quantum algorithm applied to global optimization.

SIAM Journal on Optimization , 15, 4, 1170โ€“1184. doi: 10.1137/040605072. on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 29 [10] Gilles Brassard, Peter Hร˜yer, and Alain Tapp. 1998. Quantum cryptanalysis of hash and claw-free functions. In

LATINโ€™98: Theoretical Informatics . Clรกudio L. Lucchesi and Arnaldo V. Moura, editors. Springer Berlin Heidelberg,Berlin, Heidelberg, 163โ€“169. isbn: 978-3-540-69715-2.[11] Indranil Chakrabarty, Shahzor Khan, and Vanshdeep Singh. 2017. Dynamic grover search: applications in recommen-dation systems and optimization problems.

Quantum Information Processing , 16, 6, (June 2017), 1โ€“21. issn: 1570-0755.doi: 10.1007/s11128-017-1600-4.[12] Martin Fรผrer. 2008. Solving np-complete problems with quantum search. In

LATIN 2008: Theoretical Informatics .Eduardo Sany Laber, Claudson Bornstein, Loana Tito Nogueira, and Luerbio Faria, editors. Springer Berlin Heidelberg,Berlin, Heidelberg, 784โ€“792. isbn: 978-3-540-78773-0.[13] Guodong Sun, Shenghui Su, and Maozhi Xu. 2014. Quantum algorithm for polynomial root finding problem. In , 469โ€“473. doi: 10.1109/CIS.2014.40.[14] Yanhu Chen, Shijie Wei, Xiong Gao, Cen Wang, Jian Wu, and Hongxiang Guo. 2019. An Optimized QuantumMaximum or Minimum Searching Algorithm and its Circuits. arXiv: 1908.07943 [quant-ph] .[15] Tad Hogg and Dmitriy Portnov. 2000. Quantum optimization.

Information Sciences , 128, 3, 181โ€“197. issn: 0020-0255.doi: https://doi.org/10.1016/S0020-0255(00)00052-9. arXiv: quant-ph/0006090.[16] Ashwin Nayak and Felix Wu. 1999. The quantum query complexity of approximating the median and relatedstatistics. In

Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing (STOC โ€™99). Associationfor Computing Machinery, Atlanta, Georgia, USA, 384โ€“393. isbn: 1581130678. doi: 10.1145/301250.301349.[17] Changqing Gong, Zhaoyang Dong, Abdullah Gani, and Han Qi. 2020. Quantum k-means algorithm based on Trustedserver in Quantum Cloud Computing. arXiv: 2011.04402 [quant-ph] .[18] Shouvanik Chakrabarti, Rajiv Krishnakumar, Guglielmo Mazzola, Nikitas Stamatopoulos, Stefan Woerner, andWilliam J. Zeng. 2020. A Threshold for Quantum Advantage in Derivative Pricing. arXiv: 2012.03819 [quant-ph] .[19] Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh Vazirani. 1997. Strengths and weaknesses of quantumcomputing.

SIAM Journal on Computing , 26, 5, 1510โ€“1523. doi: 10.1137/S0097539796300933. arXiv: quant-ph/9701001.[20] Christoph Dรผrr and Peter Hรธyer. 1996. A quantum algorithm for finding the minimum. arXiv: quant-ph/9607014.[21] Luis Antonio Brasil Kowada, Carlile Lavor, Renato Portugal, and Celina M. H. de Figueiredo. 2008. A new quantumalgorithm for solving the minimum searching problem.

International Journal of Quantum Information , 06, 03, 427โ€“436.doi: 10.1142/S021974990800361X.[22] Qiskit research community. 2019. Qiskit: an open-source framework for quantum computing. (2019). doi: 10.5281/zenodo.2562110.[23] Eli Biham, Ofer Biham, David Biron, Markus Grassl, and Daniel A. Lidar. 1999. Groverโ€™s quantum search algorithmfor an arbitrary initial amplitude distribution.

Phys. Rev. A , 60, 2742โ€“2745, 4. doi: 10.1103/PhysRevA.60.2742. arXiv:quant-ph/9807027.[24] F. M. Toyama, Wytse Van Dijk, and Yuki Nogami. 2013. Quantum search with certainty based on modified groveralgorithms: optimum choice of parameters.

Quantum Information Processing , 12, 1897โ€“1914. doi: 10.1007/s11128-012-0498-0.[25] Tudor Giurgica-Tiron, Iordanis Kerenidis, Farrokh Labib, Anupam Prakash, and William J. Zeng. 2020. Low depthalgorithms for quantum amplitude estimation. arXiv: 2012.03348 [quant-ph] .[26] Krysta M. Svore, Matthew B. Hastings, and Michael Freedman. 2014. Faster phase estimation.

Quantum Info. Comput. ,14, 3โ€“4, (March 2014), 306โ€“328. issn: 1533-7146.[27] Yohichi Suzuki, Shumpei Uno, Rudy Raymond, Tomoki Tanaka, Tamiya Onodera, and Naoki Yamamoto. 2020.Amplitude estimation without phase estimation.

Quantum Information Processing , 19, 75. doi: 10.1007/s11128-019-2565-2.[28] Dmitry Grinko, Julien Gacon, Christa Zoufal, and Stefan Woerner. 2019. Iterative Quantum Amplitude Estimation.arXiv: 1912.05559 [quant-ph] .[29] Kouhei Nakaji. 2020. Faster Amplitude Estimation.

Quantum Information & Computation , 20, 13โ€“14. arXiv: 2003.02417 [quant-ph] .[30] 2019.

Quantum approximate counting, simplified . Symposium on Simplicity in Algorithms (SOSA) , 24โ€“32. doi: 10.1137/1.9781611976014.5. arXiv: 1908.10846 [quant-ph] .[31] Guoming Wang, Dax Enshan Koh, Peter D. Johnson, and Yudong Cao. 2020. Bayesian Inference with EngineeredLikelihood Functions for Robust Amplitude Estimation. arXiv: 2006.09350 [quant-ph] .[32] Eric G. Brown, Oktay Goktas, and W. K. Tham. 2020. Quantum Amplitude Estimation in the Presence of Noise. arXiv:2006.14145 [quant-ph] .[33] Yan Wang. 2017. A Quantum Walk Enhanced Grover Search Algorithm for Global Optimization. arXiv: 1711.07825 [quant-ph] .[34] Juan Miguel Arrazola and Thomas R. Bromley. 2018. Using gaussian boson sampling to find dense subgraphs.

Phys.Rev. Lett. , 121, 030503, 3. doi: 10.1103/PhysRevLett.121.030503. arXiv: 1803.10730 [quant-ph] . [35] Edward Farhi, Jeffrey Goldstone, and Sam Gutmann. 2014. A Quantum Approximate Optimization Algorithm. arXiv:1411.4028 [quant-ph] .[36] Edward Farhi and Aram W. Harrow. 2016. Quantum Supremacy through the Quantum Approximate OptimizationAlgorithm. arXiv: 1602.07674 [quant-ph] .[37] A.B. Finnila, M.A. Gomez, C. Sebenik, C. Stenson, and J.D. Doll. 1994. Quantum annealing: a new method forminimizing multidimensional functions. Chemical Physics Letters , 219, 5, 343โ€“348. issn: 0009-2614. doi: https ://doi.org/10.1016/0009-2614(94)00117-0. arXiv: chem-ph/9404003.[38] Tadashi Kadowaki and Hidetoshi Nishimori. 1998. Quantum annealing in the transverse ising model.

Phys. Rev. E , 58,5355โ€“5363, 5. doi: 10.1103/PhysRevE.58.5355. arXiv: cond-mat/9804280.[39] Edward Farhi, Jeffrey Goldstone, Sam Gutmann, and Michael Sipser. 2000. Quantum Computation by AdiabaticEvolution. arXiv: quant-ph/0001106.[40] Harry Buhrman, Richard Cleve, John Watrous, and Ronald de Wolf. 2001. Quantum fingerprinting.

Phys. Rev. Lett. ,87, 167902, 16. doi: 10.1103/PhysRevLett.87.167902.[41] J. Niel de Beaudrap. 2004. One-qubit fingerprinting schemes.

Phys. Rev. A , 69, 022307, 2. doi: 10.1103/PhysRevA.69.022307.[42] Niraj Kumar, Eleni Diamanti, and Iordanis Kerenidis. 2017. Efficient quantum communications with coherent statefingerprints over multiple channels.

Phys. Rev. A , 95, 032337, 3. doi: 10.1103/PhysRevA.95.032337.[43] Aram W. Harrow and Ashley Montanaro. 2013. Testing product states, quantum merlin-arthur games and tensoroptimization.

J. ACM , 60, 1, (February 2013). issn: 0004-5411. doi: 10.1145/2432622.2432625.[44] Aram W. Harrow, Avinatan Hassidim, and Seth Lloyd. 2009. Quantum algorithm for linear systems of equations.

Phys. Rev. Lett. , 103, 150502, 15. doi: 10.1103/PhysRevLett.103.150502.[45] Seth Lloyd, Masoud Mohseni, and Patrick Rebentrost. 2013. Quantum algorithms for supervised and unsupervisedmachine learning. arXiv: 1307.0411 [quant-ph] .[46] Patrick Rebentrost, Masoud Mohseni, and Seth Lloyd. 2014. Quantum support vector machine for big data classifica-tion.

Phys. Rev. Lett. , 113, 130503, 13. doi: 10.1103/PhysRevLett.113.130503. arXiv: 1307.0471 [quant-ph] .[47] Nathan Wiebe, Ashish Kapoor, and Krysta M. Svore. 2015. Quantum algorithms for nearest-neighbor methods forsupervised and unsupervised learning.

Quantum Info. Comput. , 15, 3โ€“4, (March 2015), 316โ€“โ€“356. issn: 1533-7146.arXiv: 1401.2142 [quant-ph] .[48] Maria Schuld, Ville Bergholm, Christian Gogolin, Josh Izaac, and Nathan Killoran. 2019. Evaluating analytic gradientson quantum hardware.

Phys. Rev. A , 99, 032331, 3. doi: 10.1103/PhysRevA.99.032331. arXiv: 1811.11184 [quant-ph] .[49] Lukasz Cincio, YiฤŸit SubaลŸฤฑ, Andrew T Sornborger, and Patrick J Coles. 2018. Learning the quantum algorithm forstate overlap.

New Journal of Physics , 20, 11, 113022. doi: 10.1088/1367-2630/aae94a. arXiv: 1803.04114 [quant-ph] .[50] Marco Fanizza, Matteo Rosati, Michalis Skotiniotis, John Calsamiglia, and Vittorio Giovannetti. 2020. Beyond the swaptest: optimal estimation of quantum state overlap.

Phys. Rev. Lett. , 124, 060503, 6. doi: 10.1103/PhysRevLett.124.060503.arXiv: 1906.10639 [quant-ph] .[51] Ulysse Chabaud, Eleni Diamanti, Damian Markham, Elham Kashefi, and Antoine Joux. 2018. Optimal quantum-programmable projective measurement with linear optics.

Phys. Rev. A , 98, 062318, 6. doi: 10.1103/PhysRevA.98.062318.[52] Harry Buhrman, Richard Cleve, John Watrous, and Ronald de Wolf. 2001. Quantum fingerprinting.

Phys. Rev. Lett. ,87, 167902, 16. doi: 10.1103/PhysRevLett.87.167902. arXiv: quant-ph/0102001.[53] Alberto Peruzzo, Jarrod Mcclean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J. Love, Alรกn Aspuru-Guzik, and Jeremy L. Oโ€™Brien. 2014. A variational eigenvalue solver on a photonic quantum processor.

NatureCommunications , 5, 4213. doi: 10.1038/ncomms5213. arXiv: 1304.3061 [quant-ph] .[54] Marcello Benedetti, Erika Lloyd, Stefan Sack, and Mattia Fiorentini. 2019. Parameterized quantum circuits as machinelearning models.

Quantum Science and Technology , 4, 4, 043001. doi: 10.1088/2058-9565/ab4eb5. arXiv: 1906.07682 [quant-ph] .[55] Vojtฤ›ch Havlรญฤek, Antonio D. Cรณrcoles, Kristan Temme, Aram W. Harrow, Abhinav Kandala, Jerry M. Chow, andJay M. Gambetta. 2019. Supervised learning with quantum-enhanced feature spaces.

Nature , 567, 209โ€“212. doi:10.1038/s41586-019-0980-2. arXiv: 1804.11326 [quant-ph] .[56] Kosuke Mitarai, Makoto Negoro, Masahiro Kitagawa, and Keisuke Fujii. 2018. Quantum circuit learning.

Phys. Rev. A ,98, 032309, 3. doi: 10.1103/PhysRevA.98.032309. arXiv: 1803.00745 [quant-ph] .[57] Edward Farhi and Hartmut Neven. 2018. Classification with Quantum Neural Networks on Near Term Processors.arXiv: 1802.06002 [quant-ph] .[58] Nimish Mishra, Manik Kapil, Hemant Rakesh, Amit Anand, Nilima Mishra, Aakash Warke, Soumya Sarkar, SanchayanDutta, Sabhyata Gupta, Aditya Prasad Dash, Rakshit Gharat, Yagnik Chatterjee, Shuvarati Roy, Shivam Raj, ValayKumar Jain, Shreeram Bagaria, Smit Chaudhary, Vishwanath Singh, Rituparna Maji, Priyanka Dalei, Bikash K. Behera,Sabyasachi Mukhopadhyay, and Prasanta K. Panigrahi. 2021. Quantum machine learning: a review and current on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 31 status. In

Data Management, Analytics and Innovation . Neha Sharma, Amlan Chakrabarti, Valentina Emilia Balas,and Jan Martinovic, editors. Springer Singapore, Singapore, 101โ€“145. isbn: 978-981-15-5619-7.[59] Maria Schuld, Alex Bocharov, Krysta M. Svore, and Nathan Wiebe. 2020. Circuit-centric quantum classifiers.

Phys.Rev. A , 101, 032308, 3. doi: 10.1103/PhysRevA.101.032308. arXiv: 1804.00633 [quant-ph] .[60] Edward Grant, Marcello Benedetti, Shuxiang Cao, Andrew Hallam, Joshua Lockhart, Vid Stojevic, Andrew G. Green,and Simone Severini. 2018. Hierarchical quantum classifiers. npj Quantum Information , 4, 65. doi: 10.1038/s41534-018-0116-9. arXiv: 1804.03680 [quant-ph] .[61] Guillaume Verdon, Trevor McCourt, Enxhell Luzhnica, Vikash Singh, Stefan Leichenauer, and Jack Hidary. 2019. AQuantum Walk Enhanced Grover Search Algorithm for Global Optimization. arXiv: 1909.12264 [quant-ph] . A DERIVATION OF THE SYSTEM STATE AFTER ๐‘˜ ITERATIONS

This section contains the derivation of (56) from (55). Let the matrix ๐‘€ ๐œƒ be defined as ๐‘€ ๐œƒ โ‰ก (cid:34) ( ๐œƒ ) โˆ’ (cid:35) . (136)From (55), | ๐šฟ ๐‘˜ โŸฉ = ๏ฃฑ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃฒ๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃด๏ฃณ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ | ๐šฟ โŸฉ| ๐œถ โŸฉ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป ๐‘‡ ๐‘€ ๐‘˜๐œƒ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป , if ๐‘˜ is odd , ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ | ๐šฟ โŸฉ| ๐œท โŸฉ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป ๐‘‡ ๐‘€ ๐‘˜๐œƒ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป , if ๐‘˜ is even . (137)where the superscript ๐‘‡ denotes transposition. ๐‘€ ๐œƒ can be diagonalized as ๐‘€ ๐œƒ = ๐‘† ๐œƒ (cid:34) ๐‘’ โˆ’ ๐‘–๐œƒ ๐‘’ ๐‘–๐œƒ (cid:35) ๐‘† โˆ’ ๐œƒ , (138)where the matrix ๐‘† ๐œƒ and its inverse ๐‘† โˆ’ ๐œƒ are given by ๐‘† ๐œƒ = โˆ’ ๐‘– ( ๐œƒ ) (cid:34) ๐‘’ โˆ’ ๐‘–๐œƒ ๐‘’ ๐‘–๐œƒ โˆ’ โˆ’ (cid:35) , ๐‘† โˆ’ ๐œƒ = (cid:34) โˆ’ โˆ’ ๐‘’ ๐‘–๐œƒ ๐‘’ โˆ’ ๐‘–๐œƒ (cid:35) . (139)Now, ๐‘€ ๐‘˜๐œƒ can be written as ๐‘€ ๐‘˜๐œƒ = ๐‘† ๐œƒ (cid:34) ๐‘’ โˆ’ ๐‘–๐œƒ ๐‘’ ๐‘–๐œƒ (cid:35) ๐‘˜ ๐‘† โˆ’ ๐œƒ = ๐‘† ๐œƒ (cid:34) ๐‘’ โˆ’ ๐‘–๐‘˜๐œƒ ๐‘’ ๐‘–๐‘˜๐œƒ (cid:35) ๐‘† โˆ’ ๐œƒ . (140)From (139) and (140), ๐‘€ ๐‘˜๐œƒ (cid:34) (cid:35) = ๐‘† ๐œƒ (cid:34) ๐‘’ โˆ’ ๐‘–๐‘˜๐œƒ ๐‘’ ๐‘–๐‘˜๐œƒ (cid:35) (cid:34) โˆ’ (cid:35) (141a) = ๐‘† ๐œƒ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ โˆ’ ๐‘’ โˆ’ ๐‘–๐‘˜๐œƒ ๐‘’ ๐‘–๐‘˜๐œƒ ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป = ( ๐œƒ ) ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ sin (cid:0) ( ๐‘˜ + ) ๐œƒ (cid:1) โˆ’ sin ( ๐‘˜๐œƒ ) ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป . (141b)Plugging this back into (137) leads to (56). B PROOFS OF RELEVANT TRIGONOMETRIC IDENTITIES

This section contains the derivations of the trigonometric identities (66) and (67). The derivationswill be based on the following standard trigonometric identities: sin (โˆ’ ๐ถ ) = โˆ’ sin ( ๐ถ ) , (142) cos (โˆ’ ๐ถ ) = cos ( ๐ถ ) , (143) sin ( ๐ถ ) + cos ( ๐ถ ) = , (144) sin ( ๐ถ + ๐ท ) = sin ( ๐ถ ) cos ( ๐ท ) + cos ( ๐ถ ) sin ( ๐ท ) , (145) cos ( ๐ถ + ๐ท ) = cos ( ๐ถ ) cos ( ๐ท ) โˆ’ sin ( ๐ถ ) sin ( ๐ท ) . (146) B.1 Proof of Identity (66)From (145), sin ( ๐ถ + ๐ท ) sin ( ๐ถ โˆ’ ๐ท ) = (cid:104) sin ( ๐ถ ) cos ( ๐ท ) + cos ( ๐ถ ) sin ( ๐ท ) (cid:105) ร— (cid:104) sin ( ๐ถ ) cos ( ๐ท ) โˆ’ cos ( ๐ถ ) sin ( ๐ท ) (cid:105) (147a) = sin ( ๐ถ ) cos ( ๐ท ) โˆ’ cos ( ๐ถ ) sin ( ๐ท ) (147b) = sin ( ๐ถ ) (cid:104) โˆ’ sin ( ๐ท ) (cid:105) โˆ’ (cid:104) โˆ’ sin ( ๐ถ ) (cid:105) sin ( ๐ท ) (147c) = sin ( ๐ถ ) โˆ’ sin ( ๐ท ) . (147d)Now, from (145), sin ( ๐ถ ) + sin ( ๐ถ + ๐ท ) = sin ( ๐ถ ) + sin ( ๐ถ + ๐ท ) (cid:104) sin ( ๐ถ ) cos ( ๐ท ) + cos ( ๐ถ ) sin ( ๐ท ) (cid:3) (148) = sin ( ๐ถ ) + ( ๐ถ ) cos ( ๐ท ) sin ( ๐ถ + ๐ท )โˆ’ sin ( ๐ถ + ๐ท ) (cid:104) sin ( ๐ถ ) cos ( ๐ท ) โˆ’ cos ( ๐ถ ) sin ( ๐ท ) (cid:105) . (149)Using (145) again, sin ( ๐ถ ) + sin ( ๐ถ + ๐ท ) = sin ( ๐ถ ) + ( ๐ถ ) cos ( ๐ท ) sin ( ๐ถ + ๐ท ) โˆ’ sin ( ๐ถ + ๐ท ) sin ( ๐ถ โˆ’ ๐ท ) . (150)Using (147d) here leads to sin ( ๐ถ ) + sin ( ๐ถ + ๐ท ) = sin ( ๐ท ) + ( ๐ถ ) cos ( ๐ท ) sin ( ๐ถ + ๐ท ) , (151)which completes the proof of (66). B.2 Proof of Identity (67)From (146), cos ( ๐ถ + ๐ท ) = cos ( ๐ถ ) cos ( ๐ถ + ๐ท ) โˆ’ sin ( ๐ถ ) sin ( ๐ถ + ๐ท ) (152) = cos (โˆ’ ๐ถ ) cos ( ๐ถ + ๐ท ) โˆ’ sin (โˆ’ ๐ถ ) sin ( ๐ถ + ๐ท ) โˆ’ ( ๐ถ ) sin ( ๐ถ + ๐ท ) (153)Using (146) again leads to cos ( ๐ถ + ๐ท ) = cos (โˆ’ ๐ถ + ๐ถ + ๐ท ) โˆ’ ( ๐ถ ) sin ( ๐ถ + ๐ท ) (154) = cos ( ๐ท ) โˆ’ ( ๐ถ ) sin ( ๐ถ + ๐ท ) , (155)which completes the proof of (67). on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 33 C PROPERTIES OF | ๐œผ + โŸฉ AND | ๐œผ โˆ’ โŸฉ This section contains the proof of (107) and (108), which state that | ๐œผ + โŸฉ and | ๐œผ โˆ’ โŸฉ are unit normalizedeigenstates of Q iter with eigenvalues ๐‘’ ๐‘–๐œƒ and ๐‘’ โˆ’ ๐‘–๐œƒ , respectively. From (97), (98), and (106), Q iter | ๐œผ ยฑ โŸฉ = ๐‘’ ยฑ ๐‘–๐œƒ (cid:104) ( ๐œƒ ) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ (cid:105) โˆ’ | ๐šฟ โŸฉ ๐‘– โˆš ( ๐œƒ ) (156a) = ๐‘’ ยฑ ๐‘–๐œƒ ๏ฃฎ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฏ๏ฃฐ (cid:104) ( ๐œƒ ) โˆ’ ๐‘’ โˆ“ ๐‘–๐œƒ (cid:105) | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ ๐‘– โˆš ( ๐œƒ ) ๏ฃน๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃบ๏ฃป (156b) = ๐‘’ ยฑ ๐‘–๐œƒ (cid:20) ๐‘’ ยฑ ๐‘–๐œƒ | ๐šฟ โŸฉ โˆ’ | ๐œถ โŸฉ ๐‘– โˆš ( ๐œƒ ) (cid:21) = ๐‘’ ยฑ ๐‘–๐œƒ | ๐œผ ยฑ โŸฉ . (156c)This completes the proof of (107). From (37) and (106), โŸจ ๐œผ ยฑ | ๐œผ ยฑ โŸฉ = โŸจ ๐šฟ | ๐šฟ โŸฉ + โŸจ ๐œถ | ๐œถ โŸฉ โˆ’ ๐‘’ ยฑ ๐‘–๐œƒ โŸจ ๐œถ | ๐šฟ โŸฉ โˆ’ ๐‘’ โˆ“ ๐‘–๐œƒ โŸจ ๐šฟ | ๐œถ โŸฉ ( ๐œƒ ) (157a) = + โˆ’ ( ๐œƒ ) ( ๐œƒ ) = . (157b)This completes the proof of (108). D PROPERTIES OF (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) AND (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) This section contains the proof of (128) and (129), which state that (cid:12)(cid:12) ๐œ‚ โ€ฒ+ (cid:11) and (cid:12)(cid:12) ๐œ‚ โ€ฒโˆ’ (cid:11) are unit normalizedeigenstates of ๐‘„ evenodd with eigenvalues ๐‘’ ๐‘–๐œƒ โ€ฒ and ๐‘’ โˆ’ ๐‘–๐œƒ โ€ฒ , respectively. From (3), (117), (118), and(119), the action of ๐‘„ evenodd on | ๐œ“ โŸฉ can be written as ๐‘„ evenodd | ๐œ“ โŸฉ = ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ ๐‘† ๐œ“ | ๐›ฝ โ€ฒ โŸฉ (158a) = ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ (cid:104) โŸจ ๐œ“ | ๐›ฝ โ€ฒ โŸฉ | ๐œ“ โŸฉ โˆ’ | ๐›ฝ โ€ฒ โŸฉ (cid:105) (158b) = ๐‘† ๐œ“ (cid:104) โŸจ ๐œ“ | ๐›ฝ โ€ฒ โŸฉ | ๐›ผ โ€ฒ โŸฉ โˆ’ | ๐œ“ โŸฉ (cid:105) (158c) = โŸจ ๐œ“ | ๐›ฝ โ€ฒ โŸฉ (cid:104) โŸจ ๐œ“ | ๐›ผ โ€ฒ โŸฉ | ๐œ“ โŸฉ โˆ’ | ๐›ผ โ€ฒ โŸฉ (cid:105) โˆ’ | ๐œ“ โŸฉ (158d) = (cid:2) ( ๐œƒ โ€ฒ ) โˆ’ (cid:3) | ๐œ“ โŸฉ โˆ’ ( ๐œƒ โ€ฒ ) ๐‘’ โˆ’ ๐‘–๐›ฟ | ๐›ผ โ€ฒ โŸฉ , (158e)and the action of ๐‘„ evenodd on | ๐›ผ โ€ฒ โŸฉ can be written as ๐‘„ evenodd | ๐›ผ โ€ฒ โŸฉ = ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ ๐‘† ๐œ“ | ๐œ“ โŸฉ (159a) = ๐‘† ๐œ“ ๐‘ˆ ๐œ‘ | ๐œ“ โŸฉ (159b) = ๐‘† ๐œ“ | ๐›ผ โ€ฒ โŸฉ (159c) = โŸจ ๐œ“ | ๐›ผ โ€ฒ โŸฉ | ๐œ“ โŸฉ โˆ’ | ๐›ผ โ€ฒ โŸฉ (159d) = ( ๐œƒ โ€ฒ ) ๐‘’ ๐‘–๐›ฟ | ๐œ“ โŸฉ โˆ’ | ๐›ผ โ€ฒ โŸฉ . (159e)Now, using (125), (158), and (159), ๐‘„ evenodd (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = (cid:104) ( ๐œƒ โ€ฒ ) โˆ’ โˆ’ ( ๐œƒ โ€ฒ ) ๐‘’ โˆ“ ๐‘–๐œƒ โ€ฒ (cid:105) ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ | ๐œ“ โŸฉ โˆ’ (cid:104) ( ๐œƒ โ€ฒ ) ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ โˆ’ (cid:105) ๐‘’ โˆ’ ๐‘–๐›ฟ | ๐›ผ โ€ฒ โŸฉ ๐‘– โˆš ( ๐œƒ โ€ฒ ) . (160) Using ( ๐œƒ โ€ฒ ) = ๐‘’ ๐‘–๐œƒ โ€ฒ + ๐‘’ โˆ’ ๐‘–๐œƒ โ€ฒ it can be shown that ( ๐œƒ โ€ฒ ) โˆ’ โˆ’ ( ๐œƒ โ€ฒ ) ๐‘’ โˆ“ ๐‘–๐œƒ โ€ฒ = ( ๐œƒ โ€ฒ ) ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ โˆ’ = ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ . (161)Using this identity, (160) can be simplified as ๐‘„ evenodd (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) . (162)This completes the proof of (128).From (119) and (127), (cid:10) ๐œ‚ โ€ฒยฑ (cid:12)(cid:12) ๐œ‚ โ€ฒยฑ (cid:11) = โŸจ ๐œ“ | ๐œ“ โŸฉ + โŸจ ๐›ผ โ€ฒ | ๐›ผ โ€ฒ โŸฉ โˆ’ ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ + ๐‘–๐›ฟ โŸจ ๐›ผ โ€ฒ | ๐œ“ โŸฉ โˆ’ ๐‘’ โˆ“ ๐‘–๐œƒ โ€ฒ โˆ’ ๐‘–๐›ฟ โŸจ ๐œ“ | ๐›ผ โ€ฒ โŸฉ ( ๐œƒ โ€ฒ ) (163a) = + โˆ’ ๐‘’ ยฑ ๐‘–๐œƒ โ€ฒ cos ( ๐œƒ โ€ฒ ) โˆ’ ๐‘’ โˆ“ ๐‘–๐œƒ โ€ฒ cos ( ๐œƒ โ€ฒ ) ( ๐œƒ โ€ฒ ) = โˆ’ ( ๐œƒ โ€ฒ ) ( ๐œƒ โ€ฒ ) = . (163b)This completes the proof of (129). E META-ORACLE CONSTRUCTION

This section describes the construction of the meta-oracle discussed in Section 7.4. For the purposesof this section, it is more natural to work with generic unitary operators ๐‘ˆ , instead of oracles ๐‘ˆ ๐œ‘ with a known eigenbasis. Accordingly, the subscript โ€œ ๐œ‘ โ€ will be dropped from the oracles ๐‘ˆ ๐œ‘ and U ๐œ‘ . Similarly, the subscript โ€œ โ€ will be dropped from the circuit ๐ด , and the states | ๐œ“ โŸฉ and | ๐šฟ โŸฉ ,since they are not to be interpreted as โ€œinitial statesโ€ in this section. The symbol |ยทโŸฉ will refer to anarbitrary pure state of a quantum system.Let ๐‘€๐ด be a meta-circuit for preparing the state | ๐œ“ โŸฉ , parameterized by an additional โ€œcontrolโ€quantum register (with an orthonormal basis {| โŸฉ ctrl , | โŸฉ ctrl , . . . , | ๐‘ ๐ด โˆ’ โŸฉ ctrl } ) as follows: ๐‘€๐ด (cid:104) | ๐‘ฅ ๐ด โŸฉ ctrl โŠ— |ยทโŸฉ (cid:105) = | ๐‘ฅ ๐ด โŸฉ ctrl โŠ— (cid:2) ๐ด ( ๐‘ฅ ๐ด ) |ยทโŸฉ (cid:3) , โˆ€ ๐‘ฅ ๐ด โˆˆ { , . . . , ๐‘ ๐ด โˆ’ } , (164) ๐‘€๐ด (cid:104) | ๐‘ฅ ๐ด โŸฉ ctrl โŠ— | โŸฉ (cid:105) = | ๐‘ฅ ๐ด โŸฉ ctrl โŠ— | ๐œ“ ( ๐‘ฅ ๐ด )โŸฉ , โˆ€ ๐‘ฅ ๐ด โˆˆ { , . . . , ๐‘ ๐ด โˆ’ } . (165)Here, the operator ๐ด ( ๐‘ฅ ๐ด ) and the state | ๐œ“ ( ๐‘ฅ ๐ด )โŸฉ are both parameterized by ๐‘ฅ ๐ด via the quantumregister with the subscript โ€œ ctrl โ€. Likewise, let ๐‘€๐‘ˆ be a meta-circuit for the unitary ๐‘ˆ , parameterizedby an additional quantum register (with an orthonormal basis {| โŸฉ ctrl , . . . , | ๐‘ ๐‘ˆ โˆ’ โŸฉ ctrl } ) as follows: ๐‘€๐‘ˆ (cid:104) | ๐‘ฅ ๐‘ˆ โŸฉ ctrl โŠ— |ยทโŸฉ (cid:105) = | ๐‘ฅ ๐‘ˆ โŸฉ ctrl โŠ— (cid:2) ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) |ยทโŸฉ (cid:3) , โˆ€ ๐‘ฅ ๐‘ˆ โˆˆ { , . . . , ๐‘ ๐‘ˆ โˆ’ } . (166)Here ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) is parameterized by the parameter ๐‘ฅ ๐‘ˆ . The unitary operations performed by ๐‘€๐ด and ๐‘€๐‘ˆ can be written as ๐‘€๐ด = ๐‘ ๐ด โˆ’ โˆ‘๏ธ ๐‘ฅ ๐ด = (cid:104) | ๐‘ฅ ๐ด โŸฉ โŸจ ๐‘ฅ ๐ด | (cid:105) ctrl โŠ— ๐ด ( ๐‘ฅ ๐ด ) , (167) ๐‘€๐‘ˆ = ๐‘ ๐‘ˆ โˆ’ โˆ‘๏ธ ๐‘ฅ ๐‘ˆ = (cid:104) | ๐‘ฅ ๐‘ˆ โŸฉ โŸจ ๐‘ฅ ๐‘ˆ | (cid:105) ctrl โŠ— ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) . (168)The meta-circuits ๐‘€๐ด and ๐‘€๐‘ˆ are depicted in Figure 12. Under this setup, โ€ข The two-register state | ๐šฟ โŸฉ and operator S ๐šฟ will be parameterized as | ๐šฟ ( ๐‘ฅ ๐ด )โŸฉ = |+โŸฉ โŠ— | ๐œ“ ( ๐‘ฅ ๐ด )โŸฉ , (169) S ๐šฟ ( ๐‘ฅ ๐ด ) = | ๐šฟ ( ๐‘ฅ ๐ด )โŸฉ โŸจ ๐šฟ ( ๐‘ฅ ๐ด )| โˆ’ I . (170) โ€ข The two-register operator U = ๐ป โŠ— ๐‘ˆ will be parameterized as U ( ๐‘ฅ ๐‘ˆ ) . on-Boolean Quantum Amplitude Amplification and Quantum Mean Estimation 35 ๐‘€๐ด control | ๐‘ฅ ๐ด โŸฉ ctrl ๐ด ( ๐‘ฅ ๐ด ) ๐‘€๐‘ˆ control | ๐‘ฅ ๐‘ˆ โŸฉ ctrl ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) Fig. 12. Meta-circuits ๐‘€๐ด (left panel) and ๐‘€๐‘ˆ (right panel), which implement the parameterized operations ๐ด ( ๐‘ฅ ๐ด ) and ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) , respectively. The actions of the circuits ๐‘€๐ด and ๐‘€๐‘ˆ are shown for the case when theircontrol registers are in the basis states | ๐‘ฅ ๐ด โŸฉ ctrl and | ๐‘ฅ ๐‘ˆ โŸฉ ctrl , respectively. MQ iter ๐‘€๐ด control: | ๐‘ฅ ๐ด โŸฉ ctrl ๐‘’ ยฑ ๐‘–๐œƒ ( ๐‘ฅ ๐ด ,๐‘ฅ ๐‘ˆ ) ร— input state ๐‘€๐‘ˆ control: | ๐‘ฅ ๐‘ˆ โŸฉ ctrl original two registers (cid:12)(cid:12) ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ ) (cid:11) : ๐‘‹ U ( ๐‘ฅ ๐‘ˆ ) S ๐šฟ ( ๐‘ฅ ๐ด ) Fig. 13. Quantum circuit for the meta-oracle MQ iter , which evaluates the states of the control registers. Theaction of the oracle is shown for the case when the inputs state is follows: The control registers of ๐‘€๐ด and ๐‘€๐‘ˆ are in basis states | ๐‘ฅ ๐ด โŸฉ ctrl and | ๐‘ฅ ๐‘ˆ โŸฉ ctrl , respectively, and the original two (non-control) registers are inthe state | ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ . โ€ข The quantity ๐œƒ and the two-register states | ๐œผ ยฑ โŸฉ will be parameterized as ๐œƒ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ ) = arccos (cid:104) Re (cid:2) โŸจ ๐œ“ ( ๐‘ฅ ๐ด ) | ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) | ๐œ“ ( ๐‘ฅ ๐ด โŸฉ (cid:3) (cid:105) , (171) | ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ = ๐‘’ ยฑ ๐‘–๐œƒ ( ๐‘ฅ ๐ด ,๐‘ฅ ๐‘ˆ ) | ๐šฟ ( ๐‘ฅ ๐ด )โŸฉ โˆ’ U ( ๐‘ฅ ๐‘ˆ ) | ๐šฟ ( ๐‘ฅ ๐ด )โŸฉ ๐‘– โˆš (cid:0) ๐œƒ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ ) (cid:1) . (172)Now, using ๐‘€๐ด and ๐‘€๐‘ˆ , one can create a meta-operator MQ iter , which is simply Q iter parame-terized additionally by ๐‘ฅ ๐ด and ๐‘ฅ ๐‘ˆ . The circuit for MQ iter is shown in Figure 13. From (107), theaction of MQ iter on | ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ can be written as MQ iter (cid:104) | ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ โŸฉ ctrl โŠ— | ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ (cid:105) = ๐‘’ ยฑ ๐‘–๐œƒ ( ๐‘ฅ ๐ด ,๐‘ฅ ๐‘ˆ ) (cid:104) | ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ โŸฉ ctrl โŠ— | ๐œผ ยฑ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ (cid:105) . (173)From this equation, it can be see that MQ iter acts as a meta-oracle that evaluates the state of thecontrols registers based on the corresponding value of ๐œƒ . Furthermore, MQ iter accomplishes thistask using only O ( ) calls to ๐‘€๐ด and ๐‘€๐‘ˆ . This meta-oracle can be used with the non-booleanamplitude amplification algorithm of this paper to find โ€œgoodโ€ states for the control registers. Notethat to use MQ iter as an oracle for the control registers, the original two (non-control) registers must be coupled to the control registers using ๐ด ( ๐‘ฅ ๐ด ) : |+โŸฉ โŠ— (cid:104) ๐ด ( ๐‘ฅ ๐ด ) | โŸฉ (cid:105) = | ๐šฟ ( ๐‘ฅ ๐ด )โŸฉ = | ๐œผ + ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉ โˆ’ | ๐œผ โˆ’ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ )โŸฉโˆš . (174)This coupling step can be incorporated into the circuit used to create the initial superposition inputof the meta-oracle MQ iter .A construction similar to the one in this section can be used to create a meta-oracle ๐‘€๐‘„ evenodd (parameterized version of ๐‘„ evenodd ), which evaluates the control registers based on cos (cid:0) ๐œƒ โ€ฒ ( ๐‘ฅ ๐ด , ๐‘ฅ ๐‘ˆ ) (cid:1) = (cid:12)(cid:12) โŸจ ๐œ“ ( ๐‘ฅ ๐ด ) | ๐‘ˆ ( ๐‘ฅ ๐‘ˆ ) | ๐œ“ ( ๐‘ฅ ๐ด )โŸฉ (cid:12)(cid:12) ..

Related Researches

Energetic cost of Hamiltonian quantum gates
by Sebastian Deffner
Achieving ultimate noise tolerance in quantum communication
by Frรฉdรฉric Bouchard
Morphology of three-body quantum states from machine learning
by David Huber
Facial Expression Recognition on a Quantum Computer
by Riccardo Mengoni
Categorical computation
by Liang Kong
Uncomputably Complex Renormalisation Group Flows
by James D. Watson
Comment on "Fluctuations in Extractable Work Bound the Charging Power of Quantum Batteries"
by Shang-Yung Wang
Flexible entanglement-distribution network with an AlGaAs chip for secure communications
by F. Appas
Morse Potential on a Quantum Computer for Molecules and Supersymmetric Quantum Mechanics
by Josh Apanavicius
Emergence of Monogamy under Static and Dynamic Scenarios
by Rivu Gupta
On the Hardness of PAC-learning stabilizer States with Noise
by Aravind Gollakota
Coherence of operations and interferometry
by Michele Masini
Viewing quantum mechanics through the prism of electromagnetism
by Ankit Pandey
Long-time simulations with high fidelity on quantum hardware
by Joe Gibbs
Geometric Approach Towards Complete Logarithmic Sobolev Inequalities
by Li Gao
Realization of a multi-node quantum network of remote solid-state qubits
by Matteo Pompili
Quantum Information Theory and Free Semialgebraic Geometry: One Wonderland Through Two Looking Glasses
by Gemma De Las Cuevas
Signatures of Self-Trapping in the Driven-Dissipative Bose-Hubbard Dimer
by Matteo Seclรฌ
Continuous-time dynamics and error scaling of noisy highly-entangling quantum circuits
by Kaelan Donatella
Quantum Computers: Engines for Next Industrial Revolution
by Zhenghan Wang
Room-temperature Mechanical Resonator with a Single Added or Subtracted Phonon
by Rishi N. Patel
Measurement of two-photon position-momentum EPR correlations through single-photon intensity measurements
by Abhinandan Bhattacharjee
Constructions of ??-Adic t -Deletion-Correcting Quantum Codes
by Ryutaroh Matsumoto
One qubit as a Universal Approximant
by Adriรกn Pรฉrez-Salinas
Quantum machine learning with adaptive linear optics
by Ulysse Chabaud

  • «
  • 1
  • 2
  • 3
  • 4
  • »
Submitted on 9 Feb 2021 Updated

arXiv.org Original Source
INSPIRE HEP
NASA ADS
Google Scholar
Semantic Scholar
How Researchain Works
Researchain Logo
Decentralizing Knowledge