**USING RANDOM WALKS FOR ITERATIVE PHASE ESTIMATION**

WIEBE, Nathan O. (Microsoft Technology Licensing, LLCOne Microsoft Wa, Redmond Washington, 98052-6399, US)

*;*

**G06N10/00***;*

**G06N5/00**

**G06N7/00**WO2017116446A1 | 2017-07-06 |

US9275011B2 | 2016-03-01 |

NATHAN WIEBE ET AL: "Efficient Bayesian Phase Estimation", PHYSICAL REVIEW LETTERS, vol. 117, no. 1, 4 August 2015 (2015-08-04), US, pages 1 - 12, XP055308177, ISSN: 0031-9007, DOI: 10.1103/PhysRevLett.117.010503

NATHAN WIEBE ET AL: "Approximate Bayesian Inference via Rejection Filtering", 3 December 2015 (2015-12-03), pages 1 - 16, XP055308176, Retrieved from the Internet

CHRIS GRANADE ET AL: "Qinfer: Statistical inference software for quantum applications", CORR (ARXIV), vol. 1610.00336, no. v2, 13 April 2017 (2017-04-13), pages 1 - 19, XP055562210

None

CLAIMS 1) A method, comprising performing an iterative phase estimation technique in which the phase estimation is performed by a classical computer that is conhgured to cooperatively control a quantum computing device, wherein the phase estimation method involves deterministically choosing experimental parameters. 2) The method of claim 1, wherein the parameters for the walk are determin- isticly generated by choosing the parameters that yield optimal information under the assumption of a Gaussian prior. 3) The method of claim 1, wherein the iterative phase estimation technique comprises: applying a phase to a qubit register of a quantum computing device; estimating the phase of the qubit register; and adjusting a future measurement of the phase of the qubit register based on the phase estimation performed by the classical computer. 4) The method of claim 1, wherein the phase estimation technique is performed to determine eigenvalues of a unitary operator represented by a qubit of the quantum computing device. 5) The method of claim 1, wherein the phase estimation technique uses a random walk approach. 6) The method of claim 5, wherein (a) the random walk approach adjusts an estimate of the posterior mean of the phase right or left based on a single measurement of the qubit register; or (b) wherein the random walk approach adjusts an estimate of the posterior mean of the phase upward or downward based on a single measurement of the qubit register. 7) A method, comprising: performing a phase estimation technique by a classical computer; and measuring a state of at least one qubit of a quantum computing device based on results from the phase estimation technique, wherein the phase estimation technique is conhgured to cooperatively control a quantum computing device and generate a phase estimation using a random walk technique. 8) The method of claim 7, wherein a decision to adjust an estimate of the posterior mean of the phase is adjusted left or right based on a single experiment. 9) The method of claim 7, wherein a decision to adjust an estimate of the posterior mean of the phase is adjusted up or down based on a single experiment. 10) A method, comprising: performing a phase estimation technique by a classical computer; and measuring a state of at least one qubit of a quantum computing device based on results from the phase estimation technique, wherein the classical computer is conhgured to cooperatively control the quantum computing device, and wherein the phase estimation technique (a) does not use random number generation, or (b) is a random walk technique and includes an unwinding procedure that step backs a current phase estimate based on receiving inconsistent data from an experiment. 11) The method of claim 10, wherein the phase estimation technique does not use random number generation and only stores a current best estimate of an eigenphase. 12) The method of claim 11, wherein the classical portion of the method is performed by cryogenic hardware. 13) The method of claim 10, wherein the phase estimation technique is (b), and wherein the unwinding procedure reduces a mean error by restarting the procedure while retaining some information from at least one previous application of the method. 14) The method of claim 13, wherein the unwinding procedure reduces a mean error by using majority voting over different random answers 15) The method of claim 13, wherein the unwinding step causes the random walk technique to return to a location before a hrst datum was taken. |

FIELD

The disclosed technology concerns example embodiments for estimating eigen values of quantum operations using a quantum computer.

SUMMARY

The disclosed technology concerns example embodiments for estimating eigenval ues of quantum operations using a quantum computer. Such estimations are useful in performing Shor’s algorithm for factoring, quantum simulation, quantum machine learning, and other various quantum computing applications. Existing approaches to phase estimation are sub-optimal, difficult to program, require prohibitive clas sical computing, and/or require too much classical or quantum memory to be run on existing devices. Embodiments of the disclosed approach address one or more (e.g., all) of these drawbacks. Certain examples work by using a random walk for the estimate of the eigenvalue that (e.g., only) keeps track of the current estimate and the measurement record that it observed to reach that point. Example embodi ments further provide near optimal scaling, run within less than 300 bits of memory, and/or can execute within hundreds of nanoseconds on existing classical hardware.

