Method for estimating a quantum phase
11176478 · 2021-11-16
Assignee
Inventors
Cpc classification
G06N10/00
PHYSICS
International classification
Abstract
A method of determining a quantum phase of quantum device including performing a plurality of measurements for cosine and sine components of the quantum phase; counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component; and determining the quantum phase based on a majority of a number of 0 measurements and a number of 1 measurements of the sine component and the cosine component.
Claims
1. A method for determining a quantum phase induced by a unitary operator in a quantum device, the method comprising: providing a plurality of quantum circuits connected in series, wherein an output of a first quantum circuit in the plurality of quantum circuits is an input of a second quantum circuit in the plurality of quantum circuits; and determining a quantum phase induced by the unitary operator by performing a plurality of measurements of an output of each of the plurality of quantum circuits comprising performing a first measurement in the plurality of measurements of the quantum phase using the first quantum circuit in the plurality of quantum circuits and performing a second measurement in the plurality of measurements of the quantum phase using the second quantum circuit in the plurality of quantum circuits; wherein a number of the plurality of quantum circuits used to determine the quantum phase depends on a number of the plurality of measurements needed to determine the quantum phase within a desired precision, wherein the number of the plurality of measurements is reduced for the desired precision by using a majority sampling method comprising: performing a plurality of measurements for cosine and sine components of the quantum phase; counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component; and determining the quantum phase based on a majority of a number of measurements of binary bit 0 and a number of measurements of binary 1 of the sine component and the cosine component.
2. The method according to claim 1, wherein the desired precision is at least 2 binary bits after the binary point.
3. The method according to claim 1, wherein determining the phase based on the majority of the number of measurements of binary bit 0 and the number of measurements of binary bit 1 of the sine component and the cosine component comprises determining a quantization of the quantum phase q(n.sub.x, n.sub.y) as a function of the number of measurements (n.sub.y) in the vertical axis for the sine component and the number of measurements (n.sub.x) in the horizontal axis for the cosine component.
4. The method according to claim 3, wherein the quantization of the quantum phase q(n.sub.x, n.sub.y) is equal to:
5. The method according to claim 1, wherein performing the first measurement or the second measurement comprises: applying a first Hadamard gate to a first state of a first qubit to put the first qubit into a superposition of states; applying a phase shift gate to the superposition of states of the first qubit to apply a first phase to the first qubit; applying a unitary operator (U.sup.s) gate to a quantum state conditioned on the first qubit to apply a second phase to the quantum state; applying a second Hadamard gate to the first qubit; performing a measurement on the first qubit to determine probability values of measuring an output value of one based on input values of the first phase, the probability value depending on the first phase and the second phase; and determining the second phase based on the probability values.
6. The method according to claim 1, further comprising applying a NOT gate on the first qubit after applying the second Hadamard gate.
7. The method according to claim 1, wherein determining the second phase comprises selecting a value of the first phase equal to zero radian and −¼ radian and estimating a sine and a cosine of the second phase based on probability values of obtaining an initial second phase at the selected value of the first phase.
8. The method according to claim 7, wherein applying the unitary operator (U.sup.s) gate to the quantum state comprises applying the second phase multiplied by a factor that is proportional to 2 to the power j−1, wherein the second phase is expressed as a string of binary bits after the binary point and wherein j corresponds to incremental bit positions of binary bit values in the string of binary bits of the second phase.
9. The method according to claim 8, further comprising: iteratively adding one bit to the string of binary bits of an initial second phase per step and shifting a previous bit string by one, and repeating applying the first Hadamard gate to the first state of the first qubit; applying the phase shift gate to the superposition of states of the first qubit to apply the first phase to the first qubit; applying the unitary operator (U.sup.s) gate to the quantum state conditioned on the first qubit to apply the second phase to the quantum state; applying the second Hadamard gate on the first qubit; performing the measurement on the first qubit to determine the probability values of measuring the output value of one based on the input values of the first phase, the probability value depending on the first phase and the second phase; and determining an updated value of the second phase.
10. The method according to claim 9, further comprising: choosing the first phase equal to the updated second phase divided by minus two to obtain an adjusted second phase that is a threshold value away from a horizontal axis; determining a sign of a cosine of the adjusted second phase; and setting a value of a last added binary bit in the string of binary bits of the updated second phase based on the determined sign of the cosine of the adjusted second phase.
11. The method according to claim 10, wherein if the sign of the cosine of the adjusted second phase is positive, setting the last added binary bit of the string of binary bits of the updated second phase to 0 and if the sign of the cosine of the adjusted second phase is negative, setting the last added binary bit of the string of binary bits of the updated second phase to 1.
12. The method according to claim 11, wherein determining the updated value of the second phase comprises determining with a probability equal to at least substantially one a position of the updated second phase based on the sign of the cosine relative to right or left of a vertical axis when the adjusted second phase is at most π/4 from either 0 or π, or relative to a horizontal axis when the adjusted second phase is at most π/4 from either π/2 or 3π/2, or both.
13. A method of determining a quantum phase of quantum device, comprising: performing a plurality of measurements for cosine and sine components of the quantum phase; counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component; and determining the quantum phase based on a majority of a number of measurements of binary bit 0 and a number of measurements of binary bit 1 of the sine component and the cosine component.
14. The method according to claim 13, wherein determining the phase based on the majority of the number of measurements of binary bit 0 and the number of measurements of binary bit 1 of sine component and the cosine component comprises determining a quantization of the quantum phase q(n.sub.x, n.sub.y) as a function of the number of measurements (n.sub.x) in the vertical axis for the sine component and the number of measurements (n.sub.y) in the horizontal axis for the cosine component.
15. The method according to claim 14, wherein the quantization of the quantum phase q(n.sub.x, n.sub.y) is equal to:
16. The method according to claim 13, further comprising: iteratively adding one bit to the string of binary bits of an initial second phase per step and shifting a previous bit string by one, and repeating applying the first Hadamard gate to the first state of the first qubit; applying the phase shift gate to the superposition of states of the first qubit to apply the first phase to the first qubit; applying the unitary operator (U.sup.s) gate to the quantum state conditioned on the first qubit to apply the second phase to the quantum state; applying the second Hadamard gate on the first qubit; performing the measurement on the first qubit to determine the probability values of measuring the output value of one based on the input values of the first phase, the probability value depending on the first phase and the second phase; and determining an updated value of the second phase.
17. The method according to claim 16, further comprising: choosing the first phase equal to the updated second phase divided by minus two to obtain an adjusted second phase that is a threshold value away from a horizontal axis; determining a sign of a cosine of the adjusted second phase; and setting a value of a last added binary bit in the string of binary bits of the updated second phase based on the determined sign of the cosine of the adjusted second phase.
18. The method according to claim 17, wherein if the sign of the cosine of the adjusted second phase is positive, setting the last added binary bit of the string of binary bits of the updated second phase to 0 and if the sign of the cosine of the adjusted second phase is negative, setting the last added binary bit of the string of binary bits of the updated second phase to 1.
19. The method according to claim 18, wherein determining the updated value of the second phase comprises determining with a probability equal to at least substantially one a position of the updated second phase based on the sign of the cosine relative to right or left of a vertical axis when the adjusted second phase is at most π/4 from either 0 or π, or relative to a horizontal axis when the adjusted second phase is at most π/4 from either π/2 or 3π/2, or both.
20. A quantum device comprising a plurality of quantum circuits for determining the quantum phase, comprising: a plurality of quantum circuits connected in series, wherein an output of a first quantum circuit in the plurality of quantum circuits is an input of a second quantum circuit in the plurality of quantum circuits, wherein the plurality of quantum circuits are configured and arranged to determine a quantum phase induced by a unitary operator in the quantum device by performing a plurality of measurements of an output of each of the plurality of quantum circuits comprising performing a first measurement in the plurality of measurements of the quantum phase using the first quantum circuit in the plurality of quantum circuits and performing a second measurement in the plurality of measurements of the quantum phase using the second quantum circuit in the plurality of quantum circuits; wherein a number of the plurality of quantum circuits used to determine the quantum phase depends on a number of the plurality of measurements needed to determine the quantum phase within a desired precision, wherein a number of the plurality of measurements is reduced for the desired precision by using a majority sampling method comprising: performing a plurality of measurements for cosine and sine components of the quantum phase; counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component; and determining the quantum phase based on a majority of a number of measurements of binary bit 0 and a number of measurements of binary bit 1 of the sine component and the cosine component.
21. The quantum device according to claim 20, wherein the first quantum circuit or the second quantum circuit or both comprises: a first Hadamard gate configured to apply to a first state of a first qubit to put the first qubit into a superposition of states; a phase shift gate configured to apply to the superposition of states of the first qubit a first phase; a unitary operator (U.sup.s) gate configured to apply to a quantum state conditioned on the first qubit a second phase; a second Hadamard gate configured to apply a second quantum phase to the first qubit; a measurement component configured to perform a measurement on the first qubit to determine probability values of measuring an output value of one based on input values of the first phase, the probability value depending on the first phase and the second phase.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present disclosure, as well as the methods of operation and functions of the related elements of structure and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the invention.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION
(17)
(18) The quantum circuits 12A and 12B include a unitary operator gate that induces a quantum phase φ on an input quantum state |ξ> of the respective circuits 12A and 12B. It is desirable to estimate the quantum phase φ in order to evaluate the eigenvalue λ of the unitary operator U and thus determine the energy level of the input quantum state. The eigenvalue λ as a result of the unitarity can be written as λ=e.sup.i2πφ with φ in the interval [0, 1).
(19) The quantum phase 2πφ induced by the unitary operator can be estimated by performing a plurality of measurements of an output of each of the plurality of quantum circuits. Performing the plurality of measurement on the output of each of the plurality of quantum circuits includes performing a first measurement in the plurality of measurements of the quantum phase φ using the first quantum circuit 12A and performing a second measurement in the plurality of measurements of the quantum phase 2πφ using the second quantum circuit 12B. In the present disclosure, although the quantum phase is 2πφ, the quantum phase is noted herein throughout as φ for reasons of simplicity, however the factor 2π is implied.
(20) A number of the plurality of quantum circuits 12 used to determine the quantum phase φ depends on a number of the plurality of measurements needed to determine the quantum phase φ within a desired precision. For example, if two measurements are performed to determine the quantum phase φ, two quantum circuits 12 (for example quantum circuits 12A and 12B) may be needed to accomplish this task. Similarly, by extension, if N measurements are performed to determine the quantum phase φ, N quantum circuits 12 may be needed to accomplish this task. In an embodiment, the desired precision can be preset by the user as desired. In an embodiment, the desired precision is set to be at least 2 binary bits after the binary point, for example (.mn, where mn are the binary numbers 0 or 1).
(21) As stated in the above paragraphs, it is desirable to reduce or minimize the number of measurements so as to reduce the number of quantum circuits 12 (or circuit elements such as gates in the quantum circuits 12) and hence reduce or minimize the depth of the quantum device for estimating the quantum phase φ. The minimization of the number of measurements can be achieved by using a majority sampling method. The inventor developed the method of majority sampling to reduce or minimize the number of measurements and hence reduce or minimize the depth of the quantum device, resulting in an overall efficient process in determining or estimating the quantum phase φ.
(22) In an embodiment, the novel majority sampling method includes i) performing the plurality of measurements for cosine and sine components of the quantum phase φ; ii) counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component; and iii) determining the phase based on a majority of a number of 0 measurements and a number of 1 measurements of the sine component and the cosine component.
(23) In an embodiment, determining the quantum phase φ based on the majority of the number of 0 measurements and the number of 1 measurements of the sine component and the cosine component includes determining a quantization of the quantum phase q(n.sub.x, n.sub.y) as a function of the number of measurements (n.sub.y) in the vertical axis for the sine component and the number of measurements (n.sub.x) in the horizontal axis for the cosine component.
(24) In an embodiment, the quantization of the quantum phase q(n.sub.x, n.sub.y) is equal to:
(25)
(26)
(27)
(28)
(29) It is noted that, according to an aspect of the present invention, the majority sampling method does not calculate the quantum phase itself, i.e., does not calculate the quantum phase by dividing the sine and cosine and then extracting the phase using arctangent. The majority sampling is more efficient as it does not perform this calculation. Instead the quantum phase is determined or estimated in discrete form (in binary form) using the quantization method by counting a number of measurements in a vertical axis for the sine component and counting a number of measurements in a horizontal axis for the cosine component and then determining the phase based on a majority of a number of 0 measurements and a number of 1 measurements of the sine component and the cosine component. The majority sampling method will be explained in further detail in the following paragraphs.
(30) In
(31)
(32) A first qubit 27 (for example, |0> as shown in
(33) In operation, a procedure is applied to determine or estimate the quantum phase φ. In the procedure, the first Hadamard gate 22 is applied to the first state of the first qubit 27 to put the first qubit 27 into a superposition of states. The phase shift gate 23 is then applied to the superposition of states of the first qubit 27 to apply a first phase θ to the first qubit 27. In an embodiment, the first phase θ is applied on the |1> component of the superposition of states. The unitary operator (U.sup.s) gate 29 is applied to the quantum state |ξ>28 conditioned on the first qubit 27 to apply a second phase φ to the quantum state |ξ>28. A second Hadamard gate 24 is applied to the first qubit 27. The output of the second Hadamard gate 24 can be optionally reversed using NOT gate 25. A measurement is then performed on the first qubit 27 using measurement component 26 to determine probability values of measuring an output value of one (1) based on input values of the first phase θ. The probability value depends on the first phase θ and the second phase φ. Finally, the second phase φ is determined based on the probability values. As it must be understood, the second phase φ corresponds to the quantum phase induced by the unitary operator in the quantum device 10. The term “second” for the quantum phase φ is used here to differentiate from the “first” phase θ applied by the phase shift gate (Z.sub.θ) 23. However, this does not imply the order in which the first phase θ and the second phase φ are applied as the second phase φ can be applied before the first phase θ or vice versa.
(34) In an embodiment, determining the second phase φ includes selecting a value of the first phase θ equal to zero radian and −¼ radian and estimating a sine and a cosine of the second phase φ based on probability values of obtaining an initial second phase at the selected value of the first phase θ. In an embodiment, applying the unitary operator (U.sup.s) gate 29 to the quantum state 28 includes applying the second phase φ multiplied by a factor that is proportional to 2 to the power “j−1.” As it will be explained in further detail below, the second phase φ is expressed as a string of binary bits after the binary point. “j” corresponds to incremental bit positions of binary bit values in the string of binary bits of the second phase φ. For example, the quantum phase (i.e., the second phase) φ can be expressed as a string of binary numbers after the binary period as follows: “.β.sub.1β.sub.2β.sub.3 . . . β.sub.n”.
(35) In an embodiment, the procedure further includes iteratively adding one bit to the string of binary bits “.β′.sub.mβ′.sub.m+1β′.sub.m+2” of an initial second phase per step and shifting a previous bit string by one, and repeating applying the first Hadamard gate 22 to the first state of the first qubit; applying the phase shift gate 23 to the superposition of states of the first qubit to apply the first phase to the first qubit; applying the unitary operator (U.sup.s) gate to the quantum state conditioned on the first qubit to apply the second phase to the quantum state; applying the second Hadamard gate 24 on the first qubit; performing the measurement using measured component 26 on the first qubit to determine the probability values of measuring the output value of one based on the input values of the first phase, the probability value depending on the first phase and the second phase; and determining an updated value of the second phase. The above “repeating” means that initially the measurement is performed using the first circuit 12A, then the measurement is repeated by using the second quantum circuit 12B, a third circuit, etc. . . . , until the second phase φ is estimated with the desired precision. In an embodiment, before repeating the measurement using a next quantum circuit (e.g., second quantum circuit 12B), a second NOT gate 25 can be applied to the output of a previous quantum circuit (e.g., first quantum circuit 12A), if the output of the previous quantum circuit (e.g., first quantum circuit 12A) is |1>, to initialize the input of the next quantum circuit (e.g., second quantum circuit 12B) to |0>.
(36) In an embodiment, the procedure further includes choosing the first phase equal to the updated second phase divided by minus two (i.e., choosing θ=−φ.sub.j+1/2) to obtain an adjusted second phase that is a threshold value away from a horizontal axis; determining a sign of a cosine of the adjusted second phase; and setting a value of a last added binary bit in the string of binary bits of the updated second phase based on the determined sign of the cosine of the adjusted second phase.
(37) In an embodiment, if the sign of the cosine of the adjusted second phase is positive, setting the last added binary bit of the string of binary bits of the updated second phase to 0 and if the sign of the cosine of the adjusted second phase is negative, setting the last added binary bit of the string of binary bits of the updated second phase to 1.
(38) In an embodiment, determining the updated value of the second phase includes determining with a probability equal to at least substantially one a position of the updated second phase based on the sign of the cosine relative to right or left of a vertical axis when the adjusted second phase is at most π/4 from either 0 or π, or relative to a horizontal axis when the adjusted second phase is at most π/4 from either π/2 or 3π/2, or both. The term “a probability equal to at least substantially one” means that the probability is equal to (1−∈), where ∈ is a relatively small positive number less than 10.sup.−1, i.e., ∈ is between 0 and 10.sup.−1.
(39) In the following paragraphs, various features of the quantum device and the above method for estimating the quantum phase φ will be described in greater detail with the support of mathematical equations, statements and their verifications. One of ordinary skill in the art when reading the following paragraphs would appreciate the extent to which the inventor has developed in great detail the method of determining the quantum phase. It will become clear in the following paragraphs that the method described herein finds support throughout the detailed description of each of the above features.
(40) As illustrated in the quantum circuit 12A, 12B shown in |ξ
, the circuit first applies a first Hadamard operation using the first Hadamard gate 22 on the first qubit, followed by a phase-shift operation using the phase shift operator Z.sub.θ gate 23.
(41)
(42) The circuit then applies the unitary operator gate U.sup.s 29 on the |ξ 28 quantum state, conditioned on the first qubit 27, where
U.sup.s|ξ=λ.sup.s|ξ
=e.sup.i2π(sφ)|ξ
. (1)
(43) Finally, a second Hadamard operation using the second Hadamard gate 24 is applied on the first qubit followed by the application of NOT gate 25 (if needed) and the measurement with measurement component 26. It is noted that the NOT gate is inserted only to simplify exposition, as it allows the inventor to focus on measurements with value 1 instead of 0, which will be more natural. In practice, the measurements could be negated. In addition, as explained in the above paragraphs, another NOT gate can also be used after the measurement of output of a previous quantum circuit (e.g., first quantum circuit 12A) to ensure that a subsequent circuit (e.g., second quantum circuit 12B) has an input qubit set to |0>. All algorithms provided herein apply equivalently to non-negated measurements. The circuit performs the following mapping:
(44)
(45) Measuring the first qubit therefore returns 1 with probability
(46)
and 0 otherwise. By appropriately choosing θ we can obtain information on the sine and cosine of φ, since
cos(2πφ)=2P.sub.0(1|φ)−1, and sin(2πφ)=2P.sub.−1/4(1|φ)−1). (2)
(47) Repeated measurements of the quantum circuit with θ=0 and θ=−¼ allow us to approximate P.sub.0 and P.sub.−1/4, from which the sine and cosine values and subsequently {tilde over (φ)} can then be determined. Throughout this specification we use the convention that angles φ, θ, and ω are expressed in radians divided by 2π, whereas angles a are always expressed in radians. We frequently use
(48)
and write p.sub.x and p.sub.y when the dependency on a is clear (with α=2πφ).
(49) Kitaev's algorithm: The goal in Kitaev's algorithm is to obtain the approximation
(50)
for φ=
φ.sub.j:=2.sup.j−1φ≡
(51) The multiplicative factor of a causes the phase to be invariant to the integer part
(52)
(53)
(54) According to an embodiment of the present invention, a second stage of the algorithm iteratively adds one new bit β′.sub.j per step, for j=m−1, . . . , 1. For each step we first obtain a 1/16 accurate approximation ω.sub.j of φ.sub.j with probability at least 1−
(55)
(56) Using a union bound on the error probabilities, it can be seen that the algorithm succeeds with probability at least 1−Σ.sub.j−1.sup.m∈.sub.j Choosing ∈.sub.j=∈/m we can therefore ensure with probability at least 1−∈ that all approximate angles ω.sub.j are valid, in which case φ will be 2.sup.−(m+2) accurate. A graphical illustration of an implementation of Kitaev's algorithm according to an embodiment of the present invention is given in
(57) The estimation of the sine or cosine terms in equation (2) with accuracy δ needs an estimation of the probability terms to accuracy δ/2. Let s.sub.1, . . . , s.sub.n, be i.i.d. samples of a Bernoulli distribution with probability of success p=1−P.sub.θ(1). Denoting p{tilde over ( )}.sub.n=(1/n) Σ.sub.i=1.sup.ns.sub.i, then it follows from the Chernoff bound that
Pr[|ρ−{tilde over (ρ)}.sub.n|≥δ/2]≤2e.sup.−δ.sup.
(58) We require that the probability 2e.sup.−δ.sup.
(59)
For the theoretical complexity of Kitaev's algorithm, we note that m angle estimations ω.sub.j are used, each requiring approximate sine and cosine values, therefore yielding a total of 2m estimations. By choosing
(60)
(61) Implementations using phase shifts:
(62) As a practical implementation to steps in the second stage of Kitaev's algorithm, we consider the situation shown in
(63) Now, instead of approximating both sine and cosine we only need to determine the sign of the cosine, which requires far fewer measurements. We then set β′.sub.j based on the sign: if it is positive we set β′.sub.j=0, otherwise we set β′.sub.j=1. We can further improve this scheme by maintaining all known bits and rotate by 0010, instead of by the truncated version 001. Doing so we obtain an angle that is now at most 1/16 away from 0 or ½, as shown in
(64) Increasingly accurate rotations: Here we analyze the measurement complexity in detail. Given that the bits β′.sub.j are determined in reverse order (that is, from least to most significant), we switch to working with iterations, such that iteration k ∈ [1, m] determines β′.sub.m+1−k. We now consider iterations k≥2, which comprise the second stage of the algorithm. At each iteration in the second stage we need to determine the sign of the cosine of the shifted angle.
(65) In terms of measurements, this amounts to sampling a majority of either zeros or ones. For the number of measurements we have the following result. For example, if we let α ∈ (0, π/2). Then we can correctly distinguish angles from the sets [−α, α] and [π−α, π+α] with probability at least 1−ε by checking whether the majority of n measurements is 1 or 0, whenever
(66)
(67) The above can be verified by assuming that an unknown angle lies in the range [−α, α] and denote by p=(1+cos(α))/2. The probability that at most k out of n measurements are 1, with k<np is bounded by [2]:
Pr(X≤k)≤exp(−nD(k/n∥p)), (6)
where D(α∥p) denotes the relative entropy
(68)
We want the majority of the measurements to be 1 and an error therefore occurs whenever k≤n/2. Choosing k=n/2, which is allowed since p>½, gives α=½ and an error ∈′ bounded by
(69)
To simplify, we note that
(70)
We want to ensure that the right-hand side of (7) is less than or equal to ∈. Taking logarithms and simplification then gives the desired result. The result for [π−α, π+α] follows similarly.
(71) At iteration k we apply a phase shift based on the angle from the previous iteration, and the statement above with respect to equation (5) therefore applies with a equal to α.sub.k=π/2.sup.k+1 (as an example, at iteration k=2 we have a maximum deviation of 1/16 or π/8). When taking a single measurement, the probability of failure is 1−p.sub.k where p.sub.k=p.sub.x(α.sub.k). In the special case where k is such that 1−p.sub.k≤
(72)
where we use the identity 1−cos(x)=2 sin.sup.2(x/2) in the second line and sin(x)≤x for x≥0 in the last. We want to find the value of k such that iterations k through m each require only a single measurement and have a combined error bounded by
(73)
Bounding the left-hand side as
(74)
we obtain the sufficient condition
(75)
Taking base-two logarithm and rearranging gives
2k−log.sub.2(k/12)≥log.sub.2(π.sup.2/∈).
It can be verified that log2(k/12)<k/22 for k≥0, and we can therefore choose
(76)
(77) The value of k.sub.∈ does not depend on m and satisfies that for k.sub.∈≥2 for all ∈ ∈ (0, 1]. The bound on the sum of errors for iterations k≥k.sub.∈ in (10) can be seen to apply for any m. We denote by N.sub.∈ the total number of measurements taken in the first k.sub.∈−1 iterations, each with an error not exceeding
(78) Practical sampling schemes: We consider different sampling schemes and study the number of samples needed to attain a desired accuracy with a given error rate. For the evaluation of the error rate, we consider the measurements as a Binomial random variable by counting the number of successful measurements (which could be either 0 or 1, depending on the context). In order to determine the angle to a certain accuracy using n measurements, the number of successful measurements X typically needs to fall in some set K.Math.g [n], where [n] denotes the set {0, 1, . . . , n}. For p=p.sub.x(α) this is satisfied with probability
(79)
We also require two-dimensional settings with probabilities p.sub.x and p.sub.y and K ∈ [n] x [n], given by
(80)
The error rate is then given by 1−Pr(K), and the goal is to find the minimum n for which the error is below some threshold
(81) Box-based sine and cosine: The first sampling method we look at is the box-based scheme illustrated in
(82) The following statement gives the maximum deviation δ(η) allowed in the sine and cosine estimates to reach the desired accuracy in the angle (a verification of this statement is given in the following paragraphs). For any 0≤η≤π/2 we can compute an estimate {tilde over (ϕ)} of any ϕ ∈ [0,2π] with accuracy |{tilde over (ϕ)}−ϕ|≤η from sine and cosine estimates {tilde over (c)} and {tilde over (s)} with |{tilde over (c)}−cos(ϕ)|≤δ and |{tilde over (s)}−sin(ϕ)|≤δ, whenever
(83)
For uniform estimation over φ this bound is tight.
(84) Estimating the cosine is equivalent to estimating the probability p=(1+cos(2πφ))/2 with accuracy δ(η)/2. When taking n measurements we can estimate the probability as k/n, where k is the number of measurements that are 1. The success set K.sub.n,δ(p) is therefore defined as
K.sub.n,δ(p):={k ∈ [n]|(p−δ/2)n≤k≤(p+δ/2)n}, (16)
from which we can then evaluate Pr(K.sub.n,δ(p)). One difficulty here is that the probability p depends on the unknown angle 2πφ and we therefore need to consider the error rate for all possible angles.
(85)
(86) Due to the discrete nature of the samples there are numerous discontinuities, which are best explained using
(87) The following statement, which can be verified in the following paragraphs shows that for sufficiently large n, the error curve is piecewise convex in p: If we choose δ>0 and let f.sub.n(p)=1−Pr(X ∈ K.sub.n,δ(p)). Then for n≥max {1+1/δ.sup.2, 3}, f.sub.n(p) is piecewise convex on [0, 1] with breakpoints at [0,1] ∩ {(k/n)±δ/2}.sub.k∈[n].
(88) In order to find the maximum error it therefore suffices to evaluate the error function at the critical angles with boundary points removed from K.sub.n,δ. We note that the lower bound on n is a sufficient condition, and
(89) Multi-stage evaluation: Instead of attempting to determine the angle in a single pass, we can also apply the general idea behind Kitaev's algorithm and use a multi-level approach. For a two-level approach, we start with a ¼-accurate estimate for 2φ using ⅛ accurate angle estimation followed by two-bit quantization
(90) TABLE-US-00001 TABLE 1 ϵ Angle 10.sup.−1 10.sup.−2 10.sup.−3 10.sup.−4 10.sup.−5 10.sup.−6 10.sup.−7 10.sup.−8 10.sup.−9 10.sup.−10 7π/16 43 139 247 357 469 583 697 813 927 1043 6π/16 11 35 61 87 115 143 171 199 227 257 5π/16 5 15 27 37 49 61 73 85 97 111 4π/16 3 9 15 21 27 33 39 45 53 59 3π/16 1 5 9 13 15 19 23 27 31 35 2π/16 1 3 5 7 9 13 15 17 19 21 π/16 1 1 3 5 5 7 9 9 11 13 π/32 1 1 3 3 5 5 7 7 9 9 π/64 1 1 1 3 3 5 5 5 7 7 π/128 1 1 1 3 3 3 3 5 5 5 π/256 1 1 1 1 3 3 3 3 5 5
Table 1 provides the number of measurement needed to correctly determine the sign of cos(α) with probability at least 1−∈, when α deviates from 0 or π by at most the given angle.
(91) For a three-stage approach we estimate the unquantized angle 4φ with accuracy ¼, and then quantize to a single bit. We then apply two stages of sign determination using a phase shift based on the unquantized angle or a k-bit discretization to obtain the final ⅛ accurate three-bit quantized estimate for φ.
(92) Numerical evaluation: We numerically evaluate the different box-based schemes and summarize the number of measurements for different error rates ∈ in Table 2.
(93) TABLE-US-00002 TABLE 2 ϵ Description 10.sup.−1 10.sup.−2 10.sup.−3 10.sup.−4 10.sup.−5 10.sup.−6 10.sup.−7 10.sup.−8 10.sup.−9 10.sup.−10 Single-stage box 112 222 334 452 570 688 806 932 1050 1176 Two-stage box (2-bits) 45 83 121 159 201 241 283 325 365 407 Two-stage box (3-bits) 43 79 115 149 189 225 265 305 343 383 Two-stage box (exact) 43 77 111 145 183 217 255 293 331 369 Three-stage box (2-bits) 52 96 142 190 240 286 336 386 434 484 Three-stage box (3-bits) 38 64 96 126 160 190 224 256 288 320 Three-stage box (exact) 32 54 78 104 130 154 180 208 234 260 Single-stage box, jointly 82 186 296 414 534 652 778 896 1014 1140 Single-stage wedge 40 84 132 188 244 300 358 416 476 534 Two-stage wedge (2-bit) 19 37 57 77 99 119 141 163 185 207 Two-stage wedge (3-bit) 17 33 49 67 87 105 125 145 163 183 Two-stage wedge (exact) 15 29 47 63 81 97 115 133 149 169 Three-stage wedge (2-bit) 30 66 102 138 176 216 254 292 330 368 Three-stage wedge (3-bit) 18 38 58 78 98 122 142 164 184 206 Three-stage wedge (exact) 14 28 42 56 70 88 102 116 132 146 Sign based 15 33 51 69 87 105 123 141 165 183 Sign based (bound) 28 48 68 88 108 128 148 168 188 208 Majority and sign 17 29 41 55 67 79 93 105 119 133 Majority and sign (bound) 22 35 48 62 75 88 102 115 128 141
Table 2 provides a number of measurements required using different methods to obtain a ⅛-accurate quantized estimate of φ with probability at least 1−∈.
(94) For the single-stage measurement scheme we choose
(95) Joint determination of sine and cosine error: For the box sampling scheme, we determine the number of samples required based on the maximum error probability of the cosine component over all angles. The same number of measurements is then used to independently estimate the sine component. The sine error curve is the same as the cosine error curve, but shifted by π/2. Based on
(96) Wedge-based angle: Given n measurements for both p.sub.x=(1+cos(α))/2, and p.sub.y=(1+sin(α))/2, we can denote by n.sub.x and n.sub.y the number of 1 measurements. The box-based approach requires that |py−ny/n|≤δ/2 with high probability, and likewise for p.sub.x and n.sub.x/n. This requirement enables the use of the Chernoff bound to derive a bound on the number of samples, but is otherwise too restrictive. In
(97) Numerical evaluation: Similar to the numerical evaluation of the box approach, in order to find the error rate corresponding to a given number of measurements n, we need to minimize Pr(K.sub.n,η(α)) over α. This can be done by sweeping over the angles α, determining K.sub.n,η(α) at each point, as illustrated in
(98) The approach therefore is to find all angles α at which the wedge boundary intersects grid points, and evaluate the error probability at those angles, with boundary points at either the bottom or top edges omitted to obtain the limit as a approaches the critical angle from a clockwise or counter-clockwise direction. The error probability in
(99) Triple-sign sampling:
(100) For the sufficient number of measurements per component, the statement above with respect to equation (5)applied with α=π/4 gives
(101)
The first stage uses n measurements each for the horizontal and vertical component. The second stage uses another n measurements, for a total of 3n measurements. For each of the three steps we can choose
N=3[2 log.sub.2(1/∈)]≤9+6 log.sub.2(1/∈), (18)
where the inequality is due to the addition of 3 to account for rounding to integers.
(102) The majority sampling method: In an embodiment, for majority sampling, we take n measurements for the sine and cosine components, and count the number of positive measurements by n.sub.y and n.sub.x, respectively.
(103)
which gives partitions as illustrated in
(104) Based on the above, we have the following result (which can be verified in below paragraphs). If we let K.sub.n={(i, j)|i, j ∈ [0, n], j≥n−i+1}, then for all α ∈ [0, π/2]
(105)
We expect that this result can be improved by a factor of two.
f.sub.n(α)=1−Pr(K.sub.n|n, α) (19)
over angles α=2πφ. As shown in
f.sub.n(0)=(1−p.sub.y).sup.n=(1−1/2).sup.n=2.sup.−n.
(106) We can now expand K.sub.n with any of the points in the gray part of the diagonal in
N=2 [log.sub.2(4/∈)]+[2 log.sub.2(2/∈)]≤9+4 log.sub.2(1/∈).
This bound can be lowered by two samples if it can be shown that α=0 maximizes f.sub.n(α) over [0, π/2].
(107) Evaluation of N.sub.∈: For a given ∈ we can first determine k.sub.∈ using (12) and set
N.sub.1.sup.s=9+6 log.sub.2(1/
For the remaining steps we use the sign-based approach with angles α=π/2.sup.k−1. Using the statement above with respect to equation (5), and ignoring rounding up to the nearest integer we can take
(108)
where the inequality follows from sin(n/2.sup.k+1)≤π/2.sup.k+1≤4/2.sup.k+1=1/2.sup.k−1. Summing over N.sub.k gives
(109)
To account for rounding up of the intermediate values we add one for each of the remaining k.sub.∈−2 steps. Combining equations (20), (21), and the rounding term, and using log.sub.2(1/
N.sub.∈.sup.s≤7+k.sub.∈+(7+log(k.sub.∈−2)).Math.(log.sub.2(1/∈)+log.sub.2(k.sub.∈)) (22)
for triple-sign based sampling and
N.sub.∈.sup.m≤7+k.sub.∈+(5+log(k.sub.∈−2)).Math.(log.sub.2(1/∈)+log.sub.2(k.sub.∈)) (23)
for majority-based sampling.
(110) Numerical evaluation: For a numerical evaluation of N.sub.∈ we first determine the critical iteration k.sub.∈ by finding the smallest integer k that satisfies equation (11). Based on k.sub.∈ we set
(111) A summary of k.sub.∈ for different values of ∈ as well as N.sub.∈ values for the two different sampling methods used in the first iteration is given in Table 3.
(112) TABLE-US-00003 TABLE 3 ϵ Description 10.sup.−1 10.sup.−2 10.sup.−3 10.sup.−4 10.sup.−5 10.sup.−6 10.sup.−7 10.sup.−8 10.sup.−9 10.sup.−10 k.sub.ϵ using (11) 3 5 7 9 10 12 14 16 17 19 k.sub.ϵ using (12) 4 6 7 9 11 12 14 16 17 19 N.sub.ϵ.sup.s (triple-sign) 24 56 84 116 147 177 213 243 280 314 N.sub.ϵ.sup.s (triple-sign, bound (22)) 44 84 123 163 197 237 277 317 353 394 N.sub.ϵ.sup.m (majority) 24 48 72 96 121 147 175 199 226 256 N.sub.ϵ.sup.m (majority, bound (23)) 34 66 98 130 158 190 223 256 285 319
Table 3 is a summary of k.sub.∈ for different values of ∈ as well as N.sub.∈ values for different sampling methods.
(113) Finally, Table 4 provides the total number of iterations needed to obtain a 2.sup.−(m+2) accurate phase estimate with probability at least 1−∈ up to and including iteration k.sub.∈. For each combination of ∈ and m that contains a number, we choose
(114) TABLE-US-00004 TABLE 4 Number of samples required to obtain a 2.sup.−(m+2) accurate estimation of φ with probability at least 1 − ϵ using triple-sign based sampling (top) and majority-based sampling (bottom). Dashed lines indicate the regime where a single extra measurement is needed for each successive m. m ϵ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Triple-sign sampling 10.sup.−1 15 16 19 — — — — — — — — — — — — — — — — 10.sup.−2 33 36 41 42 45 — — — — — — — — — — — — — — 10.sup.−3 51 58 61 66 69 70 73 — — — — — — — — — — — — 10.sup.−4 69 78 83 86 89 94 97 98 99 — — — — — — — — — — 10.sup.−5 87 98 105 110 113 116 119 122 127 130 — — — — — — — — — 10.sup.−6 105 118 125 132 137 140 145 150 153 156 159 160 — — — — — — — 10.sup.−7 123 138 147 154 161 166 169 172 175 178 183 186 189 190 — — — — — 10.sup.−8 141 158 169 178 185 190 195 198 203 206 209 212 215 218 219 220 — — — 10.sup.−9 165 184 199 208 215 220 225 230 233 236 239 242 245 248 251 254 257 — — 10.sup.−10 183 206 219 228 235 242 247 252 259 264 267 272 275 278 281 284 287 290 291 Majority-based sampling 10.sup.−1 17 20 25 — — — — — — — — — — — — — — — — 10.sup.−2 29 34 43 44 49 — — — — — — — — — — — — — — 10.sup.−3 41 50 57 62 69 70 73 — — — — — — — — — — — — 10.sup.−4 55 68 73 80 83 88 93 96 97 — — — — — — — — — — 10.sup.−5 67 82 91 98 101 106 109 114 119 122 — — — — — — — — — 10.sup.−6 79 96 107 114 121 124 131 136 141 144 147 148 — — — — — — — 10.sup.−7 93 112 123 132 139 146 151 154 157 160 167 170 173 176 — — — — — 10.sup.−8 105 126 141 150 159 166 171 174 181 184 189 192 195 198 199 200 — — — 10.sup.−9 119 142 159 170 179 184 189 196 201 204 207 210 213 216 219 224 227 — — 10.sup.−10 133 160 173 186 193 200 209 214 221 226 229 234 239 244 247 250 253 256 257
(115) Discussion: In the above paragraphs, we have analyzed several sampling schemes for use in quantum phase estimation, including quantum phase estimation based on Kitaev algorithm, and show that using previous phase estimates to shift the phase can reduce the number of measurements. Based on this we show that we can obtain a theoretical sampling complexity N.sub.∈+m to obtain a 2.sup.−(m+2) accurate estimation of the phase φ with probability at least ∈. The present methods according to embodiments of the present invention (including the majority sampling method) can also take advantage of increasingly accurate rotations of the quantum phase to further narrow the estimate of the quantum phase. Even with practical limitations on the phase shift accuracy, the present sampling schemes can still reduce the number of measurements, as shown, for example, in Table 1. From a theoretical point of view, having a limited accuracy re-introduces a log(m) dependency in the algorithmic complexity, and it may therefore be interesting to analyze the application of the sampling schemes to the phase estimation to enable faster quantum phase estimation.
(116) The maximum of f.sub.n(α) in (19) over [0, π/2] is attained at α=0. This confirms a sampling complexity of 2 log2(1/∈) for the majority-based approach. This can be verified for n=1 and n=2, and
f.sub.n(α)=(1−sin(α)−cos(α)−sin(α)cos(α))/4,
which is convex over the given range due to concavity of the trigonometric terms, and the result therefore follows from the symmetry f.sub.n(α)=f.sub.n(π/2−α). Empirically, the error functions for box-, wedge-, and majority-based sampling all exhibit convexity or piecewise convexity. This may indicate a more general relationship between the error over certain index sets K and α.
(117) The maximum deviation δ(η) allowed in the sine and cosine estimates to reach the desired accuracy in the angle is provided by the following: For any 0≤η≤π/2 we can compute an estimate
(118)
For uniform estimation over φ this bound is tight.
(119) The above can be verified as follows. For η=0 the result holds trivially with δ=0, and we therefore only need to consider η>0. We can recover any ϕ with accuracy η from approximate sine and cosine values {tilde over (c)} and {tilde over (s)} if and only if ({tilde over (c)}, {tilde over (s)}) lies within a wedge of angles between ϕ−η and ϕ+η (illustrated by the shaded region in
(120)
For δ to be valid we need cos(ϕ)−δ≥α(ϕ)(sin(ϕ)+δ), which can be rewritten as
(121)
We then need to minimize δ(ϕ) over the given range of ϕ to find the largest value of δ that applies for all ϕ. Abbreviating α=α(ϕ) and gradient α′=α′(ϕ), we have
(122)
It follows that α′+α.sup.2=1, or α′=−1−α.sup.2, which allows us to simplify the sine coeffient as
(123)
Whereas for the cosine coefficient we find
(124)
Substituting (27) and (28) in (26) gives
(125)
Noting that η>0 and considering the range of ϕ, we have 0<sin(ϕ+η)≤1. This allows us to multiply the first term in (29) by sin(ϕ+η)/sin(ϕ+η), and expand the enumerator in this term using the sum formula as
sin(ϕ+η)=sin(ϕ)cos(η)+cos(ϕ)sin(η)
Finally, expanding the numerator cos(ϕ+η) in the a term preceding sin(ϕ) as
cos(ϕ+η)=cos(ϕ)cos(η)−sin(ϕ)sin(η)
and simplifying gives
(126)
All terms in this expression, except α−1, are strictly positive. The gradient is therefore zero only when α=1, which happens at ϕ*=π/4−η. For ϕ<ϕ* we have α(ϕ)>1 and therefore δ′(ϕ)<0, whereas for ϕ>ϕ* we have α(ϕ)<1 and δ′(ϕ)>0, which shows that ϕ* gives a minimizer. Evaluating δ(ϕ*) in (25) and noting that α(ϕ*)=1 then gives
δ≤δ(ϕ)=(cos(π/4−η)−sin(π/4−η))/2
To obtain the desired result, we simplify δ(ϕ) using the sum formulas and cos(π/4)=sin(π/4)=√{square root over (2)}/2:
(127)
For π/4≤η≤π/2 we can assume without loss of generality that ϕ ∈ [−π/4, 0]. In this case the top-left corner of the box can again be seen to limit δ. The argument as given above follows through as is, thus completing the above verification.
(128) For sufficiently large n, the error curve is piecewise convex in p, provided as follows: If we choose δ>0 and let f.sub.n(p)=1−Pr(X ∈ K.sub.n,δ(p)) with K.sub.n,p as defined in (16). Then for n≥max{1+1/δ.sup.2, 3}, f.sub.n(p) is piecewise convex on [0, 1] with breakpoints at [0,1] ∩ {(k/n)±δ/2}k.sub.∈[n].
(129) The above statement can be verified as follows. From the definition of K.sub.n,δ(p), it is clear that K.sub.n,δ(p) remains constant precisely on the (open) segment between the stated breakpoints. Choose any segment, then for all values of p within this segment, the error is obtained by summing B(k; n, p) over k .Math.K.sub.n,δ(p), with
(130)
In order to prove convexity of the error over the segment, we show that the each of the terms B(k; n, p) is convex in p over the segment. For conciseness we normalize with respect to the binomial coefficient and work with
(131)
For n=2, observe that the second derivative B″.sub.1,2(p)=−2 is negative, which means that B.sub.1,2(p) is concave. We, therefore, require that n≥3. For k=0 and k=n we find
B″.sub.0,n(p)=n(n−1)(1−p)n.sup.−2, and B″.sub.n,n(p)=n(n−1)p.sup.n−2.
The second derivatives are non-negative over the domain p ∈ [0, 1] and the functions are therefore convex. For 0<k<n we have
(132)
and the gradient reaches zero when p=0, p=1, or p=k/n. For k=1 we find
(133)
For convexity we want B″.sub.1,n(p)≥0, and therefore require that the square-bracketed term be nonnegative. Solving for p then gives convexity of B″.sub.1,n(p) for p≥2/n. By symmetry, it follows that for k=n−1, B″.sub.n−1,n(p) is convex for p≤1−2/n. Finally, for 2≤k≤n−2 it follows from (31) that
(134)
The term in square brackets is a quadratic in p, and solving for the roots gives
(135)
The deviation is maximum at k=n/2, which gives
(136)
The second derivative B″.sub.k,n is therefore guaranteed to be nonnegative, and B.sub.k,n convex, when p is at least 1/(2√{square root over (n−1)}) away from the maximum at k/n. It can be verified that the same sufficient condition applies for k=0 and k=n. For any p in the selected segment we know that K.sub.n,δ(p) remains constant and that |k/n−p|≥δ/2 for any k .Math.K.sub.n,δ(p). To guarantee convexity we therefore require that
δ/2≥1/(2√{square root over (n−1)})
which simplifies to n≥1+1/δ.sup.2.
(137) The following statement regarding the error probability can also be verified. If we let K.sub.n={(i, j)|i, j ∈ [0,n], j≥n−i+1}, then for all α∈ [0, π/2]
(138)
(139) For example, if we denote by ε.sub.n={(i,j)|i,j ∈ [0, n], i+j≤n} the complement of K.sub.n. The error probability Pr(ε.sub.n|n, α)=1Pr(Kn|n, α) is then obtained by summing f.sub.i,j over (i, j) ∈ ε.sub.n, where
(140)
Defining the diagonal sums k ∈ [0, n] as
(141)
we can equivalently write Pr(ε.sub.n|n, α)=Σ.sub.k=0.sup.nd.sub.k(α). For α ∈ [0, π/2] it is easily seen that dk(α)=dk(π/2−α), and it therefore suffices to show the desired result for α ∈ [0, π/4]. As a first step, we bound the value of the main diagonal d.sub.n by 2.sup.−n:
(142)
where (i) uses the binomial theorem and (ii) follows from the observation that
(143)
For the second step we derive a bound on d.sub.n−1 based on d.sub.n, from which we then obtain a bound on d.sub.n−1+d.sub.n.Math. For i≥1 we have
(144)
The right-most term, which accounts for the change in the binomial coefficient
(145)
is less than or equal to 1 for i≤n/2 when n is even, and for i≤(n+1)/2 when n is odd. A similar argument applies for the transition from f.sub.i,j to f.sub.i,j−1 for 1≤j≤(n+1)/2, allowing us to bound the elements on the (n−1)-diagonal d.sub.n−1 as follows:
(146)
(147)
(148)
Combining (32) and (33) we have
(149)
As the third step, we derived bound on d.sub.k−2 based on d.sub.k. Consider any diagonal 2≤k≤n, with 0<i<k and j=k−i, then
(150)
Since k≤n, the multiplicative term κ satisfies
(151)
It therefore follows that
(152)
The transition from diagonal k to k−2 follows by summing over all elements i+j=k−2, giving
(153)
with τ<1, as shown in
(154)
For the sum of the diagonals, and hence that f.sub.i,j over the error set set ε.sub.n, it follows from equation (34) that
(155)
The desired result then follows from the observation that (p.sub.x+p.sub.y−p.sub.xp.sub.y)/(p.sub.x+p.sub.y−1)≤2, as illustrated in
(156) The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.