Quantum advantage for gradient estimation using quantum circuits
By using the phase oracle of the SFQG method in quantum circuits, the complexity problem of the existing quantum gradient algorithm on non-Gevrey functions is solved, efficient gradient estimation and market risk calculation of financial derivatives are realized, and the calculation efficiency is significantly improved. and resource utilization.
Patent Information
- Application Number
- CN202280089227.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-19
- Filing Date
- 2022-11-18
- Publication Date
- 2024-08-30
AI Technical Summary
The existing quantum gradient algorithm cannot guarantee the complexity scaling advantage when processing non-Gevrey class G1/2 functions, and cannot effectively calculate the market risk and Greek value of financial derivatives.
A quantum gradient algorithm called the SFQG method is proposed to achieve gradient estimation for financial derivatives by using a phase oracle defined by a finite difference approximation greater than zero in a quantum circuit, providing a complexity superior to classical calculations Scaling advantage, and does not rely on the Gevrey class G1/2 properties of the function.
It realizes the advantages of secondary error scaling in financial derivatives pricing and market risk calculations, significantly reduces resource requirements, improves calculation efficiency, reduces the logic clock rate to 1/7 of the original, and can be processed in parallel to achieve the same goal as serial execution. Same total running time.
Smart Images

Figure CN118575181A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Patent Application Serial No. 63 / 281,313 filed on November 19, 2021, which is incorporated herein by reference. Background Art 1. Technical Field
[0004] The present disclosure relates generally to quantum gradient algorithms and, more particularly, to quantum circuits that implement a phase oracle to determine a gradient.
[0005] 2. Description of Related Art
[0006] Jordan (arXiv:quant-ph / 0405146) and Gillyén (arXiv:1711.00465) describe a quantum algorithm for determining the gradient of a function. However, if the algorithm is applied to smooth functions (Gevry class G 1 / 2 functions), the algorithm can only guarantee complexity scaling advantages over classical computation. Summary of the invention
[0007] Many functions describing real-world phenomena are not of Gevrey type G. 1 / 2 Therefore, the algorithm described by Jordan and Gillyén does not guarantee complexity scaling advantages for these types of functions. In contrast, the present disclosure describes quantum circuits that implement a quantum gradient algorithm (referred to as the SFQG method) that provides advantages over classical computation for functions without requiring that the functions be of Gevrey class G. 1 / 2 function.
[0008] In some embodiments, a quantum gradient algorithm (e.g., the SFQG method) includes a phase oracle defined by a finite difference approximation with an order greater than zero. Quantum gradient algorithms can be implemented by preparing and executing quantum circuits on the qubits of a computing system. It can be given by the following formula: where m is the order of the finite difference approximation greater than zero, |x> is a k-dimensional vector representing a set of k parameters, S is a scaling factor that controls the accuracy of the finite difference approximation, and is the coefficient of the m-th order finite difference approximation. For a function f(x) describing a resource quantity, where x represents a set of k parameters of the quantity, the quantum gradient algorithm can be repeatedly executed by a quantum computing system to determine the function f(x) at a point x 0Among other advantages, the complexity of quantum gradient algorithms scales to or lower.
[0009] Other aspects include components, devices, systems, improvements, methods, processes, applications, computer-readable media, and other techniques related to any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Embodiments of the present disclosure have other advantages and features that will become more readily apparent from the following detailed description and the appended claims when taken in conjunction with the examples in the accompanying drawings, in which:
[0011] Figure 1 Example probability distributions resulting from numerical simulations of the quantum gradient algorithm are shown.
[0012] Figure 2 An example probability distribution resulting from a second numerical simulation of a quantum gradient algorithm is shown.
[0013] Figure 3 An example quantum circuit diagram of the simulation-free quantum gradient (SFQG) algorithm is shown.
[0014] Figure 4 Example probability distributions resulting from numerical simulations of the SFQG algorithm are shown.
[0015] Figure 5a Shown for Figure 4 Example discrete probability distribution for a basket option.
[0016] Figure 5b Shown for Figure 4 Example log-likelihood plot for a basket option.
[0017] Figure 6 Example simulation measurement results are shown.
[0018] Figure 7 is a method diagram illustrating an example method for determining the gradient of a function f(x) describing a quantity of a resource.
[0019] FIG. 8A to FIG. 8B is a block diagram illustrating a computing system in accordance with one or more embodiments.
[0020] FIG. 8C to FIG. 8D is a block diagram illustrating an embodiment of a quantum computing system.
[0021] Fig. 8E is a flow chart illustrating an example execution of a quantum routine on a computing system.
[0022] Fig. 9is an example architecture of a classical computing system. DETAILED DESCRIPTION
[0023] The drawings and the following description relate to the preferred embodiments by way of illustration only. It should be noted that from the following discussion, alternative embodiments of the structures and methods disclosed herein will be readily identified as viable alternatives that can be employed without departing from the principles claimed.
[0024] A quantum algorithm for calculating the market risk of financial derivatives is disclosed. Quantum amplitude estimation can accelerate derivative pricing quadratically with a target error, and it can be further extended to a quadratic error scaling advantage in market risk calculations. The use of a quantum gradient estimation algorithm can deliver further quadratic advantages in the number of associated market sensitivities (called "Greek values"). By numerically simulating the quantum gradient estimation algorithm for actual financial derivatives of interest, example Greek values can be successfully estimated, while making the actual resource requirements significantly lower than the resource requirements expected by the theoretical complexity limit. This additional advantage in calculation reduces the estimated logical clock rate for quantum advantage from Chakrabarti (arXiv:2012.03819) to about 1 / 7 of the original, from 50MHz to 7MHz, even for a moderate number (4) of Greek values by industry standards. In addition, using a system with sufficient resources, quantum algorithms can be parallelized across up to 60 QPUs, in which case the logical clock rate of each device used to achieve the same total runtime as serial execution is about 100kHz. Throughout this disclosure, several different combinations of quantum and classical methods that can be used to calculate market risk of financial derivatives (among others) are summarized and compared.
[0025] 1. Introduction
[0026] Quantum algorithms have the potential to speed up certain real-world computations, such as pricing and risk analysis of financial derivatives. Some of these algorithms use quantum amplitude estimates to achieve quadratic advantages over classical Monte Carlo methods, which are used for the most computationally expensive pricing in practice. Let ∈ p is the pricing error. The quantum advantage comes from the scaling of the classical Monte Carlo simulation to Quantum algorithms have scaling
[0027] A relevant and important financial application is the calculation of the sensitivity of derivative prices to model and market parameters. This is equivalent to calculating the gradient of the derivative price with respect to the input parameters. An example commercial use for calculating these gradients is to achieve hedging of market risk arising from exposure to derivative contracts. For financial companies, hedging of such risk may be critical. In some cases, such as when the derivative prices have an analytical form, the gradients can be calculated analytically. In some embodiments, the disclosed systems and methods calculate gradients in the absence of a closed form for the prices and when the classical control is a Monte Carlo simulation. The gradients of financial derivatives are often called Greek values because these quantities are often labeled using Greek value table characters. For k Greek values (k-dimensional gradients), the classical finite difference method can calculate prices at multiple points in each parameter dimension for use of scaling.
[0028] A quantum speedup of the computation of Greek values is to construct a finite difference approximation of the price of a financial derivative on a quantum computer and perform magnitude estimation on this quantity rather than its price. Section 2.4 shows that this method, known as the "semiclassical method", scales as (k / c), where c is the target error for the gradient. However, the scaling of the number of Greek values k can be further improved using a quantum algorithm for computing the gradient.
[0029] The quantum algorithm for computing the gradient component of a superposition was originally introduced by Jordan (arXiv:quant-ph / 0405146) and recently re-proposed by Gilyén (arXiv:1711.00465), however, these references do not consider the application of quantum algorithms to Greek value computation. Gilyén performs an analysis of Jordan's original quantum gradient algorithm to show that its overall scaling is Gillyén then generalized the algorithm to any higher order m and showed that The quantum gradient algorithm has a special class of smooth functions. For simplicity, in the rest of this disclosure, this result is referred to as the GAW quantum gradient algorithm.
[0030] In this disclosure, the algorithmic framework from Gillyén is applied to compute financial Greeks and several variants of the quantum gradient algorithm are studied. Chakrabarti's quantum pricing method is used as a subroutine to the GAW algorithm to numerically estimate the resource requirements for computing the Greeks for two types of option contracts: (a) European call options, which can be used as a benchmark to establish the effectiveness of the algorithm and estimate the corresponding resource requirements, and (b) path-dependent basket options, which have pricing curves representing typical financial derivative contracts of practical interest.
[0031] The present disclosure also introduces a second-order accurate quantum gradient algorithm, the m=1 version, for which an explicit compact quantum implementation is disclosed that does not rely on block coding or Hamiltonian simulation in the case of financial derivatives. The simulation-free quantum gradient (SFQG) method can be used to calculate Greek values of path-dependent derivatives, and the construction cost can be much lower than that of Hamiltonian-based methods. In addition, the disclosed method can improve the overall performance of the quantum gradient estimation algorithm by adopting the maximum likelihood (MLE) method to extract the most likely estimate of the gradient with a specific confidence interval. With these tools, the quantum advantage of risk calculation achievable by quantum computers with a clock rate that is 1 / 7 of the clock rate used for pricing itself can be exploited. This is described in more detail in Section 7.
[0032] Furthermore, this disclosure includes a comparison between quantum, classical, and semiclassical gradient estimation algorithms in the context of financial derivatives, summarized in Table 4.
[0033] Additional new contributions are highlighted in the following paragraphs:
[0034] Section 4 describes a numerical study of the quantum gradient estimation algorithm from Gilyén and Jordan for functions of practical interest in financial market risk, and compares the observed oracle costs with theoretical expectations.
[0035] Section 5 describes a method for constructing a second-order accurate oracle for quantum gradient estimates of functions computed using quantum amplitude estimates, which uses cheaper resources than existing methods.
[0036] Section 6 describes how the gradient estimation algorithm can be improved using classical maximum likelihood estimation (MLE).
[0037] Section 7 provides resource estimates for quantum advantage in pricing financial derivatives.
[0038] Section 9 describes techniques for employing automatic differentiation (AD) methods on quantum computers, which can enhance quantum gradient estimation performance in some cases.
[0039] 1.1 Quantum amplitude estimation
[0040] In various embodiments, the gradient computation algorithm extends the quantum acceleration method for pricing derivatives based on quantum amplitude estimation (QAE). QAE is further described herein. Let the k-dimensional vector x represent the set of market data parameters of the derivative represented by the underlying state |x> and its price f(x), which is rescaled to satisfy f(x)∈[0,1]. Assume that there exists a unitary operator A that produces the state
[0041]
[0042] Among them, |ψ 0 (x)> and |ψ 1 (x)> is an arbitrary normalized quantum state. The state |x> representing the market data parameter only acts as a 's input and can be ignored for the rest of this subsection.
[0043] The QAE estimate has the repeated application operator f(x), where and in is the identity matrix. The QAE algorithm relies on constructing Applying in equation (1) The resulting state can then be written The facts in the eigenbasis of :
[0044]
[0045] where |ψ + (x)> and |ψ - (x)>Yes The eigenvector of ±2iθ(x) , and f(x) = sin 2 (θ(x)). Let the integer m>0 represent the number of digits of precision with which we want to estimate the amplitude. Applicable to |0> m The m-qubit register initialized at , and using this register to control The different powers of The phase recoil of the eigenvalues
[0046]
[0047] in And M = 2 m Subsequently, applying the inverse quantum Fourier transform on the first register and measuring on a computational basis gives or This can then be classically mapped to an estimate for f(x) using:
[0048]
[0049] In order to have a high probability of adding the error c p Approximation within QAE use Call. By counting the oracle and The query complexity of the QAE algorithm is measured by the number of calls, and it is scaled to In the case of financial derivatives, the function f is the expected value of the payoff of the derivative contract.
[0050] 2. Gradient Methods for Financial Derivatives
[0051] Several methods for calculating the gradient of financial derivatives can be used. The complexity of these methods is summarized in Table 1.
[0052] 2.1 Greek Values
[0053] make is the vector of values of d underlying assets at time t. is the path of a discrete-time multivariate random process that describes the current (daily) market value of these assets as S 0 Both notations can be used for paths in text. The corresponding probability density function is given by Indicates. is the discounted return on some derivatives on these assets. The price of the derivatives can be calculated using the following formula:
[0054]
[0055] The bars have been removed to indicate the switch from a continuous to a discrete price model. The gradient of this price is known as the Greeks.
[0056] Example 1 (Delta) Consider a single underlying asset (d=1) and compare the underlying asset to the spot price S 0 The gradient is defined as
[0057]
[0058] Other commonly used Greeks are the gradient of price with respect to time T (theta), the volatility of the underlying asset model for S (vega), correlations between assets, or other parameters. Usually calculated for some model and / or market parameter x and then wish to compute the set It is worth noting that in practical cases, k can be on the order of hundreds or thousands. Therefore, k scaling improvements represent an advantage in this context.
[0059] 2.2 Classical finite differences
[0060] make is the pricing function for a fixed return g. Traditionally, the function f can be calculated using the finite difference method by sampling the function f over a sufficiently small region h: The gradient of f is expanded to first order, giving is a good approximation of . 0 The classical finite-difference forward gradient scheme at uses k+1 estimates of f, one at x 0 , and k estimates in each dimension from x 0 Shift h. Then, use Approximate gradient, where is the i-th normalized basis vector. For a more accurate approximation, a second-order scheme using 2k function evaluations can be used, and the gradient can be approximated using the following formula:
[0061]
[0062] Now assume that the function f(x) is estimated with finite accuracy δ ≥ 0. The associated error for the forward or central finite difference formula reads
[0063]
[0064] where p = 1 for forward finite differences and p = 2 for central finite differences. Now suppose we want to achieve a total estimation error of ∈ > 0:
[0065] δ / h+h p ≤∈ (9)
[0066] focuses on asymptotic scaling. While the step size h can be chosen freely, improving the accuracy δ usually involves increased computational cost. Therefore, the goal is to maximize δ by setting h while still achieving the target accuracy ∈. This leads to
[0067] δ=(∈-h p )h=∈ h -h p+1 (10)
[0068] Setting the first derivative on the right-hand side with respect to h to zero results in
[0069] h=(∈ / (p+1)) (1 / p) (11)
[0070] This leads to the optimal δ for target ∈ being given by
[0071]
[0072] When f(x) is approximated by an algorithm that relies on sampling, the number of samples for the target approximation error scales as δ = (1 / M q), where M here denotes the number of samples, and q depends on the convergence rate of the algorithm: q = 1 / 2 for classical Monte Carlo simulation, and q = 1 for QAE. Then, combining all together, we get
[0073]
[0074] Therefore, using p = 2 and q = 1 / 2, the complexity of computing k Greek values using the central difference method with Monte Carlo is This method may be referred to as the classical finite difference (CFD) method.
[0075] 2.3 Finite Differences with Public Random Numbers
[0076] Another approach to calculating the Greeks when Monte Carlo is traditionally used to price derivatives is to use the second order central difference method of equation (7), but by using and The correlation sampling is performed by using the same random number in the Monte Carlo estimation of both terms. In this way, the statistical fluctuations present in the two terms are cancelled out, effectively removing the dependence of the total error on the discretization step size h. In this case, the complexity of estimating the k Greek values is This is also traditionally optimal. This method can be called classical finite differences with common random numbers (CFD-CRN).
[0077] 2.4 Semiclassical quantum gradient
[0078] The approach to improving the finite difference method using quantum computing is to use a central difference formulation with a quantum amplitude estimation algorithm for each pricing step. This semiclassical quantum gradient (SQG) method then scales to which can be obtained by substituting p=2 and q=1 into equation (13). This method can be improved in a similar way to using CRN for classical finite differences. Instead of using the amplitude estimate to calculate and Can be calculated This can be done by calculating the amount in the quantum register Implementation, where f ω denotes the payoff for each path ω (see Section 2.1), and then uses a magnitude estimate of this quantity. In this case, the output of the magnitude estimate is
[0079] The expected value of the finite difference approximation of the i-th derivative is given by The individual statistical fluctuations associated with the amplitude estimate are then recovered. Scaling. For k gradients, the overall complexity of the method is
[0080] 2.5 Quantum Gradient
[0081] Some quantum methods (for computing Greek values) can use quantum Fourier transforms to compute gradients with improved scaling in dimension k. These quantum algorithms include the following for the objective function f: The fractional phase oracle access, such as the pricing function of Section 1.1. At a given point And when S>0, the oracle performs the following operations:
[0082]
[0083] To estimate f at point x 0 The k-dimensional gradient at x 0 A sufficiently small k-dimensional hypercube with side length l around In , the oracle is evaluated on a uniform superposition of points δ, where each dimension is discretized using N points with n = logN qubits, such that
[0084]
[0085] Assume that for ‖δ‖<<1, Choosing S = N / 1 and applying the k-dimensional inverse quantum Fourier transform to the resulting state, one can measure on a computational basis to obtain precision and high probability The probability depends on the parameter l, but an example "high" probability is a probability greater than 80%. The complexity of these gradient estimation algorithms depends on the resources used to build the oracle of equation (15) and the resources used to make the approximation in equation (16) with an accuracy within the desired threshold. As discussed in more detail in the next section, the computational cost of the gradient estimation method depends on the value of S = N / l. Intuitively, the cost of the method increases as the desired accuracy of the gradient estimate increases (larger N), and the value of l, which represents the region in which the function f is evaluated, decreases. While the value of N is an input to the gradient estimation method that controls the desired accuracy, the value of l depends on the function f at x. 0 Nonlinearity in the estimation region near . The function f at x 0 The higher the nonlinearity in the vicinity, the smaller l can be used, so that the function can be approximated by the first-order Taylor expansion used in equation (16).
[0086] 3. High-order methods for quantum gradients
[0087] To estimate the k gradients of a function f with an accuracy of ∈, the oracle in Eq. (15) can be evaluated times, among which D 2 is the second derivative of f as defined in Section 2.5 and an upper bound on the magnitude of N, l. While this gives a quadratic improvement in scaling of k, it does not improve the error scaling of the semiclassical method. To also improve the scaling of the accuracy ∈, a more advanced central difference scheme can be used.
[0088] The 2m-point central difference approximation for the gradient of f at 0 is given by
[0089]
[0090] Among them, the coefficient Depending on the choice of m, and for uniform grid spacing, one has The phase oracle for the general 2m-point scheme of equation (17) can be constructed by constructing a separate fractional phase oracle for each of the 2m terms, with appropriate coefficients This leads to a family of algorithms with different phase oracles at different orders m.
[0091]
[0092] where S = N / l. For example, the phase oracle for two-point approximation
[0093]
[0094] Can be built as an oracle and The product of .
[0095] Through these high-order methods, a class of smooth functions (specifically, the Gevrey class G 1 / 2 Function (if it satisfies Equation 20 of Theorem 1 below, then the function is of Gevrey class G 1 / 2 The estimate of the gradient of the function) to accuracy ∈ can be obtained by picking a sufficiently large value for m in the central difference approximation used (in other words, setting As described further below), using The phase oracle is applied. Therefore, for such smooth functions, the gradient estimate using a high-order central difference method is quadratically better in expected accuracy ∈. This is formally described in the following theorem:
[0096] Theorem 1: is a fixed constant, and assuming that f: is analytic and satisfies: for every andα∈[k] j
[0097]
[0098] Use the GAW algorithm and set You can calculate the ∈-approximate gradient Make
[0099] The probability of is at least 1-δ, using the probability or (fractional) phase oracle for f Query.
[0100] In addition to the expected Besides scaling, the complexity of the GAW algorithm in Theorem 1 also includes a factor of logk / δ, which comes from the fact that the median is extracted with probability 1-δ after applying the quantum gradient estimation algorithm. Although the following subsections focus on The factor is used to establish an explicit scaling of the complexity with respect to k, but Section 6 shows how to eliminate the log(k / δ) factor by using classical maximum likelihood estimation (MLE). This approach not only reduces the overall computational complexity of the algorithm, but also provides concrete confidence intervals for a given confidence level.
[0101] Table 1 summarizes the scaling of k and c in the algorithms discussed in this subsection.
[0102]
[0103] Table 1: Summary of complexity scaling for different market risk algorithms Here, ∈ is the absolute error of the gradient estimate and k is the dimension of the gradient. CFD and semiclassical methods also rely on the discretization step size h, assuming the optimal choice is derived in Section 2.2.
[0104] 3.1 Creating a Phase Oracle from a Probabilistic Oracle
[0105] Since the function whose gradient is to be computed is accessible via a probabilistic oracle of the form of equation (1), the corresponding phase oracle of equation (15) can be used. In order to implement the quantum gradient method described in this subsection using a phase oracle, a block coding technique can be used:
[0106] Definition 1 Assume that A is a Hilbert space An operator on , then if It can be said that it acts on The unitary matrix U is the block code of A.
[0107] Intuitively, the block code U is a unitary matrix whose top left block contains A:
[0108]
[0109] For the probabilistic oracle of equation (1)
[0110]
[0111] And according to Definition 1, is a block encoding of the diagonal matrix H with diagonal entries (1–2f(x)). With access to this block encoding, Hamiltonian simulation methods (e.g. from arXiv:1610.06546v3 or arXiv:1806.01838) allow the recursive application of U and Implement the unitary matrix e itH ∈ phase Approximately, it scales to Therefore, using block coding of f(x) and t = 2πS, Hamiltonian simulation can be used to generate a phase oracle according to equation (15) ∈ phase approximation (as suggested earlier, an approximation of a quantity ∈ means that the approximation is within the error ∈ of the quantity). Note that while the block encoding of equation (23) allows the creation of a phase oracle with phase 1-2f(x) instead of f(x) in equation (15), the first term ends up being a negligible global phase and the factor -2 can be absorbed in the factor t of the Hamiltonian simulation.
[0112] While Hamiltonian simulations can be used to implement unitary evolution, some of these methods (e.g., those in arXiv:1610.06546v3 and arXiv:1806.01838) may require post-selection to be taken into account in the end-to-end resource estimation. On the other hand, Martyn (see arXiv:2110.11327) introduced a coherent Hamiltonian simulation method that does not require post-selection but succeeds with arbitrarily high probability 1-δ, which is scaled to For target t, the approximation error ∈ phase And δ=2∈ phase , the coherent Hamiltonian simulation algorithm queries U and its inverse matrix, the total number of times is
[0113]
[0114] Where, (1) β∈(0,1) is a user-selected parameter; (2) r(T,∈) = |T|e W(ln(1 / ∈) / |T|) , where W(x) is the Lambertian W function; and (3)
[0115]
[0116] Using this method, the m-order phase oracle ∈ phaseThe total number of calls to the approximate oracle (Equation (1)) is given by
[0117]
[0118] The optimal value of β depends on the target approximation error ∈ phase For the cases studied in this disclosure, β = 0.5 is an improved (eg, optimal) choice and can be used in equation (25).
[0119] 4. Resource Estimation for Quantum Gradient Methods
[0120] This subsection describes the asymptotic resource estimation for the gradient method described previously. Representative parameters from the financial domain can be used for the gradient estimation problem, targeting k = 1000 Greek values and approximating with an error of ∈ = 10 -3 For resource estimation in the GAW method, the smoothness condition of Theorem 1 can be assumed, where the smoothness parameter c = 1, which is suitable for solving the problem at hand, and the Hamiltonian simulation phase error is assumed to be ∈ phase =10 -4 Here, c = 1 is used to estimate the possible usefulness of the algorithm in the case of optimal smoothness according to Theorem 1. Although at this point, the phase error ∈ phase is considered as a free parameter, but is stimulated by numerical simulations 10 -4 The particular choice of , proves to be a good choice. Numerical simulations and the effects of phase errors will be discussed in more detail in the following subsections. The finite difference approximation can be set to
[0121]
[0122] and the spacing parameter is set to (see Gillyén's Theorem Proof 5.4):
[0123]
[0124] Using Gillyén’s proof, we can estimate the number of oracle calls that achieve the target error. Note that in these example estimates, we only consider asymptotic scaling (assuming a residual constant factor of 1), and we assume ∈ phase is small enough that it has no impact on performance. This yields 6.3×10 7 Oracle calls.
[0125] This can be compared asymptotically with the performance of classical finite differences (with and without common random numbers) and semiclassical quantum finite differences. These results are summarized in Table 2. In one embodiment, the optimal value of the discretization step size h as calculated in Section 2.2 is chosen so that the gradient estimation error ∈ is minimized, and ∈=10-3 is chosen for these benchmarks.
[0126] Table 2 shows that for k up to 103, the GAW algorithm using the parameters from Gilyén's proof offers no advantage over the semiclassical methods. However, while this analysis gives an indication of how the different methods compare in theory, the estimates are based on asymptotic bounds with parameters that may be loose in practice and depend on the smoothness of the functions considered. The following subsections analyze the performance of the GAW method numerically on examples representing some practical financial situations.
[0127]
[0128] Table 2: Table of asymptotic oracle calls used (e.g., required) to compute quantum gradients of financially relevant Greek values. The parameters used for this benchmark are described in this article. This asymptotic analysis indicates that quantum gradient methods have the potential to outperform classical finite difference methods, but are comparable to semiclassical methods.
[0129] 4.1 GAW numerical estimation
[0130] The GAW method described in Section 3 gives a quantum algorithm for gradient estimation that scales to However, in the most relevant financial models of interest, no closed-form solution is available, which can be checked to see if the smoothness condition required by the theorem is met (e.g., using numerical methods to approximate a function of interest that has no closed-form solution). As used herein, a closed-form expression is a mathematical expression that uses a finite number of standard operations. It can include constants, variables, operations (e.g., +, -, ×, ÷), and functions (e.g., nth roots, exponentials, logarithms, trigonometric functions, and inverse hyperbolic functions), but no limits, differentiation, or integration. In some embodiments, if a function is approximated using numerical methods (e.g., it must be approximated using numerical methods), then the function has no closed-form solution.
[0131] Therefore, this subsection describes a method for numerically examining the behavior of a high-order approach to the GAW gradient estimation algorithm for two financial use cases: (a) a simple (vanilla) European call option for which an analytical closed-form solution exists, allowing the performance of the algorithm to be benchmarked against the exact gradient, and (b) a path-dependent basket option with knock-in features for which no analytical solution is known and which is evaluated traditionally using Monte Carlo methods. In particular, this subsection examines the order m and spacing l of the central difference approximation for sufficiently exact gradient estimation and compares them to the theoretical values of Eqs. (26) and (27), respectively. This subsection focuses on these two parameters, as they determine the overall complexity of the algorithm, which can then be compared to other methods in Table 2.
[0132] Since the resulting quantum circuit is too wide and deep for practical numerical simulations, the following practical approach is used to simulate the performance of the algorithm: In order to estimate k Greek values with n-bit accuracy, k*2 are initialized with the amplitude of equation (18) classically calculated for the selected derivative order m n dimensional array. Perform k*2 n dimensional classical inverse Fourier transform to obtain the resulting probability distribution as the output of the GAW algorithm before the measurement. Considering the phase error ∈ from the Hamiltonian simulation phase > 0, add a random number to each decoding phase in equation (18), which is selected from the interval [-∈ phase ,∈ phase ]Select evenly.
[0133] 4.1.1 Vanilla Options
[0134] A simple example of derivative pricing is a European call option, whose price depends on the performance of a single asset at a predetermined future time (expiration date) relative to a reference price (strike price). In the Black-Scholes-Merton model, where assets undergo geometric Brownian motion (GBM), a call option on a non-dividend-paying asset has a closed-form solution given by
[0135]
[0136] Among them, S is the asset price of the day, K is the option's strike price, r is the risk-free rate of return, σ is the annualized volatility of the asset, T is the time to the option expiration date, and N(x) represents the CDF of the standard normal distribution. The quantum algorithm can be tested for the four Greek values of this option / model: and The GAW algorithm can be numerically simulated for increasing k (the number of Greek values computed simultaneously) and central difference approximation order m∈[1,4]. In each case, a search is performed for the maximum of the spacing L for which the algorithm produces an estimate ∈ that is close to the exact value with a probability ≥ 85% for each Greek value. -2 The gradient error of is taken as the target (since quantum circuits are simulated on these qubits, these numerical simulations scale exponentially in this parameter).
[0137] Each value of k that is found numerically as the optimal value of (m, l) that makes the total number of oracle calls N from equation (25) o Minimize while maintaining the probability of success > 85% - compared with the value used in the proof of Theorem 1 given by Eqs. (26) and (27), assuming the smoothest possible parameter c = 1. The approximation error from the Hamiltonian simulation is set to ∈phase =10 -4 , and is included as a source of error in the numerical simulations. The vanilla option gradient in equation (28) is evaluated at the point (S, r, σ, T) = (99.5, 1%, 20%, 0.1) with K = 100, which is chosen so that the parameter values are reasonably realistic from a financial point of view, but at the same time the domain where the probe function is as nonlinear as possible (where the function is (approximately) linear, then simple finite difference methods are sufficient to perform well). Table 3 shows the numerical simulation results and the corresponding theoretical estimates according to Theorem 1, Figure 1 The probability distribution of each Greek value obtained from the quantum gradient estimation algorithm is shown for the case k = 4 in Table 3. To simulate the algorithm for increasing values of k, k is selected from the four parameters S, r, σ, T with respect to which the gradient is calculated, and the values of the remaining 4-k parameters are fixed. For k∈[2,3], the simulation results in Table 3 are qualitatively independent of the choice of which parameters are fixed.
[0138] Figure 1 The probability distributions obtained from numerical simulations of the GAW quantum gradient estimation algorithm for the four Greek values (delta, rho, vega, theta) of the vanilla option of equation (28) are shown, with m = 3 and l = 0.58, and the corresponding exact values are shown with vertical dashed lines. The measurement of the register corresponding to each Greek value will result in a deviation from the exact value by at most ∈ = 1 / N = 2×10 -2 , a value with probability ≥ 85%.
[0139]
[0140] Table 3: This table shows (a) used in the GAW gradient estimation algorithm to estimate ∈ = 2 × 10 -2 Numerical estimate of the query complexity of k Greek values of the vanilla option in equation (28) with an inside probability ≥ 85% N o (Equation (25)), and (b) the corresponding values used in the proof of Theorem 1. For vanilla options, the central difference order can be reduced and the spacing is increased by more than two orders of magnitude compared to the theoretical value. In this way, the query complexity of the numerical estimation is about 1 / 200 of the theoretical value.
[0141] Interestingly, Table 3 shows that in practice the query complexity for estimating the gradient of a vanilla option with high probability is several orders of magnitude smaller than what would be expected given the parameters used in the proof of Theorem 1. Because the types of vanilla options explored in this subsection are primarily examples of finance-relevant incentives that are easier to analyze, the following subsections focus on more complex derivatives for which gradient estimation is used for practical commercial purposes.
[0142] 4.1.2 Path-dependent basket options
[0143] The previous subsection described a numerical check of the performance of the GAW algorithm for vanilla options, for which there are known analytical solutions that can be used to benchmark the algorithm performance against the exact gradient of the model. A similar analysis can be performed for path-dependent options on multiple underlying assets without known closed-form solutions, and the query complexity from the numerical simulations can be compared to the theoretical complexity from Theorem 1 and the complexity of the SQG method (Section 2.4) that uses finite differences to compute the gradient using the values estimated by the QAE. Similar to the previous subsection, the approximation error from the Hamiltonian simulation can be set to ∈ = 2 × 10 -2 .
[0144] The options considered in this subsection are defined on three underlying assets undergoing GBM, with volatility σ 1 =20%,σ 2 =20%,σ 3 = 10%, and the spot price The risk-free rate is set at r = 1%, and the option expires in T = 3 years. B =[T / 5*i] for i∈[1,5] observed with weight Asset prices The weighted sum of , and the option payoff is given by
[0145]
[0146] The strike price is set to K = 1.0 and B = 2.5. The option is said to have a knock-in feature because it is only paid (i.e., knocked in) when the weighted sum is observed to exceed the knock-in barrier B at any predetermined time before the contract expires. The GAW algorithm is simulated to estimate four gradients of the option contract price V: three gradients relative to the first asset and 1 . Because this option does not have a closed-form solution, the option is priced using a classical Monte Carlo algorithm with 106 paths, and finite differences are used to compute the expected gradient, which can be used as a benchmark for the quantum algorithm. The quantum algorithm can be simulated using n = 4 qubits per gradient register, which sets the target error of the algorithm to ∈ ≤ 1 / 2 4 = 0.0625. Using m = 1 and l = 0.25, the simulated GAW algorithm gives an approximate estimate of ∈ with a probability of 85% for each Greek value. The SQG method uses the 1 / ∈ calls of the operator, and each The unitary matrix of equation (1) is and its inverse twice, so the complexity of k Greek values is 2k / ∈. Since the SQG method calculates the return twice to construct the finite difference (Eq. (14)), The operator is approximately twice as large as a conventional pricing oracle. To more accurately compare the query complexity to other quantum approaches, one can include a factor of two in the complexity, totaling 4k / ∈.
[0147] Table 4 shows the query complexity and parameters from the numerical simulations of the GAW method for this path-dependent basket option, as well as (a) the asymptotic estimate from Theorem 1, (b) the query complexity of the SQG method, and (c) the query complexity of the CFD and CFD-CRN methods, all for the same target approximation error. For the CFD and CFD-CRN methods, the query complexity reported is the total number of Monte Carlo paths used to evaluate k Greek values with 85% probability of being numerically computed within the target approximation error ∈. The table also includes the parameters and resources used to perform the same calculations using the simulation-free quantum gradient (SFQG) algorithm described in the next section. Figure 2 The resulting probability distributions for all Greek values are shown, along with the MC estimated “true” values.
[0148] Figure 2 The probability distributions obtained from numerical simulations of the GAW quantum gradient estimation algorithm for the four Greek values of the path-dependent basket option in Section 4.1.2 are shown for m = 1 and l = 0.25, as well as the probability distributions obtained using the GAW quantum gradient estimation algorithm with 10 6 The values of the classical Monte Carlo (MC) estimate of the paths (vertical dashed lines). The measurement provides an estimate of each Greek value with an error ∈≤0.0625 and a probability ≥85%.
[0149] 5. Simulation-free quantum gradient (SFQG) method
[0150] This subsection describes the construction of a second-order accurate quantum gradient algorithm corresponding to m = 1 in Eq. (17). This algorithm is higher in order than Jordan's algorithm (which suffers from unfavorable complexity scaling), but better than the one obtained from Gilyén's guarantee The required order is low as derived from the analysis of scaling. One benefit is that in the case of derivative pricing, an explicit structure of the phase oracle is provided without using block coding or Hamiltonian simulation. This can be called a simulation-free quantum gradient (SFQG) approach.
[0151] To describe this structure, this section first shows how to transform the derivative pricing setting in Section 1.1 into a first-order phase oracle And then how to construct the second-order expansion to construct according to the definition of equation (18) The algorithm can be simulated to estimate the Greeks for the basket options from Section 4.1.2, allowing its performance to be compared with the corresponding second-order accurate GAW method.
[0152] 5.1 First-Order Pricing Phase Oracle
[0153] In order to apply the quantum gradient algorithm to estimate the gradient of the function f(x), a phase oracle in the form of equation (15) can be constructed. This oracle can be based on x 0 The length of the nearby side is l, G k =[-l / 2,l / 2] k The problem is evaluated at a superposition of points x on a k-dimensional hypercube of , where each dimension is discretized with N points of n = logN qubits, and l is chosen small enough that f(x) is approximately linear in this region (so that the approximation in Eq. 16 holds). For simplicity, let x 0 = 0 is the gradient estimate at other points realized by redefining the function f. Evaluate equation (1) based on all the superimposed points x operator, giving:
[0154]
[0155] in And f(x) = sin 2 (θ(x)), similar to equation (3). Now define the Grover operator in and Let D be the sum of all i∈[1,k] in The upper bound on the state in equation (30) is applied Operator πS times, where S = N / Dl, we get 1
[0156]
[0157] Notice, The application in equation (31) is close to the desired phase oracle for quantum gradient estimation, but (i) for θ instead of f, and (ii) with a superposition of the desired positive and negative phases.
[0158] Inverse Quantum Fourier Transform on the First Register Given x 0 The estimated derivative θ(x) is
[0159]
[0160] This method gives an oracle for θ without directly giving an oracle for f. However, since θ and f are related by f(x) = sin 2 (θ(x)), so we can compute the derivative θ and apply the chain rule to get the gradient of f:
[0161]
[0162] This uses θ(x) which can be calculated by QAE via the operator of equation (1) 0 )’s knowledge.
[0163] By adding a pseudo-dimension to f with a gradient of known sign, we can distinguish between the positive and negative cases. For example, we can Check the sign of the k+1th derivative to see whether it is positive or negative.
[0164] Because in this setting, the value of πS=πN / Dl indicates The number of times the operator is called in equation (31), which must be representable as an integer. Since N = 2 n is an integer, so this can be achieved by choosing the value of D so that π / Dl is also an integer. After the operator, the resulting integer-order, measured gradient in equation (32) is conventionally multiplied by a choice of D to recover the magnitude of the gradient.
[0165] 5.2 Second-Order Pricing Phase Oracle
[0166] A possible higher-order expansion is to construct an oracle that encodes the two-point approximation shown in equation (19), which corresponds to In equation (17), m = 1. Because in the QAE setting, the calculation The gradient of f(x) is used instead of f(x), so the constructed oracle can execute:
[0167]
[0168] in In general, a high-order oracle of this form can be constructed as the product of two separate oracles with opposite phases. This idea can be used to construct the oracle of equation (34) using appropriately defined oracles. Let Marking equation (1) Operator, and define the operator As a probabilistic oracle of the value f(-x)
[0169]
[0170] And the corresponding Grover operator and From equation (31), we can see that the oracle and The product of the state
[0171]
[0172]
[0173] Among them, ψ i express and The eigenstate product of , which can then be ignored for the rest of the algorithm. While the first two terms include the appropriate phase kick (up to the sign) for the two-point approximation of equation (34) with a combined probability of 50%, the second two terms encode the same proportional to the phase, forming a probability peak near zero instead of a gradient with a similar 50% combined probability. By adding pseudo-variables to the function as described at the end of Section 5.1, it is possible to distinguish which eigenstate is in by measuring the gradient of the pseudo-variable after applying the inverse quantum Fourier transform. Because the gradient relative to the pseudo-variable is already known by construction, measuring the positive (negative) gradient of the pseudo-variable means measuring the positive (negative) gradient relative to the other variables. Otherwise, if zero is measured in the pseudo-variable register, the measurement can be ignored. This means that additional post-processing is used in the method and 50% of the shots are discarded. The total number of shots used depends on the desired accuracy of the estimate, and this choice is discussed in more detail in Section 6. The circuit diagram of the SFQG method is shown in Figure 3 Note that the operator and Applied to a separate register to generate the correct phase for equation (36).
[0174] Figure 3 The quantum circuit diagram of the SFQG method for generating the state of equation (36) is shown. First, multiple Hadamard gates are applied to k registers of n qubits, each of which generates a superposition of points ∑ x |x>. A copy of each |x> is then created (in a second set of k registers of n qubits) using CNOT gates (controlled by qubits in the first set of k registers of n qubits), allowing the oracle to be evaluated in parallel at the cost of an extra qubit. and After these copies are inversely computed using another set of CNOT gates (controlled by the qubits of the first set of k registers of n qubits), an n-dimensional quantum inverse Fourier transform is applied to each of the initial k registers in the first set to give the state of equation (36), which is then measured to estimate the k gradients.
[0175] Using the operator to construct the state of Equation (36), we can use numerical simulations of the SFQG algorithm to compute the Greek values for the basket futures in Section 4.1.2. In this case, the algorithm can be used to compute the gradient in and V is the futures price, from which the Greeks of the option can be estimated using equation (33), assuming the contract is already priced. Similar to the GAW algorithm simulation in Section 4.1.2, a search is performed for the parameter value l that estimates the probability of success within ∈ ≤ 0.0625 > 85% of the gradients, using n = 4 qubits for each gradient register. Here, the probability of obtaining the discarded state in equation (36) in postprocessing is negligible. Intuitively, one can think of the effective oracle cost as twice the value computed from this simulation for a failure probability of 50%, but as shown in Section 6, there is a more efficient way to combine the measurements to obtain estimates and confidence intervals for the gradients. The complexity of the algorithm is πS = πN / l, where N = 2, in terms of the number of times the operator is used to construct the state of equation (36). n .
[0176] After applying the SFQG algorithm, the probability distribution of the non-discarded states of all four gradients is Figure 4 The parameter values and query complexity of the algorithm are shown in Table 4, along with other quantum, classical, and semiclassical methods studied in this disclosure. The complexity of the classical method was estimated by computing the Greek values using finite differences using 3000 Monte Carlo simulations of the basket option prices and searching for the number of Monte Carlo paths that gave the same target error ∈≤0.0625 with a probability ≥85% as the quantum and semiclassical methods.
[0177] Figure 4 The probability distributions obtained from numerical simulations of the second-order accurate SFQG algorithm for the path-dependent basket futures of Section 4.1.2 for four values of Greeks m = 1 and l = 0.25 are shown, as well as the exact values estimated using classical Monte Carlo simulations (vertical dashed lines). This algorithm allows estimating the function The gradient of , where V is the option price, can then be used to estimate the Greeks for the futures using equation (33). Figure 2 Similarly, the measurement gives every Greek value with probability ≥ 85% within error ∈ ≤ 0.0625.
[0178]
[0179]
[0180] Table 4: Comparison of the following values: (a) Numerical estimate of the query complexity N for the k Greek values of the basket option of equation (29) used in the GAW gradient estimation algorithm to estimate ∈≤0.0625 with probability ≥85% o (Eq. (25)), (b) the corresponding theoretical values used in the proof of Theorem 1, (c) the parameters and resources used to perform the same computation using the simulation-free quantum gradient (SFQG) algorithm described in Section 5, (d) the query complexity of the SQG method for the same target accuracy and confidence interval, and (e) the total number of simulated classical Monte Carlo paths using the CFD and CFD-CRN methods for the same accuracy and confidence interval. It can be numerically shown that for this path-dependent basket option, the GAW method with m = 1 can estimate the four Greek values in E with 85% probability, with a query complexity that is 1 / 125 that implied by the proof of Theorem 1 and 1 / 20 that of the most classical method based on finite differences (CFD-CRN). (*For the SFQG method, given a 50% failure probability, the effective oracle cost can be considered to be twice that reported in this table, but as shown in Section 6, there is a more efficient way to combine the measurements to obtain estimates and confidence intervals.)
[0181] 6. Quantum Gradient Estimation Using Maximum Likelihood Estimation
[0182] The success of the quantum gradient estimation algorithms studied in this disclosure (e.g., the SFQG method) and those of Jordan and Gillyén can be judged by their ability to estimate the gradient within ∈ with high probability. In Gillyén's paper, the authors propose to repeat the gradient estimation algorithm for k gradients times and take the median to get an estimate within error ∈ with probability at least (1-ρ). However, this approach has two major drawbacks: a) it is not possible to characterize the correctness of the output with an exact confidence interval, and b) the output can only be a discretized hypercube of equation (16) These problems may also exist in the amplitude estimation algorithm.
[0183] Maximum Likelihood Estimation (MLE) can address these issues with amplitude estimation algorithms. For example, a quantum circuit is sampled more than once and the results are traditionally post-processed with MLE. This subsection shows that MLE methods can be additionally applied to quantum gradient estimation algorithms to enhance the final estimate.
[0184] Given a probability distribution p with unknown parameters g and data x sampled from it i , where i = 1, ..., M, MLE can be used to estimate g This is done by maximizing the log-likelihood logL, where and g′ are candidates to be evaluated:
[0185]
[0186] If g′ is a true parameter, then its measured data x i The probability of being measured. The general quantum gradient estimation algorithm from Section 2.5 uses a region l where the function whose gradient is being calculated is approximately linear. In this case, as with phase estimation, the probability distribution after the inverse quantum Fourier transform is applied to equation (16) and is given by:
[0187]
[0188] where Δ=(xg′) and N is the number of possible measurements.
[0189] MLE estimation The confidence interval of can be derived using the likelihood ratio (LR). The confidence interval at the (1-α) confidence level is the value g′ that satisfies in, Represents χ 2 The (1-α)th quantile of the distribution.
[0190] Figure 5a Shown from Figure 4 Vega measurement of basket futures (bars) Discrete probability distribution before being fitted to the theoretical distribution p(x) of equation (38) (solid line). The maximum of the distribution occurs at the exact analytical value (vertical dashed line).
[0191] Figure 5b The global maximum of the log-likelihood log L(g′) (points) is shown, which provides an estimate of the true value (dashed vertical line) that is better than sampling from the probability distribution and taking the median (triangle). The log-likelihood plot is generated by sampling the quantum gradient estimation circuit 30 times and allows the Greek value to be estimated to be within ∈≤2×10 with a confidence level of 1-α=0.68 -3 When using the SFQG method, the probability of discarding a measurement is 50%, so the expected number of trials for this target accuracy is 60.
[0192] Figure 5a and 5b shows how to use MLE to improve the simulation-free quantum gradient (SFQG) method. Figure 4 Estimates of the Vega of the basket options As discussed in Section 5.2, the SFQG method produces a 50% probability peak near the gradient up to the sign, and another 50% peak near zero that can be ignored. Because the method can distinguish these cases by adding dummy variables to the function with known gradients, only the case where the gradient is measured can be considered, and the number of attempts can be doubled to account for the discarded measurements. Figure 5a It is shown that the final probability distribution after applying the quantum gradient estimation algorithm (labeled “Quantum Gradient”) indeed conforms to equation (38) (in Figure 5a and labeled “p(x)”), and therefore, QAE with MLE results can also be used here. For clarity, the measurement results are only plotted in the interval that contains most of the probability mass.
[0193] Figure 5b Draw the result when the pair Figure 5a The log-likelihood L(g′) as a function of g′ on the same interval when the quantum gradient circuit of the probability distribution of is sampled 30 times. Figure 5a In the MLE estimate (point) is the global maximum of the function (labeled "Log L(x)"), which is very close to the true value g (vertical dashed line) and significantly better than the median of the final probability distribution (triangle). In fact, the SFQG method can use double the number of attempts (60) to solve the attempts discarded due to the extra term in equation (36).
[0194] A significant advantage of the MLE method is that, because the final estimate is not limited to one of N possible discrete values, the value of N can be reduced at the expense of increasing the number of samples taken, thereby reducing the overall width and depth of the quantum circuit. Figure 5a The distance between the N possible discrete values in is 0.0625, but Figure 5b The error of the MLE estimate in is ∈=4×10 -3 .
[0195] Although MLE post-processing uses additional classical computational cost, computing the MLE in this setting is done by increasing (e.g., maximizing) a concave function on a one-dimensional compact interval, which can be ignored in the overall complexity analysis.
[0196] 7. Updated Estimates for Quantum Advantage
[0197] Chakrabarti’s resource estimates confirm that a quantum advantage in derivative pricing relative to classical Monte Carlo methods requires the ability to support approximately 10 10 The code performs about 10 logic operations per second at a distance of 7More specifically, the automatic redemption contract studied by Chakrabarti is priced at ∈≤2×10 with a confidence level of 1-α=0.68 using the reparameterization technique introduced therein. -3 5×10 7 Thus, to match the classical Monte Carlo pricing time estimated at 1 second, the logical quantum clock can use a rate of 50 MHz. The same reparameterization technique from Chakrabarti can be used to construct an oracle size estimate and estimate the T depth of the quantum circuit of the SFQG method to compute the four Greek values of the basket futures in Section 4.1.2 and Table 4. To compute the same ∈≤2×10 -3 The SFQG method can be compared with the Greek value with a confidence level of 1-α = 0.68. Figure 4 The parameters of and the maximum likelihood estimation (MLE) method from Section 6 using 60 trials (see Figure 5b ) together. Using these parameters gives the total T depth of the SFQG circuit multiplied by the number of attempts equal to 5.5 × 10 7 , where the end-to-end circuit uses 12k logical qubits and executes T-gates at a code distance capable of supporting 108 logical operations. Assuming that conventionally the contract can be priced to within the same error and confidence level using a Monte Carlo model in 1 second, and that the Greeks can be computed using a second-order finite difference method applied to Monte Carlo pricing, the Greeks for the basket futures can be conventionally estimated in 8 seconds (four Greeks, two pricings per Greek). Therefore, the quantum advantage of using the SFQG method in computing the Greeks for this derivative contract can include executing T-gates at a rate of 7MHz, which is 1 / 7 the rate estimated by Chakrabarti for quantum advantage in derivatives pricing. In addition, because the quantum gradient circuit is sampled 60 times when the MLE method is used (see Figure 5b ), so providing parallel access to 60 QPUs that can load quantum circuits and sample them simultaneously can achieve the same runtime as serial execution if the logic clock rate of each device is about 100kHz (which is closer to current estimates of feasible logic clock rates of around 10kHz).
[0198] While the computational cost of numerical simulations of the SFQG method currently limits the analysis to at most k = 4 Greek values for practically relevant use cases, the SFQG method can scale favorably to higher-dimensional derivative pricing problems, motivated by the fact that most, if not all, derivative contracts of practical interest have piecewise linear payoffs. While Theorem 1 provides the complexity However, this does not rule out higher-order speedups for k with respect to smoother functions. For example, the SFQG method applied to simple polynomial functions can achieve complexity Derivative contracts often include market parameters with little or no cross-correlation, e.g., for n>1, m∈[1,n-1], For example, the basket option in Section 4.1.2 does not have a knock-in feature. The absence of such higher-order terms allows the selection of values of m and l in the application of the SFQG method that result in lower overall oracle cost than that specified by Theorem 1. An example upper bound on the potential advantage over classical Monte Carlo is that the function is at most a quadratic polynomial over all k variables, yielding a total speedup of Therefore, the possible degree of quantum speedup of the SFQG method may depend on the nature of the price function of each derivative. Assuming that the SFQG method can be applied to a larger number of k (as described above), one or more of the above advantages may also apply to the GAW m=1 method. However, as shown in Table 4, the SFQG method is still cheaper to build than the GAW method.
[0199] 8. Phase Recoil
[0200] For the simulation-free quantum gradient (SFQG) method described in Section 5, care can be taken to ensure that appropriate phase recoil occurs in Eq. (31) (e.g. to obtain the correct gradient after applying the inverse quantum Fourier transform). Eq. (31) includes the state |ψ which generally interferes with the subsequent inverse quantum Fourier transform through its dependence on x. ± (x)>. Application in SFQG method The operator creates the following state
[0201]
[0202] Applying the inverse quantum Fourier transform to the |x> register gives
[0203]
[0204] The probability of measuring the value |z> in the first register is given by
[0205]
[0206]
[0207] In the context of derivatives pricing considered in this disclosure, The operator can implement a reparameterization method (e.g. Chakrabarti's reparameterization method). To do this, The operator can be written as two operators and The product of . The operator loads a standard normal distribution corresponding to the number of assets and the time step used in pricing of the derivative contract.
[0208]
[0209] The probability p i Independent of any market parameters. Then, The operator computes the payoff g(i) using a quantum algorithm based on |i>, which is then rotated into the amplitude of the auxiliary qubit
[0210]
[0211] After the last rotation, the register |g(i)> can be inversely computed so that The overall effect of the operator can be written as
[0212]
[0213] where g(i)∈[0.1]. When evaluated in a superimposed manner on the register |x> representing the adjustment of the input market parameters as shown in equation (30) When , the result state becomes
[0214]
[0215] in
[0216]
[0217] and
[0218]
[0219] Where k is the dimension of the gradient being estimated, N = 2 n , and n qubits are used for superposition in each dimension ∑ x |x>. Selecting x<<1 means that the function θ(x) is approximately linear around x=0. In this scheme, |ψ in equation (46) + x> state gives <ψ + (x′)|ψ - (x)>=<ψ - (x′)|ψ + (x)>≈0 and <ψ + (x′)|ψ + (x)>=<ψ - (x′)|ψ - (x)>≈1. The probability of measuring the value |z> in equation (41) is given by
[0220]
[0221] This is similar to standard quantum phase estimation. Note that The application of the operator to equation (39) induces the correct phase kick to the |x> register, since the x dependence in equation (46) is constrained to the amplitude of the last qubit. If the probability p i becomes dependent on x, or other qubit registers remain entangled with x, then the phase recoil fails.
[0222] Figure 6 The simulation results after the formation of the state in equation (39) are shown, and then for The operator is of the form of equation (45) and the example inverse quantum Fourier transform is shown for k = 1. The probability p i is taken from a normal distribution with unit variance defined on three qubits (m=3) and normalized so that for b=0.405, ∑ i p i =1, and g(i,x)=sin 2 (b*i+2x). After applying the quantum Fourier transform and measuring the |x> register, an estimate of the gradient dθ / dx (or −dθ / dx as described by equation (32)) at x=0 can be obtained, where And a=∑ p p i sin 2 (b*i+2x). For the chosen parameter values, dθ / dx≈0.253 at x=0. Three qubits can be used to register |x>(n=3), allowing a gradient resolution of accuracy 1 / 8=0.125. For clarity, the value of b is chosen so that the resulting gradient is close to one of the values that can be exactly represented with three qubits. One can choose l=π / 256 and D=1, and thus one can apply Operator S = N / D1 = 2048 times. Because the The operator is of the form of equation (45), so the correct phase is recoiled into the |x> register and the inverse quantum Fourier transform generates two probability peaks around ±dθ / dx, where dθ / dx≈0.253.
[0223] Figure 6 The simulation results after applying equation (31) are shown, and the subsequent The inverse quantum Fourier transform when the operator is in the form of equation (45). The measurement corresponds to an estimate of the gradient dθ / dx at x=0, where for b=0.405 and p=[0.03149738,0.08388914,0.16118575,0.22342773,0.22342773,0.16118575,0.08388914,0.03149738], And a=∑ i pi sin 2 (b*i+2x). The probability peaks at around ±0.25, which is the closest value to the expected dθ / dx≈0.253 that can be represented with n=3 qubits.
[0224] 9. Automatic differentiation and multi-objective QAE
[0225] Another way to compute gradients (such as in the considered setting) is automatic differentiation (AD). AD repeatedly applies the chain rule to each elementary arithmetic operation used to compute the objective function, and keeps track of the analytical gradients throughout the computation. In many practical applications, the gradients can be computed with constant overhead, regardless of the dimensionality. In some cases, the overhead can even be stated to be bounded by a factor of four compared to evaluating the function individually at the expense of large memory requirements.
[0226] Suppose we want to estimate the expected value of the profit function g The random variable S and some given parameters x and the corresponding gradient
[0227] To construct a probabilistic oracle for a fixed x by QAE One can first create a weighted superposition of (e.g., all) scenarios, then evaluate the corresponding payoff for each scenario, and prepare the target qubit, obtaining
[0228]
[0229] So that the probability of measuring |1> in the last qubit corresponds to And among them, s j represents a possible realization of S represented by m qubits, and p j Indicates the corresponding probability.
[0230] For each situation|s j >, quantum algorithms can be applied to calculate the return |g(s j , x)>. Therefore, for each s j , AD can be used to compute the gradient in the same way as traditionally At the same time, due to the use of reversible implementation, the resources used are at most twice that of the traditional method. Therefore, using a constant overhead compared to the expected value evaluation, the following state is obtained
[0231]
[0232] The following shows how to use QAE to read out multiple objectives defined on the same random variable and then immediately apply them to the gradient constructed in equation (50).
[0233] Assume that the random variable S and the function group fi , i = 1, ..., k maps the realization of S to Furthermore, suppose we are interested in estimating the expected value of all i And the following state can be constructed
[0234]
[0235] To estimate the value First, we introduce k additional m-qubit registers |c i >, each register uses a value c i Initialize |, and then use quantum algorithms to calculate and
[0236]
[0237] In other words, we can construct the operator as
[0238]
[0239] By adding a target qubit and applying the rotation controlled by the last register, this can also be used to build a probabilistic oracle corresponding to the following function
[0240]
[0241] This function is a linear function in c, and using the quantum gradient algorithm with respect to c, we get
[0242]
[0243] It is read from all k expected values.
[0244] If f i The value of is such that the weighted sum in equation (52) satisfies Since the constructed function is linear in c, the resulting complexity scaling of the quantum gradient algorithm for target accuracy ∈>0 is is independent of k (ignoring the logarithmic terms). The multi-objective QAE uses (e.g. requires) k·m additional qubits and the weighted sum in equation (52) which can be computed with logarithmic depth using a divide-and-conquer summation scheme. If, on the other hand, equation (52) is normalized by dividing the weighted sum by a factor D, the complexity of the algorithm becomes when , we can choose D ~ 1 / k, thus adding the factor of k back to the complexity of the algorithm, canceling the advantage of this approach.
[0245] Since Eq. (50) has a desired (e.g., required) shape, the multi-objective QAE can be used to evaluate gradients that have already been evaluated using AD implemented by a quantum algorithm. If no additional normalization is desired (e.g., required), AD and (multi-objective) QAE can be combined to obtain a running time of 200 Å with quadratic speedup in accuracy, independent of dimension. Therefore, AD is a promising approach to estimate market risk similar to traditional approaches, with significant advantages over finite difference schemes.
[0246] 10. Discussion
[0247] The present disclosure provides, among other things, new applications of the GAW algorithm and new modifications to the GAW algorithm. Specifically, the present disclosure describes the use of a modified version of the GAW algorithm (m=1) to compute the gradients of financial derivatives (Greek values) (even if it is not clear whether the function of interest satisfies Theorem 1). For example, as shown in Table 4, although the theory of the GAW algorithm dictates that m should be 4, the present disclosure demonstrates that m=1 can also be used. This suggests that in addition to the quadratic speedup in derivative pricing, additional quantum advantages in risk analysis are possible. Traditionally, when using Monte Carlo to price the underlying derivative, the complexity of computing k Greek values using the finite difference method is And the direct extension of the finite difference method to derivative pricing using amplitude estimates provides a complexity of In the present disclosure, the improved GAW algorithm is The overall complexity of provides an additional quadratic advantage. Theorem 1 stipulates this quadratic advantage with respect to the number of Greeks when the pricing function satisfies the smoothness condition of Theorem 1. However, since derivative pricing problems of practical interest in finance involve many different multivariate price functions and often do not have analytical solutions, understanding whether and which financial derivatives satisfy the above smoothness condition can be a challenging task. To this end, a numerical approach is employed to simulate the improved GAW algorithm for two example derivatives: a) European call options, which have closed-form solutions and are used to establish the effectiveness and benchmark of the algorithm, and b) path-dependent basket options, which have no known analytical solutions and represent typical derivative price functions. The results not only successfully estimate the relevant Greeks for these examples with high probability, but also obtain a query complexity that is significantly smaller than that suggested by Theorem 1 (see, for example, Tables 3 and 4).
[0248] The present disclosure also provides a rigorous resource estimate for the quantum oracles involved in the improved GAW algorithm described above. Due to the additional costs associated with the block coding and Hamiltonian simulation used to approximate the phase oracle of equation (15) from the probability oracle in equation (1) used for derivative pricing, Section 5 of the present disclosure develops a new method (SFQG method) that exploits the structural advantages of amplitude estimation to construct a cheaper second-order (m=1) phase oracle.
[0249] Section 6 shows that quantum gradient algorithms (e.g., the SFQG method) can be enhanced by employing maximum likelihood estimation (MLE), allowing the determination of resources for estimating gradients with exact confidence intervals and confidence levels. Using this MLE method, Section 7 describes resources for estimating the quantum advantage of derivatives market risk for a typical use case of practical interest. Employing quantum gradient methods in derivatives pricing reduces the logical clock rate estimate of quantum advantage to 1 / 7 of that described by Chakrabarti (arXiv:2012.03819).
[0250] Although the Greek values can be computed using finite difference methods, classical automatic differentiation (AD) methods can also be used. AD methods can be advantageous because the associated computational cost can be significantly reduced at the expense of increased memory usage. In particular, in some cases, the adjoint mode of automatic differentiation (AAD) allows the computation of all k gradients of a scalar function f at a cost that is independent of k, meaning that in this case, for some constant ω that depends on the function f, the total classical complexity cost becomes For example, although for the smooth function type in Theorem 1, the complexity of the GAW quantum gradient estimation algorithm scales to As can be seen in Section 4.1, in practical financial use cases, for a given ∈, the algorithm scales 100x-200x times better than the theoretical estimate of Theorem 1 (see, for example, Tables 3 and 4). Thus, since the GAW algorithm actually scales to larger values of k in financial use cases, it can also outperform the complexity of the AAD method. Note that if the GAW algorithm outperforms AD, then the SFQG method also outperforms AD. However, even in cases where the GAW algorithm does not outperform AD, the SFQG method can outperform AD because the SFQG method is cheaper than GAW, as shown in the examples studied. It is also interesting to consider whether a construction similar to the one adopted for AD can be applied to quantum settings. Section 9 provides such a construction and shows that in certain settings, this construction can lead to performance curves similar to classical AD, as the running time of the algorithm is independent of the number of Greek values at the expense of increased memory usage.
[0251] Although the present disclosure describes computing gradients, the teachings herein may also be applicable to other useful risk metrics, such as the calculation of portfolio value at risk (VAR). For example, based on the results described herein, further quantum advantages of derivative pricing subroutines may be exploited in these higher-level calculations and aggregations.
[0252] 11. Example Method
[0253] Figure 7 is a flow chart of a method 700 (consistent with the SFGQ method) for determining the gradient of a function f(x) describing a resource quantity according to one embodiment. For example, the method can be used to determine the gradient of a price function of a product such as a financial derivative (e.g., Greek values). The steps of method 700 can be performed in a different order, and method 700 can include different, additional, or fewer steps. Figure 7 In the example of , the steps of method 700 are performed by a computing system (eg, including a classical computing system (eg, 810 ) and a quantum computing system (eg, 820 )).
[0254] The computing system receives (705) a function f(x) describing a resource quantity, where x represents a set of k parameters of the quantity. In some embodiments, f(x) has no closed-form solution (e.g., using numerical methods to approximate f(x)), or f(x) is not a Gevrey class G 1 / 2 Function. A quantum function algorithm (such as a quantum pricing algorithm) can be repeatedly executed using a quantum computing system (such as a computing system) with an error ∈ p The quantum function algorithm can be scaled to The quantum function algorithm may be a quantum amplitude estimation algorithm.
[0255] The quantum computing system of the computing system repeatedly executes (710) a quantum gradient algorithm to obtain a value at a point x. 0 Determine the k-dimensional gradient of the function f(x) within the error ∈. The quantum gradient algorithm includes a phase oracle defined by a finite difference approximation of order greater than zero The complexity of the quantum gradient algorithm scales to In some embodiments, the quantum gradient algorithm is scaled to (See, for example, Section 5.2, Table 4 and Figure 4 , where using m = 1 instead of m = 4 (as Theorem 1 states, m = 4) is better (e.g., smaller). Since smaller values of m can be used, this function is better than the Gevrey class G 1 / 2 The function is smoother and can be scaled to be better than Determining the k-dimensional gradient of the function f(x) may include performing maximum likelihood estimation (MLE) or performing automatic differentiation.
[0256] Phase Oracle It can be given by the following formula: where m is the order of the finite difference approximation greater than zero, |x> is a k-dimensional vector representing a set of k parameters, S is a scaling factor that controls the accuracy of the finite difference approximation, and are the coefficients of the m-th order finite difference approximation. In some embodiments, Where c is the Gevrey class G 1 / 2 The smoothness parameter of the function (which may be more complex in functions than the Gevrey class G 1 / 2 function (as defined in Theorem 1) is smoother). See also Section 5.2, Table 4 and Figure 4 , where m = 1 is used instead of m = 4 (as Theorem 1 states). Since smaller values of m can be used, this function is better than the Gevrey class G 1 / 2 The function is smoother and can be scaled to be Better. For example, m=1.
[0257] In some embodiments, executing the quantum gradient algorithm includes executing a quantum circuit on a quantum bit of the quantum computing system. Executing the quantum circuit may include: (1) applying a first quantum unitary operator to the quantum bits in the first register and the second register, the first unitary operator being Given, where |ψ 0 (x)> and |ψ 1 (x)> is a normalized quantum state; and (2) applying a second quantum unitary operator to the qubits in the third register and the fourth register, the second unitary operator being Given, where |ψ 0 (-x)> and |ψ 1 (-x)> is a normalized quantum state. The first and second unitary operators may be applied in parallel to the corresponding qubits. Executing the quantum circuit may also include: (1) after applying the first unitary operator, applying a third quantum unitary operator to the qubits in the first register and the second register, the third unitary operator being Given, where and and (2) applying a fourth quantum unitary operator to the qubits in the third and fourth registers after applying the second unitary operator, the fourth unitary operator being given by Given. The third and fourth unitary operators can be applied in parallel to the corresponding qubits. The third unitary operator can be applied multiple times to the qubits in the first register and the second register, and the fourth unitary operator can be applied multiple times to the qubits in the third register and the fourth register. For example, the third and fourth unitary operators are applied π*S times respectively, where S=N / Dl. Executing the quantum circuit can also include: (1) applying multiple Hadamard gates to the qubits in the first register of qubits (e.g., to each qubit in the first register) before applying the first unitary operator; (2) applying a controlled NOT (CNOT) gate to multiple qubits in the third register (e.g., to each qubit in the third register) before applying the second unitary operator, the CNOT gate being controlled by the qubit in the first register; and (3) applying a CNOT gate to the qubits in the third register (e.g., to each qubit in the third register) after applying the third and fourth unitary operators, the CNOT gate being controlled by the qubit in the first register. Executing the quantum circuit can also include applying an inverse quantum Fourier transform to the qubits in the first register. After executing the quantum circuit, the quantum state of the qubits on the first register may be measured.
[0258] After determining the gradient of the function f(x), the computing system can transmit instructions based on the gradient to buy a resource, sell a resource, or adjust a hedge of a portfolio that includes the resource.
[0259] 12. Description of the computing system
[0260] The embodiments described in the above disclosure may be implemented using one or more computing systems. An example computing system is described below.
[0261] Fig. 8A is a block diagram of an embodiment of a computing system 800. Fig. 8A In the example of FIG. 8 , computing system 800 includes a classical computing system 810 (also referred to as a non-quantum computing system) and a quantum computing system 820 . However, the computing system may also include only a classical computing system or a quantum computing system. Fig. 9 The embodiment of the classical computing system 810 is further described. Although the classical computing system 810 and the quantum computing system 820 are shown together, the two systems can also be physically separated systems. For example, Figure 8B An example cloud computing architecture is shown in which computing system 810 and quantum computing system 820 communicate via network 857. Computing system 800 may include different elements than those shown or additional elements (e.g., multiple quantum computing systems 820). Additionally, functionality may be distributed among the elements in a manner different than that described.
[0262] The classical computing system 810 can control the quantum computing system 820. For example, the classical computing system 810 generates and transmits instructions for the quantum computing system 820 to execute a quantum algorithm or a quantum circuit. Fig. 8A Only one classical computing system 810 is shown, but any number of classical computing systems 810 or other external systems may be connected to the quantum computing system 820 .
[0263] Figure 8C 8 is a block diagram of an embodiment of a quantum computing system 820. The quantum computing system 820 includes any number of quantum bits ("qubits") 850 and an associated qubit controller 840. Fig.8D As shown, qubit 850 can be located in a qubit register (or multiple registers) of quantum computing system 820. Qubits are further described below. Qubit controller 840 is a module that controls one or more qubits 850. Qubit controller 840 can include a classical processor such as a CPU, GPU, or FPGA. Qubit controller 840 can perform physical operations on one or more qubits 850 (e.g., can perform quantum gate operations on qubit 840). Figure 8C In the example of , a separate qubit controller 840 is shown for each qubit 850, however, a qubit controller 850 may also control multiple (e.g., all) qubits 850 of quantum computing system 820, or multiple controllers 850 may control a single qubit. For example, qubit controllers 850 may be separate processors, parallel threads on the same processor, or some combination of the two.
[0264] Fig. 8E 860 . A quantum program to be executed or processed by a quantum computing system 820 is generated by a classical computing system 810. The quantum program may include instructions or subroutines to be executed by the quantum computing system 820. In one example, the quantum program is a quantum circuit. The quantum computing system 820 executes the program (865) and calculates (870) the result (referred to as an attempt or run). The calculation result may include measuring the quantum state generated by the quantum computing system 820 as a result of executing the program. In practice, this may be accomplished by measuring the value of one or more qubits 850. The quantum computing system 820 typically performs multiple attempts to accumulate statistics from probabilistic execution. The number of attempts and any changes (e.g., parameter changes) that occur between attempts may be referred to as a schedule. The schedule may be specified by the program. The result (e.g., quantum state data) (or cumulative result) is recorded (875) by the classical computing system 810. After a termination condition is met (e.g., a threshold number of attempts occur), the result may be returned. The classical computing system 810 may determine the amount based on the received result.
[0265] The quantum computing system 820 uses the laws of quantum mechanics to perform calculations. Quantum processing devices (QPUs), quantum computers, quantum processors, and quantum processing units are all examples of quantum computing systems. Quantum computing system 800 can be a general or non-general quantum computing system (a general quantum computing system can execute any possible quantum circuit (subject to the condition that the number of qubits used by the circuit does not exceed the quantum computing system)). In some embodiments, quantum computing system 800 is a gate model quantum computer. As previously described, the quantum computing system uses so-called qubits (e.g., 850A). Although the value of a classical bit is always 0 or 1, a qubit is a quantum mechanical system whose value can be 0, 1, or a superposition of these two values. Example physical implementations of qubits include superconducting qubits, spin qubits, trapped ions, neutral atom arrays, and photonic systems (e.g., photons in waveguides). For the purposes of this disclosure, a qubit can be implemented by a single physical qubit, or as an error-protected logical qubit that itself includes multiple physical qubits. Additionally, the present disclosure is not specific to qubits. The present disclosure can be generalized to apply to quantum computing systems 820 where the building blocks are qubits (d-level quantum systems, where d>2) or quantum continuous variables instead of qubits.
[0266] A quantum circuit is an ordered collection of one or more gates. A subcircuit may refer to a circuit that is part of a larger circuit. A gate represents a unitary operation performed on one or more qubits. A quantum gate may be described by a unitary matrix. The depth of a quantum circuit is the minimum number of steps to execute the circuit on a quantum computing system. The depth of a quantum circuit may be less than the total number of gates because gates acting on non-overlapping subsets of qubits may be executed in parallel. The layer of a quantum circuit may refer to the steps of a circuit, during which multiple gates may be executed in parallel. In some embodiments, a quantum circuit is executed by a quantum computing system. In this sense, a quantum circuit may be considered to include a set of instructions or operations that a quantum computing system may execute. In order to execute a quantum circuit on a quantum computing system, a user may inform the quantum computing system what circuit to execute. A quantum computing system may include a core quantum device and a classical peripheral / control device (e.g., a qubit controller 840) that is used to coordinate control of the quantum device. For such a classical control device, a description of the quantum circuit may be sent when attempting to have the quantum computer execute the circuit.
[0267] The parameters of a parameterized quantum circuit can refer to the parameters of the gates. For example, a gate that performs a rotation around the y-axis can be parameterized by a real number that describes the angle of rotation.
[0268] Descriptions of quantum circuits to be executed on one or more quantum computing systems may be stored in non-transitory computer-readable storage media. The term "computer-readable storage medium" should be considered to include a single or multiple media (e.g., centralized or distributed databases, or associated caches and servers) capable of storing instructions. The term "computer-readable medium" should also be considered to include any medium capable of storing instructions executed by a quantum computing system and causing the quantum computing system to perform any one or more of the methods disclosed herein. The term "computer-readable medium" includes, but is not limited to, data repositories in the form of solid-state memory, optical media, and magnetic media.
[0269] Fig. 9 is an example architecture of a classical computing system 810 according to one embodiment. The quantum computing system 820 may also have Fig. 9 One or more components described. Fig. 9 A high-level block diagram is depicted that shows the physical components of a computer system that may be used as part or all of one or more of the entities described herein, according to one embodiment. Fig. 9 More, fewer or varying parts are provided in the Fig. 9 A computer 900 is depicted, but the figure is intended as a functional description of various features that may be present in a computer system rather than as a schematic diagram of the structure of the implementations described herein. In practice, and as recognized by those of ordinary skill in the art, items shown separately may be combined together, and some items may be separated.
[0270] Fig. 9 At least one processor 902 is shown coupled to a chipset 904. Memory 906, storage device 908, keyboard 910, graphics adapter 912, pointing device 914, and network adapter 916 are also coupled to the chipset 904. Display 918 is coupled to the graphics adapter 912. In one embodiment, the functionality of the chipset 904 is provided by a memory control hub 920 and an I / O hub 922. In another embodiment, the memory 906 is directly coupled to the processor 902 instead of the chipset 904. In some embodiments, the computer 900 includes one or more communication buses for interconnection between these components. The one or more communication buses optionally include circuits (sometimes referred to as chipsets) for interconnecting and controlling communications between system components.
[0271] The storage device 908 is any non-transitory computer-readable storage medium, such as a hard drive, a compact disk read-only memory (CD-ROM), a DVD, or a solid-state memory device or other optical storage device, a cassette, a magnetic tape, a magnetic disk storage device or other magnetic storage device, a magnetic disk storage device, an optical disk storage device, a flash memory device, or other non-volatile solid-state storage device. Such storage devices 908 may also be referred to as persistent memory. The pointing device 914 may be a mouse, a trackball, or other type of pointing device, and is used in conjunction with the keyboard 910 to enter data into the computer 900. The graphics adapter 912 displays images and other information on a display 918. The network adapter 916 couples the computer 900 to a local area network or a wide area network.
[0272] The memory 906 holds instructions and data used by the processor 902. The memory 906 may be a non-persistent memory, examples of which include high-speed random access memory such as DRAM, SRAM, DDR, RAM, ROM, EEPROM, flash memory.
[0273] As is known in the art, the computer 900 may have Fig. 9 910, 914, 915, 916, 917, 918. In addition, the computer 900 may not have some of the components shown. In one embodiment, the computer 900 acting as a server may not have a keyboard 910, a pointing device 914, a graphics adapter 912, or a display 918. In addition, the storage device 908 may be local or remote from the computer 900 (such as implemented in a storage area network (SAN)).
[0274] As is known in the art, the computer 900 is adapted to execute computer program modules for providing the functions described herein. As used herein, the term "module" refers to computer program logic for providing a specified function. Therefore, a module can be implemented in hardware, firmware, or software. In one embodiment, the program module is stored on a storage device 908, loaded into the memory 906, and executed by the processor 902.
[0275] 13. Other Considerations
[0276] The above disclosure describes example embodiments for illustrative purposes only. Any feature described as essential, important, or otherwise implied to be required should be interpreted as being required only for that embodiment and not necessarily included in other embodiments.
[0277] Additionally, the above disclosure uses the phrase "we" (and other similar phrases) to refer to an entity that is performing an operation (e.g., a step in an algorithm). These phrases are used for convenience. These phrases may refer to a computing system (e.g., computing system 100) that performs the described operation.
[0278] Some of the above disclosed parts describe embodiments from the aspect of algorithmic processes or operations. These algorithmic descriptions and representations are usually used by technicians in the field of computing to effectively convey the main content of their work to other technicians in the field. Although these operations are described from the functional, computational or logical aspects, it should be understood that these operations are implemented by computer programs, microcodes, etc. including instructions executed by processors or equivalent circuits. In addition, it has also been proven that, without loss of generality, it is sometimes convenient to refer to the arrangement of these functional operations as modules. In some cases, modules can be implemented in hardware, firmware or software.
[0279] As used herein, any reference to "one embodiment" or "embodiment" means that the specific elements, features, structures or characteristics described in the embodiment are included in at least one embodiment. The phrase "in one embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment. Similarly, the use of "one" or "an" before an element or component is only for convenience. The description should be understood to mean that there are one or more elements or components, unless other meanings are clearly expressed. As used herein, the terms "comprise", "include", "have" or any other variation thereof are intended to cover non-exclusive inclusion. For example, a process, method, article or device including a series of elements is not necessarily limited to those elements, but may include other elements that are not explicitly listed or inherent to such a process, method, article or device. In addition, unless explicitly stated to the contrary, "or" refers to inclusive or rather than exclusive or. For example, any of the following satisfies conditions A or B: A is true (or exists) and B is false (or does not exist), A is false (or does not exist) and B is true (or exists), and both A and B are true (or exist).
[0280] In addition, "a" or "an" is used to describe elements and components of the embodiments. This is done only for convenience and to give a general sense of the present disclosure. The description should be understood to include one or at least one, and the singular also includes the plural, unless otherwise clearly indicated. In the case where values are described as "about" or "substantially" (or their derivatives), these values should be interpreted as accurate within + / -10%, unless other meanings are obvious from the context. For example, "about 10" should be understood to mean "in the range of 9 to 11."
[0281] Alternative embodiments are implemented in computer hardware, firmware, software, and / or combinations thereof. Implementations may be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps may be performed by a programmable processor executing a program of instructions to perform functions by performing operations on input data and generating outputs. As used herein, "processor" may refer to one or more processors. Embodiments may advantageously be implemented in one or more computer programs that can be executed on a programmable system comprising at least one programmable processor, at least one input device, and at least one output device, the programmable processor being coupled to receive / send data and instructions from / to a data storage system. Each computer program may be implemented in a high-level procedural programming language or an object-oriented programming language, or, if desired, in assembly language or machine language; and in any case, the language may be a compiled language or an interpreted language. Suitable processors include, by way of example, general-purpose and special-purpose microprocessors. Generally, the processor receives instructions and data from a read-only memory and / or a random access memory. Generally, a computer includes one or more mass storage devices for storing data files; such devices include disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including, for example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing may be supplemented by or incorporated into ASICs (application specific integrated circuits) and other forms of hardware.
[0282] Although the above description contains many details, these details should not be interpreted as limiting the scope of the present disclosure, but are merely for illustrating different examples. It should be understood that the scope of the present disclosure includes other embodiments not discussed in detail above. Various other modifications, changes and variations that are obvious to those skilled in the art may be made to the arrangement, operation and details of the methods and devices disclosed herein without departing from the spirit and scope of the present disclosure.
Claims
1. A method comprising: Receiving a function f(x) describing a quantity of a resource, x representing a set of k parameters of said quantity; as well as A quantum gradient algorithm is repeatedly executed on the quantum computing system to determine the k-dimensional gradient of a function f(x) within an error ∈ at a point x0, the quantum gradient algorithm including a phase oracle defined by a finite difference approximation having an order greater than zero The complexity of the quantum gradient algorithm is scaled to 2. The method according to claim 1, wherein the phase oracle Given by: wherein m is the order of the finite difference approximation greater than zero, |x> is a k-dimensional vector representing the set of k parameters, S is a scaling factor that controls the accuracy of the finite difference approximation, and are the coefficients of the m-th order finite difference approximation.
3. The method according to claim 2, wherein where c is the Gevrey class G 1 / 2 The smoothness parameter of the function. The method according to claim 3 , wherein m=1.
5. The method according to claim 1 further comprises repeatedly executing a quantum function algorithm on the quantum computing system to determine an error ∈ p The function f(x) within. The method according to claim 5 , wherein the quantum function algorithm is a quantum amplitude estimation algorithm.
7. The method according to claim 5, wherein the complexity of the quantum function algorithm is scaled to The method of claim 1 , wherein f(x) does not have a closed-form solution.
9. The method of claim 1, wherein f(x) is not a Gevrey class G 1 / 2 function.
10. The method of claim 1, wherein executing the quantum gradient algorithm comprises executing quantum circuits on qubits of the quantum computing system.
11. The method of claim 10, wherein executing the quantum circuit comprises: Applying a first quantum unitary operator to the qubits in the first register and in the second register, the first unitary operator being given by Given, where |ψ0(x)〉 and |ψ1(x)〉 are normalized quantum states; as well as Applying a second quantum unitary operator to the qubits in the third register and in the fourth register, the second unitary operator being given by Given, where |ψ0(-x)> and |ψ1(-x)> are normalized quantum states.
12. The method of claim 11, wherein executing the quantum circuit further comprises: After applying the first unitary operator, applying a third quantum unitary operator to the qubits in the first register and in the second register, the third unitary operator being Given, where and as well as After applying the second unitary operator, applying a fourth quantum unitary operator to the qubits in the third register and in the fourth register, the fourth unitary operator being Given.
13. The method according to claim 12, wherein: The third unitary operator is applied multiple times to qubits in the first register and in the second register; and The fourth unitary operator is applied multiple times to qubits in the third register and in the fourth register.
14. The method of claim 13, wherein executing the quantum circuit further comprises: applying a Hadamard gate to qubits in the first register of qubits prior to applying the first unitary operator; applying a controlled NOT (CNOT) gate to the qubits in the third register before applying the second unitary operator, the CNOT gate being controlled by the qubits in the first register; as well as After applying the third unitary operator and the fourth unitary operator, applying a CNOT gate to the qubits in the third register, the CNOT gate being controlled by the qubits in the first register.
15. The method of claim 14, wherein executing the quantum circuit further comprises applying an inverse quantum Fourier transform to the qubits in the first register.
16. The method of claim 1, wherein the quantum gradient algorithm is superior to Zoom.
17. The method of claim 1, wherein determining the k-dimensional gradient of the function f(x) comprises performing maximum likelihood estimation (MLE).
18. The method of claim 1, wherein determining the k-dimensional gradient of the function f(x) comprises performing automatic differentiation.
19. A method comprising: Receiving a function f(x) describing a quantity of a resource, x representing a set of k parameters of said quantity; Preparing a quantum circuit configured to implement a quantum gradient algorithm when executed on four qubit registers of a quantum computing system, the quantum gradient algorithm scaling to and includes a phase oracle defined by a finite difference approximation with order greater than zero Among them, in order to realize the phase oracle The quantum circuit includes (1) a first quantum unitary operator to be applied to qubits in the first register and in the second register, and (2) a second quantum unitary operator to be applied to qubits in the third register and in the fourth register; as well as The quantum circuit is repeatedly executed on the quantum bits of the quantum computing system to determine the k-dimensional gradient of the function f(x) within an error ∈ at a point x0.
20. The method of claim 19, further comprising any of the limitations in claims 2 to 18.
21. A method comprising: Receiving a function f(x) describing a quantity of a resource, wherein x is a k-dimensional vector representing a set of k parameters of said quantity; as well as Generates a set of instructions for repeatedly executing a quantum gradient algorithm on a quantum computing system, the quantum gradient algorithm including a phase oracle defined by a finite difference approximation having an order greater than zero The complexity of the quantum gradient algorithm is scaled to transmitting the instruction to the quantum computing system; receiving quantum state data from the quantum computing system; as well as Based on the quantum state data, a k-dimensional gradient of the function f(x) within an error ∈ at a point x0 is determined.
22. The method of claim 21 further comprising any of the limitations in claims 2 to 18.
23. A non-transitory computer-readable storage medium comprising stored instructions that, when executed by a computing system, cause the computing system to perform operations comprising: Receiving a function f(x) describing a quantity of a resource, wherein x represents a set of k parameters of said quantity; as well as Repeatedly executing a quantum gradient algorithm on a quantum computing system to determine the k-dimensional gradient of the function f(x) within an error ∈ at a point x0, the quantum gradient algorithm including a phase oracle defined by a finite difference approximation having an order greater than zero The complexity of the quantum gradient algorithm is scaled to 24. The non-transitory computer-readable storage medium of claim 23, further comprising stored instructions that, when executed by a computing system, cause the computing system to perform operations of any of the limitations recited in claims 2 to 18.
25. A computing system comprising: a quantum computing system configured to execute a quantum circuit; as well as A classical computing system configured to perform operations comprising: Receiving a function f(x) describing a quantity of a resource, wherein x is a k-dimensional vector representing a set of k parameters of said quantity; Generates a set of instructions for repeatedly executing a quantum gradient algorithm on a quantum computing system, the quantum gradient algorithm including a phase oracle defined by a finite difference approximation having an order greater than zero The complexity of the quantum gradient algorithm is scaled to transmitting the instruction to the quantum computing system; receiving quantum state data from the quantum computing system; and Based on the quantum state data, a k-dimensional gradient of the function f(x) within an error ∈ at a point x0 is determined.