In some embodiments, an iterative phase estimation technique is performed in which the phase estimation is performed by a classical computer that is conhgured to cooperatively control a quantum computing device. Further, in this embodiment, the phase estimation technique is deterministic. For example, in some implementa tions, the phase estimatation technique is deterministically generated by choosing parameters (e.g., for a random walk approach) that yield optimal information under the assumption of a Gaussian prior. Further, in other implementations, the exper imental parameters include the number of times the unitary operation is applied and/or other experimental parameters, based on (for example) the direction of each step in the algorithm is determined by data and prior experiments. In particu lar implementations the phase estimation technique is deterministically generated by choosing parameters that yield optimal information under the assumption of a Gaussian prior. In some implementations, the iterative phase estimation technique comprises: applying a phase to a qubit register of a quantum computing device; es timating the phase of the qubit register; and adjusting a future measurement of the phase of the qubit register based on the phase estimation performed by the classical computer. Additionally, in some implementations, the phase estimation technique is performed to determine eigenvalues of a unitary operator represented by a qubit of the quantum computing device. And, in certain implementations, the phase es timation technique uses a random walk approach. The random walk approach can, for example, adjust a posterior mean of the phase estimation right or left based on a single measurement of the qubit register, and/or can adjust a posterior mean of the phase estimation upward or downward based on a single measurement of the qubit register.

In further embodiments, a phase estimation technique is performed by a clas sical computer; and a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique. For example, the classical computer can be conhgured to cooperatively control the quantum com puting device and generate a phase estimation using a random walk technique. In some example implementations, a decision to adjust a posterior mean of the phase estimation is adjusted left or right based on a single experiment and/or a posterior mean of the phase estimation is adjusted up or down based on a single experiment. Further, in some implementations, the classical processing is performed by cryogenic hardware.

In some embodiments, a phase estimation technique is performed by a classical computer, and a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique. In the illustrated embodiment, the classical computer is conhgured to cooperatively control a quantum computing device and perform the measurement. Still further, in the illustrated embodiment, the phase estimation is generated using a technique without random number generation (e.g., a non-random technique). In particular implementations, the phase estimation technique only stores a current best estimate of an eigenphase. Further, in some implementations, the classical processing is performed by cryogenic hardware.

In further embodiments, a phase estimation technique is performed by a classi cal computer; and a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique. For example, the classical computer can be conhgured to cooperatively control the quantum comput ing device and perform the measurement. Additionally, in these embodiments, the phase estimation technique is a random walk technique and includes an unwinding procedure that step backs a current phase estimate based on receiving inconsistent data from an experiment. In particular implementations, the unwinding procedure reduces a mean error by restarting the procedure while retaining some information from at least one previous application of the method and/or using majority voting over different random answers. Further, in some implementations, the unwinding step causes the random walk technique to return to a location before a hrst datum was taken.

The foregoing and other objects, features, and advantages of the disclosed tech nology will become more apparent from the following detailed description, which proceeds with reference to the accompanying hgures.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic block diagram illustrating a circuit for measuring a single datum in an iterative phase estimation process.

FIG. 2 is a set of graphs in which results are presented of an algorithm with unwinding steps that can continue backwards past the initial prior.

FIG. 3 is a set of graphs showing histograms over log-losses for many different trials.

FIG. 4 is a set of graphs that show histograms over log-losses for many different trials using actual data only, compared to the mean loss (Bayes risk) and the median loss. FIGS. 5 and 6 are graphs showing results where the frequentist risk is considered rather than the traditional Bayes risk.

FIG. 7 illustrates a generalized example of a suitable classical computing envi ronment in which several of the described embodiments can be implemented.

FIG. 8 is an example of a possible network topology (e.g., a client-server network) for implementing a system according to the disclosed technology.

FIG. 9 is another example of a possible network topology (e.g., a distributed computing environment) for implementing a system according to the disclosed tech nology is depicted.

FIG. 10 is an exemplary system for implementing the disclosed technology that includes a classical computing environment and a qantum computing environment.

FIG. 11 is a flowchart showing a generalized example embodiment for imple menting an embodiment of the disclosed technology.

FIG. 12 is a flowchart showing another generalized example embodiment for implementing an embodiment of the disclosed technology.

FIG. 13 is a flowchart showing a further generalized example embodiment for implementing an embodiment of the disclosed technology.

FIG. 14 is a flowchart showing yet another generalized example embodiment for implementing an embodiment of the disclosed technology.

DETAILED DESCRIPTION

I. General Considerations

As used in this application, the singular forms “a,” “an,” and “the” include the plural forms unless the context clearly dictates otherwise. Additionally, the term“includes” means“comprises.” Further, the term“coupled” does not exclude the presence of intermediate elements between the coupled items. Further, as used herein, the term“and/or” means any one item or combination of any items in the phrase.

Although the operations of some of the disclosed methods are described in a par ticular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specihc language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached hgures may not show the various ways in which the disclosed systems, methods, and apparatus can be used in conjunction with other systems, methods, and apparatus. Additionally, the description some times uses terms like“produce” and“provide” to describe the disclosed methods. These terms are high-level abstractions of the actual operations that are performed. The actual operations that correspond to these terms will vary depending on the particular implementation and are readily discernible by one of ordinary skill in the art.

II. Introduction

Phase estimation is widely used throughout quantum information to learn the eigenvalues of unitary operators. This is a highly useful step in realizing compu tational speedups in areas such as applications that use Shor’s algorithm, machine learning, quantum simulation, and many other diverse quantum computing applica tions. Moreover, the eigenvalues of unitary operators can carry information about physical parameters, such that phase estimation is useful in quantum metrology applications as well.

One approach to minimizing the quantum resources required for phase estimation is iterative phase estimation , in which one repeatedly uses the unitary of interest to write a phase onto a single-qubit register, and then processes the data collected from these measurements using classical resources. The data obtained from each iteration can then be used to determine the next measurement to perform, such that classically adaptive protocols are naturally expressed in the iterative phase estimation framework. Across applications for phase estimation, there is a beneht to formulating approaches to iterative phase estimation that allow for adaptivity and data processing with very modest classical resources.

In this disclosure, example embodiments that greatly reduce the memory re sources needed for performing phase estimation, reduces the power requirements for performing phase estimation, and/or provide other computing improvements are presented. For instance, certain embodiments provide a new technique that uses approximately 250 bits of classical memory between iterations and that is entirely deterministic conditioned on the experimental data record. Other proposed ap proaches require signihcantly higher memory requirements. Several of the disclosed embodiments (including Algorithm 1 and Algorithm 2 below) are uniquely well- suited not only for implementation on FPGAs, but also on an application-specihc integrated circuit (ASIC) or on tightly memory-bound microcontroller platforms. This in turn signihcantly reduces the cost required for implementing quantum algo rithms and new metrology protocols such as distributed sensors

Concretely, consider a family of unitary operators U(t) for a real parameter t and a quantum state |w) such that for all t U(t) |w) = e ^{iwί } |w) for an unknown real number w. Now consider performing controlled applications of U(t) on a copy of the state |w) in order to learn w.

There are many ways that the learning problem for phase estimation can be formalized. While the most commonly used methods have historically estimated the phase in a bit-by-bit fashion, Bayesian approaches to learning w have recently gained in popularity because of their robustness and their statistical efficiency. The idea behind such methods is to quantify the uncertainty in w via a prior probability distribution, . Then conditioned on measuring an outcome d the probability distribution describing the uncertainty in w conditioned on the measurement is

where Pr(cf) is a normalization factor and Pr is the likelihood of the experiment reproducing the observation d given that the phase ut was the true eigenphase of U(t).

The art of Bayesian phase estimation is then to choose experiments in such a way to minimize the resources needed to reduce the uncertainty in an estimate of w, given by the estimator ώ. Adaptive versions of Bayeisan phase estimation are known to achieve Heisenberg limited scaling and come close to saturating lower bounds on the uncertainty in w as a function of experimental time or number of measurements. A complication that arises in choosing a Bayesian method is that each such a method requires different amounts of experimental time, total number of measurements, classical memory and processing time and robustness to experimental imperfections. The latter two can be of concern in present-day applications where any form of Bayesian inference that requires classical processing time that is comparable to the coherence time (which is often on the order of microseconds). To this end, finding simple phase estimation methods that are robust, efficient, and can be executed within a timescale of hundreds of nanoseconds are desirable.

In this disclosure, the primary focus is on the general case of phase estimation with continuous-time families of unitary operators U(t), rather than the discrete time case of U (M St) = V ^{M } for some time fixed unitary operator V, time interval St and positive integer M. As the more general case is considered, it is not assumed that w G [0, 2p). This implies that one can assign as a loss function L(U, I2J) := (w— ώ) ^{2 }. That is, an estimate ώ is penalized by its squared error from the true eigenphase w.

III. Example Random Walk Technique

A notable difference between embodiments of the disclosed approach and most other Bayesian methods that have been proposed is that embodiments of the dis closed technology are entirely deterministic. Specifically, the posterior mean (which is used in certain embodiments as the estimate of the true eigenphase) shifts left or right upon collection of each datum by a fixed amount that depends only on the ex perimental outcome. Thus, the trajectory that the estimate of the eigenphase takes as the experiment proceeds follows a random walk with an exponentially shrinking stepsize. This simplicity allows one to not only store an approximation to the pos terior distribution using very, very little memory; it also only uses basic arithmetic that can be performed within the coherence times of modern quantum devices.

The fundamental experimental template that is used certain embodiments of the disclosed technology is given by FIG. 1. FIG. 1 is a schematic block diagram 100 illustrating a circuit for measuring a single datum in an iterative phase estimation process. Computing the probability of observing d G {0, 1} as an outcome in the circuit shown in FIG. 1 gives the likelihood function for phase estimation,

Equipped with a likelihood function, one can thus reason about the posterior prob ability for a datum d by using Bayesian inference.

Rather than performing exact Bayeisan inference, which is not efficient because the memory required grows exponentially with the number of bits of precision needed, embodiments of the disclosed technology use a form of approximate Bayesian inference. In particular, in one example embodiment, it is assumed that the prior distribution is Gaussian at each step:

Such priors can be efficiently represented because they are only a function of m and s . Unfortunately, the conjugate priors for (2) are not Gaussian which means that the posterior distribution is not Gaussian:

However, for most experiments that are considered, the posterior distribution will be unimodal and thus the majority of the probability mass will be given by the hrst two moments of the distribution. This justihes the following approximation,

where m' and s' are chosen to matrch the posterior mean and posterior standard deviation. Specihcally,

and similarly

Here, one can take as an approximation that the prior distribution is a Gaussian distribution at each step, and thus the prior can be characterized by its mean m := E[w] and variance The Bayes update then consists of hnding the updated mean and updated variance which one can then use as the prior distribution at the next step. For the phase estimation likelihood and under the assumption of prior Gaussianity, one can do this explictly. In calculating the update, it can be assumed without loss of generality that under the prior, m _{0 } = 0 and s = 1; the general case is obtained from this case by the standard location scale transformation. The update rule can be expressed explicitly without the use of rescaling at the end of the derivation. Then, the rescaled update rule is given by

where

Since the posterior variance describes the error that one should expect to be incurred in estimating w with the currently available observations, one can then choose t and c _{<Jinv } to minimize the posterior variance and hence minimize the errors that are incurred. The posterior variance is minimized for both d = 0, 1 at t = s and u _{inv } = m, such that one can specialize (6) at these values to obtain a simpler update rule,

In this way, one can derive the particle guess heuristic for the special case of phase estimation with a Gaussian conjugate prior.

Notably, the variance update in (7) does not depend on which datum is observed; the reduction in variance at each step is wholly deterministic. Similarly, the mean shifts by the same amount at each step, such that the only dependence on the data of the Gaussian approximation to the posterior distribution is through which direction the mean shifts at each observation. One can thus think of the Gaussian approximation as yielding a random walk that is damped towards the true value of w. Following this identihcation, one can obtain Algorithm 1. Algorithm I can fail in two different ways. First, that the mean can only shift by hxed amount at each step implies that the walk on w can not go further than

away from its initial position. Assuming m _{0 } = 0 and s _{0 } = 1 correctly describe the true probability distribution from which w are chosen, this corresponds to a failure probability of 0.3%. If one takes a prior that is too“tight” by a factor of about 20% (corresponding to a single step of the algorithm), then the failure probability due to hnite support of the random walk can be as large as 1.8%. Thankfully, this is an easy failure modality to address, in that one can use an initial prior distribution with an artihcially wider variance than the actual prior.

The other failure modality is more severe, in that the Gaussian approximation itself can fail. By contrast to rejection hltering and other such approaches, in embod iments of the disclosed random walk phase estimation, the variance is not selected based on the data itself, but based on an offline analytic computation. Thus, one desirably has a way to correct for approximation failures. For certain embodiments, this done by unwinding data records, returning to an earlier state of the random walk algorithm. In particular, since the data record uniquely describes the entire path of a random walker, one can step backwards along the history of a random walk.

To determine when one should unwind in this fashion, certain embodiments perform additional measurements whose outcomes can be accurately predicted if the approximation is still accurate. Choosing c _{<Jinv } = m and t = r _{ckeck }/a for a scale parameter one can obtain that the probability of a 0 outcome is

where is assumed to be the normal distribution with mean m and variance per the Gaussianity assumption. For T _{clie }ck = 1 , this corresponds to a false negative rate (that is, inferring the approximation has failed when it has not) of approximately 19.6%, while gives a false negative rate of 0.002%. The unwinding is listed together with the original random walk in Algorithm 2. Notably, both the consistency check data and the unwound data are still useful data. In situations where the data can be efficiently recorded for later use, the entire data record including all unwound data and consistency checks may be used in postprocessing to verify that the estimate derived from the random walk is feasible. In the numerical results presented in Section IV, the example of particle filtering is used to perform postprocessing using the QInfer software library.

IV. Further Analyses and Embodiments

A. Introduction

FIG. 2 is a set 200 of graphs in which results are presented of using Algorithm 2 with unwinding steps that can continue backwards past the initial prior. In particular, the graphs in FIG. 2 show histograms over log-losses for many different trials, compared to the mean loss (Bayes risk) and the median loss. The right column shows of FIG. 2 shows the log-loss versus the true value of w, compared with the finite range (thick lines) in which each walker can explore. The top row of FIG. 2 illustrates trials that are run using the basic approach of Algorithm 1. The middle of row of FIG. 2 illustrates trials that are run using one unwinding step, as in Algorithm 2. And the bottom row of FIG. 2 illustrates trials that are run using two unwinding steps, as in Algorithm 2.

Still further, FIG. 3 is a set 300 of graphs showing histograms over log-losses for many different trials, using Algorithm 2 with u _{UIlwind } = 1. The bottom row shows histograms over log-losses for the same trials as in the top row, but using particle filtering with Liu- West resampling to incorporate consistency check and unwound data.

In this Appendix, the significance of this rule is underscored to allow the random walk to exceed the finite constraitns of the basic walk preseented Algorithm 1 by repeating the previous analysis with unwinding on actual data only.

That is, in the results presented within FIG. 4, if an unwinding step would pop an empty stack D, then the unwinding step is aborted instead.

In particular, FIG. 4 is a set 400 of graphs that show histograms over log-losses for many different trials using actual data only, compared to the mean loss (Bayes risk) and the median loss. The right column shows of FIG. 4 shows the log-loss versus the true value of w, compared with the finite range (thick lines) in which each walker can explore. The top row of FIG. 4 illustrates trials that are run using the basic approach of Algorithm 1. The middle of row of FIG. 4 illustrates trials that are run using one unwinding step, as in Algorithm 2. And the bottom row of FIG. 4 illustrates trials that are run using two unwinding steps, as in Algorithm 2.

It is noted that the constrained unwinding, while still an improvement over the initial version of Algorithm I, does not adequately deal with the effects of the hnite support of the basic walk. This observation is underscored by the results presented in graphs 500 and 600 of FIGS. 5 and 6, where the frequentist risk is considered rather than the traditional Bayes risk. In particular, the top sections of FIGS. 5 and 6 show results for unwinding constrained by an initial prior, and the bottom section shows results of unwinding as described in Algorithm 2. The top row of each section shows the the frequentist risk and median loss as a function of |w|, the absolute value of the true w used to generate data in each trial, and the bottom row of each section shows the median number of unwinding steps taken to accept 100 experiments. The columns in FIGS. 5 and 6 show the different numbers of unwinding steps allowed.

Concretely, the frequentist risk is dehned as the average loss that incurred by an estimation when the true value of w is hxed, It is then

observed that without allowing the unwinding step to proceed backwards from the initial prior, the frequentist risk suddenly worsens by approximately 10 ^{20 } when the hnite extent of the random walk begins to dominate.

B. Decision Theoretic Bounds

In this disclosure, the disclosed algorithm is expressed as approximating the Bayesian mean estimator (BME) This choice is motivated by a decision theoretic argument, in which one penalizes an estimator by a particular amount S(ώ(Ό), w) for returning a particular estimate Co{D) when the true value of the parameter of interest is w. A function L which one can use to assign such penalties is called a loss function ; as described in the main body, the quadratic loss is a particularly useful and broadly applicable loss

function. For purposes of this discussion, the subscript Q is dropped when it is clear from context that the discussion is referring to this choice.

In any case, once one adopts such a loss function, one can then reason about the average loss incurred by a particular estimator. In particular, the Bayes risk r is dehned as the expected loss over all hypotheses w ~ p drawn from a prior p and over all data sets D. That is,

The BME minimizes the Bayes risk for any loss function is of the form L U) = — w) for a convex function F. This holds for the quadratic loss, as well as a number of other important examples such as the Kullback-Leibler divergence.

Having thus argued that embodiments of the disclosed approach are approximately optimal for the Bayes risk, one may then be interested in how well the disclosed algorithm approximatly achieves the Bayes risk. To address this, it is noted that the van Trees inequality lower bounds the Bayes risk achivable by any estimator ώ as

where I is the usual Fisher information, and where is a correction for the information provided by the prior

distribution p. Thus, the van Trees inequality can be thought of as a correction to the traditional Cramer-Rao bound for the effects of prior information. Whereas the Cramer-Rao bound only holds for unbiased estimators, the BME is asymptotically unbiased but may in general be biased for a hnite-sized data set.

In the case that p is a normal distribution L/ ^{" }(0, 1), however, the correction I _{Q } for the bias introduced by the prior distribution is identically zero, such that the van Trees and Cramer-Rao bounds coincide. More generally, the set of true values w for which the Cramer-Rao bound can be violated by a biased estimator approaches Lebesgue measusure zero asymptotically with the number of observations n _{exp }, such that the Cramer-Rao bound is useful for characterizing the performance of biased estimators such as the BME.

Applying this bound to Algorithm 2, it is noted that the experiments chosen by the algorithm are deterministic unless the unwinding step proceeds backwards from the initial prior. Thus, the Cramer-Rao and hence the van Trees inequalities can be calculated explicitly for the particular experimental choices made by Algorithm 2, yielding thaw

where

Notably, the van Trees inequality holds in expectation, such that the loss in any particular experiment can be signihcantly better than (12). Moreover, the consistency checks utilized by Algorithm 2 provide additional data not included in the bound given by ( 12), such that the disclosed algorithms violate the van Trees inequality evaluated only at the accepted measurement results. In that sense, the disclosed algorithms can be thought of as heuristics for importance sampling from amongst the data, such that the usual discussions of optimality and postselection apply.

V. Example Computing Environments

FIG. 7 illustrates a generalized example of a suitable classical computing environment 700 in which several of the described embodiments can be implemented. The computing environment 700 is not intended to suggest any limitation as to the scope of use or functionality of the disclosed technology, as the techniques and tools described herein can be implemented in diverse general-purpose or special-purpose environments that have computing hardware.

With reference to FIG. 7, the computing environment 700 includes at least one processing device 710 and memory 720. In FIG. 7, this most basic conhguration 730 is included within a dashed line. The processing device 710 (e.g., a CPU or microprocessor) executes computer-executable instructions. In a multi-processing system, multiple processing devices execute computer-executable instructions to increase processing power. The memory 720 may be volatile memory (e.g., registers, cache, RAM, DRAM, SRAM), non-volatile memory (e.g., ROM, EEPROM, flash memory), or some combination of the two. The memory 720 stores software 780 im- plementing tools for peforming any of the phase estimation techniques as described herein. The memory 720 can also store software 780 for synthesizing, generating, or compiling quantum circuits resulting from and/or supported by the phase estimation techniques as described herein.

The computing environment can have additional features. For example, the computing environment 700 includes storage 740, one or more input devices 750, one or more output devices 760, and one or more communication connections 770. An interconnection mechanism (not shown), such as a bus, controller, or network, interconnects the components of the computing environment 700. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing environment 700, and coordinates activities of the components of the computing environment 700.

The storage 740 can be removable or non-removable, and includes one or more magnetic disks (e.g., hard drives), solid state drives (e.g., flash drives), magnetic tapes or cassettes, CD-ROMs, DVDs, or any other tangible non-volatile storage medium which can be used to store information and which can be accessed within the computing environment 700. The storage 740 can also store instructions for the software 780 implementing any of the disclosed phase estimation techniques. The storage 740 can also store instructions for the software 780 for generating and/or synthesizing any of the described techniques, systems, or reversible circuits.

The input device(s) 750 can be a touch input device such as a keyboard, touchscreen, mouse, pen, trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 700. The output device(s) 760 can be a display device (e.g., a computer monitor, laptop display, smartphone display, tablet display, netbook display, or touchscreen), printer, speaker, or another device that provides output from the computing environment 700.

The communication connection(s) 770 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media include wired or wireless techniques implemented with an electrical, optical, RF, infrared, acoustic, or other carrier.

As noted, the various methods, phase estimation techniques, circuit design techniques, or compilation/synthesis techniques can be described in the general context of computer-readable instructions stored on one or more computer-readable media. Computer-readable media are any available media (e.g., memory or storage device) that can be accessed within or by a computing environment. Computer-readable media include tangible computer-readable memory or storage devices, such as memory 720 and/or storage 740, and do not include propagating carrier waves or signals per se (tangible computer-readable memory or storage devices do not include propagating carrier waves or signals per se).

Various embodiments of the methods disclosed herein can also be described in the general context of computer-executable instructions (such as those included in program modules) being executed in a computing environment by a processor. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, and so on, that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or split between program modules as desired in various embodiments. Computer-executable instructions for program modules may be executed within a local or distributed computing environment.

An example of a possible network topology 800 (e.g., a client-server network) for implementing a system according to the disclosed technology is depicted in FIG. 8. Networked computing device 820 can be, for example, a computer running a browser or other software connected to a network 812. The computing device 820 can have a computer architecture as shown in FIG. 7 and discussed above. The computing device 820 is not limited to a traditional personal computer but can comprise other computing hardware conhgured to connect to and communicate with a network 812 (e.g., smart phones, laptop computers, tablet computers, or other mobile computing devices, servers, network devices, dedicated devices, and the like). Further, the computing device 820 can comprise an FPGA or other programmable logic device. In the illustrated embodiment, the computing device 820 is conhgured to communicate with a computing device 830 (e.g., a remote server, such as a server in a cloud computing environment) via a network 812. In the illustrated embodiment, the computing device 820 is conhgured to transmit input data to the computing device 830, and the computing device 830 is conhgured to implement a phase estimation technique according to any of the disclosed embodiments and/or a circuit generation or compilation/synthesis methods for generating qunatum circuits based on or in conjunction with any of the phase estimation techniques disclosed herein. The computing device 830 can output results to the computing device 820. Any of the data received from the computing device 830 can be stored or displayed on the computing device 820 (e.g., displayed as data on a graphical user interface or web page at the computing devices 820). In the illustrated embodiment, the illustrated network 812 can be implemented as a Local Area Network (LAN) using wired networking (e.g., the Ethernet IEEE standard 802.3 or other appropriate standard) or wireless networking (e.g. one of the IEEE standards 802.11a, 802.11b, 802. llg, or 802.11h or other appropriate standard). Alternatively, at least part of the network 812 can be the Internet or a similar public network and operate using an appropriate protocol (e.g., the HTTP protocol).

Another example of a possible network topology 900 (e.g., a distributed computing environment) for implementing a system according to the disclosed technology is depicted in FIG. 9. Networked computing device 920 can be, for example, a computer running a browser or other software connected to a network 912. The computing device 920 can have a computer architecture as shown in FIG. 7 and discussed above. In the illustrated embodiment, the computing device 920 is conhgured to communicate with multiple computing devices 930, 931, 932 (e.g., remote servers or other distributed computing devices, such as one or more servers in a cloud computing environment) via the network 912. In the illustrated embodiment, each of the computing devices 930, 931, 932 in the computing environment 900 is used to perform at least a portion of a phase estimation process and/or circuit generation or synthesis/compilation process. In other words, the computing devices 930, 931, 932 form a distributed computing environment in which the phase estima- tion and/or generation/compilation/synthesis processes are shared across multiple computing devices. The computing device 920 is conhgured to transmit input data to the computing devices 930, 931, 932, which are conhgured to distributively implement such as process, including performance of any of the disclosed methods or creation of any of the disclosed circuits, and to provide results to the computing device 920. Any of the data received from the computing devices 930, 931, 932 can be stored or displayed on the computing device 920 (e.g., displayed as data on a graphical user interface or web page at the computing devices 920). The illustrated network 912 can be any of the networks discussed above with respect to FIG. 8.

With reference to FIG. 10, an exemplary system for implementing the disclosed technology includes computing environment 1000. In computing environment 1000, a compiled quantum computer circuit description (including quantum circuits resulting from and/or supported by any of the phase estimation techniques as disclosed herein) can be used to program (or conhgure) one or more quantum processing units such that the quantum processing unit(s) implement the circuit described by the quantum computer circuit description.

The environment 1000 includes one or more quantum processing units 1002 and one or more readout device(s) 1008. The quantum processing unit(s) execute quantum circuits that are precompiled and described by the quantum computer circuit description. The quantum processing unit(s) can be one or more of, but are not limited to: (a) a superconducting quantum computer; (b) an ion trap quantum computer; (c) a fault-tolerant architecture for quantum computing; and/or (d) a topological quantum architecture (e.g., a topological quantum computing device using Majorana zero modes). The precompiled quantum circuits, including any of the disclosed circuits, can be sent into (or otherwise applied to) the quantum processing unit(s) via control lines 1006 at the control of quantum processor controller 1020. The quantum processor controller (QP controller) 1020 can operate in conjunction with a classical processor 1010 (e.g., having an architecture as described above with respect to FIG. 7) to implement the desired quantum computing process. In the illustrated example, the QP controller 1020 further implements the desired quantum computing process via one or more QP subcontrollers 1004 that are specially adapted to control a corresponding one of the quantum processor(s) 1002. For instance, in one example, the quantum controller 1020 facilitates implementation of the compiled quantum circuit by sending instructions to one or more memories (e.g., lower-temperature memories), which then pass the instructions to low-temperature control unit(s) (e.g., QP subcontroller(s) 1004) that transmit, for instance, pulse sequences representing the gates to the quantum processing unit(s) 1002 for implementation. In other examples, the QP controller(s) 1020 and QP subcontroller(s) 1004 operate to provide appropriate magnetic helds, encoded operations, or other such control signals to the quantum processor(s) to implement the operations of the compiled quantum computer circuit description. The quantum controller(s) can further interact with readout devices 1008 to help control and implement the desired quantum computing process (e.g., by reading or measuring out data results from the quantum processing units once available, etc.)

With reference to FIG. 10, compilation is the process of translating a high-level description of a quantum algorithm into a quantum computer circuit description comprising a sequence of quantum operations or gates, which can include the circuits as disclosed herein. The compilation can be performed by a compiler 1022 using a classical processor 1010 (e.g., as shown in FIG. 7) of the environment 1000 which loads the high-level description from memory or storage devices 1012 and stores the resulting quantum computer circuit description in the memory or storage devices 1012.

In other embodiments, compilation and/or verihcation can be performed remotely by a remote computer 1060 (e.g., a computer having a computing environment as described above with respect to FIG. 7) which stores the resulting quantum computer circuit description in one or more memory or storage devices 1062 and transmits the quantum computer circuit description to the computing environment 1000 for implementation in the quantum processing unit(s) 1002. Still further, the remote computer 1000 can store the high-level description in the memory or storage devices 1062 and transmit the high-level description to the computing environment 1000 for compilation and use with the quantum processor(s). In any of these scenarios, results from the computation performed by the quantum processor(s) can be communicated to the remote computer after and/or during the computation process. Still further, the remote computer can communicate with the QP controller(s) 1020 such that the quantum computing process (including any compilation, verihca- tion, and QP control procedures) can be remotely controlled by the remote computer 1060. In general, the remote computer 1060 communicates with the QP controller(s) 1020, compiler/synthesizer 1022, and/or verihcation tool 1023 via communication connections 1050.

In particular embodiments, the environment 1000 can be a cloud computing environment, which provides the quantum processing resources of the environment 1000 to one or more remote computers (such as remote computer 1060) over a suitable network (which can include the internet).

VI. Example General Embodiments

Further details for exemplary non-limiting embodiments of the disclosed tools and techniques are shown in FIGS. 11-14.

FIG. 11 is a flowchart 1100 showing a generalized example embodiment for implementing an embodiment of the disclosed technology. The particular operations and sequence of operations should not be construed as limiting, as they can be performed alone or in any combination, subcombination, and/or sequence with one another. Additionally, the illustrated operations can be performed together with one or more other operations.

At 1110, an iterative phase estimation technique is performed in which the phase estimation is performed by a classical computer that is conhgured to cooperatively control a quantum computing device. Further, in this embodiment, the phase estimation technique comprises deterministically choosing experimentral parameters. In particular implementations the phase estimation technique is deterministically generated by choosing parameters (e.g., for a random walk approach) that yield optimal information under the assumption of a Gaussian prior. Further, in some implementations, the experimental parameters include the number of times the unitary operation is applied and/or other experimental parameters, based on (for example) the direction of each step in the algorithm is determined by data and prior experiments.

Further, in some embodiments, and as shown in FIG. 11, the iterative phase estimation technique comprises, applying (at 1112) a phase to a qubit register of a quantum computing device; estimating (at 1114) the phase of the qubit register; and adjusting (at 1116) a future measurement of the phase of the qubit register based on the phase estimation performed by the classical computer.

Additionally, in some embodiments, the phase estimation technique is performed to determine eigenvalues of a unitary operator represented by a qubit of the quantum computing device. And, in certain embodiments, the phase estimation technique uses a random walk approach. The random walk approach can, for example, adjust an estimate of the posterior mean of the phase right or left based on a single measurement of the qubit register, and/or can adjust an estimation of a posterior mean of the phase upward or downward based on a single measurement of the qubit register.

FIG. 12 is a flowchart 1200 showing a generalized example embodiment for implementing an embodiment of the disclosed technology. The particular operations and sequence of operations should not be construed as limiting, as they can be performed alone or in any combination, subcombination, and/or sequence with one another. Additionally, the illustrated operations can be performed together with one or more other operations.

At 1210, a phase estimation technique is performed by a classical computer.

At 1212, a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique.

Still further, in the illustrated embodiment, the classical computer is conhgured to cooperatively control a quantum computing device and generate a phase estimation using a random walk technique.

In some example implementations, a decision to adjust an estimate of the posterior mean of the phase is adjusted left or right based on a single experiment and/or an estimate of the posterior mean of the phase is adjusted up or down based on a single experiment. Further, in some implementations, the classical processing is performed by cryogenic hardware.

FIG. 13 is a flowchart 1300 showing a generalized example embodiment for implementing an embodiment of the disclosed technology. The particular operations and sequence of operations should not be construed as limiting, as they can be performed alone or in any combination, subcombination, and/or sequence with one another. Additionally, the illustrated operations can be performed together with one or more other operations.

At 1310, a phase estimation technique is performed by a classical computer.

At 1312, a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique.

In the illustrated embodiment, the classical computer is conhgured to cooperatively control a quantum computing device and perform the measurement. Still further, in the illustrated embodiment, the phase estimation is generated using a technique without random number generation (e.g., a non-random technique). In particular implementations, the phase estimation technique only stores a current best estimate of an eigenphase. Further, in some implementations, the classical processing is performed by cryogenic hardware.

FIG. 14 is a flowchart 1400 showing a generalized example embodiment for implementing an embodiment of the disclosed technology. The particular operations and sequence of operations should not be construed as limiting, as they can be performed alone or in any combination, subcombination, and/or sequence with one another. Additionally, the illustrated operations can be performed together with one or more other operations.

At 1410, a phase estimation technique is performed by a classical computer.

At 1412, a state of at least one qubit of a quantum computing device is measured based on results from the phase estimation technique.

In the illustrated embodiment, the classical computer is conhgured to cooperatively control a quantum computing device and perform the measurement. Additionally, the phase estimation technique is a random walk technique and includes an unwinding procedure that step backs a current phase estimate based on receiving inconsistent data from an experiment. In particular implementations, the unwinding procedure reduces a mean error by restarting the procedure while retaining some information from at least one previous application of the method and/or using majority voting over different random answers. Further, in some implementations, the unwinding step causes the random walk technique to return to a location before a hrst datum was taken.

VII. Concluding Remarks

Having described and illustrated the principles of the disclosed technology with reference to the illustrated embodiments, it will be recognized that the illustrated embodiments can be modihed in arrangement and detail without departing from such principles. For instance, elements of the illustrated embodiments shown in software may be implemented in hardware and vice-versa. Also, the technologies from any example can be combined with the technologies described in any one or more of the other examples. It will be appreciated that procedures and functions such as those described with reference to the illustrated examples can be implemented in a single hardware or software module, or separate modules can be provided. The particular arrangements above are provided for convenient illustration, and other arrangements can be used.

**Previous Patent:**APPARATUS AND METHODS FOR CREATING A THERMAL INTERFACE BOND BETWEEN A SEMICONDUCTOR DIE AND A PASSIV...

**Next Patent: AN INVENTORY MANAGEMENT SYSTEMS AND METHOD**