This application claims priority to Japanese Patent Application No. 2021-080297, filed May 11, 2021, the disclosure of which is incorporated by reference herein in its entirety.
The present disclosure relates to a system and a method that calculates expectation values by quantum amplitude estimation, e.g., for a number of behavior scenarios.
The calculation of expectation values for random variables such as future behavior scenarios may be applicable to numerous industries and programming solutions, including those that involve closed loop feedback systems. However, accurately calculating such values may require much processing power and time. For example, the algorithms to calculate such expectation values using conventional computers (Monte Carlo method) may need to sample numerous random variables. The scale of processing power and time needed to execute the simulations and analyze their outcomes may make the accurate calculations of such expectation values impractical using conventional computing techniques. Therefore, improvements in the field of expectation value calculations are desired.
It is an objective of the present disclosure to use quantum amplitude estimation to calculate an expectation value even on noisy quantum computers.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
In one aspect, a system is provided that includes a quantum computing unit and a classical computing unit. The quantum computing unit includes a manipulation unit that manipulates a quantum state, a state maintaining unit that maintains the quantum state, and a measurement unit that observes the quantum state. The classical computing unit performs post-processing based on output from the quantum computing unit. The manipulation unit is configured to obtain a first operator that produces a superposition state of a plurality of random variables. The manipulation unit is configured to produce a final quantum state by performing iteration of a first operation and a second operation on an initial quantum state using the state maintaining unit. The first operation produces a second state by performing a computation that inverts a first state with respect to a state obtained by applying a Hermitian conjugate of the first operator to a quantum state where the last bit of a bit string is 0. The second operation performs a computation that inverts the second state with respect to the first state, thereby producing a new first state. The measurement unit is configured to measure the bit string in the final quantum state. The measurement unit is configured to record, in the classical computing unit, the number of hits that is the number of times a quantum state where all bits of the bit string are 0 is observed. The classical computing unit is configured to calculate an expectation value of the random variables by maximum likelihood estimation according to the number of hits.
In another aspect, a method is provided that is executed by a system. The system includes a quantum computing unit and a classical computing unit. The quantum computing unit includes a manipulation unit that manipulates a quantum state, a state maintaining unit that maintains the quantum state, and a measurement unit that observes the quantum state. The classical computing unit performs post-processing based on output from the quantum computing unit. The method includes: obtaining, using the manipulation unit, a first operator that produces a superposition state of a plurality of random variables; producing, using the manipulation unit, a final quantum state by performing iteration of a first operation and a second operation on an initial quantum state using the state maintaining unit, the first operation producing a second state by performing a computation that inverts a first state with respect to a state obtained by applying a Hermitian conjugate of the first operator to a quantum state where the last bit of a bit string is 0, the second operation performing a computation that inverts the second state with respect to the first state, thereby producing a new first state; measuring, using the measurement unit, the bit string in the final quantum state; recording, using the measurement unit and in the classical computing unit, the number of hits that is the number of times a quantum state where all bits of the bit string are 0 is observed; and calculating, using the classical computing unit, an expectation value of the random variables by maximum likelihood estimation according to the number of hits.
In yet another aspect, a computer-readable medium for storing instructions is provided. The instructions are executed by a system. The system includes a quantum computing unit and a classical computing unit. The quantum computing unit includes a manipulation unit that manipulates a quantum state, a state maintaining unit that maintains the quantum state, and a measurement unit that observes the quantum state. The classical computing unit performs post-processing based on output from the quantum computing unit. When executed by the system, the instructions perform a method. The method includes: obtaining, using the manipulation unit, a first operator that produces a superposition state of a plurality of random variables; producing, using the manipulation unit, a final quantum state by performing iteration of a first operation and a second operation on an initial quantum state using the state maintaining unit, the first operation producing a second state by performing a computation that inverts a first state with respect to a state obtained by applying a Hermitian conjugate of the first operator to a quantum state where the last bit of a bit string is 0, the second operation performing a computation that inverts the second state with respect to the first state, thereby producing a new first state; measuring, using the measurement unit, the bit string in the final quantum state; recording, using the measurement unit and in the classical computing unit, the number of hits that is the number of times a quantum state where all bits of the bit string are 0 is observed; and calculating, using the classical computing unit, the an expectation value of the random variables by maximum likelihood estimation according to the number of hits.
Other features and aspects will be apparent from the following detailed description, the drawings, and the claims.
Throughout the drawings and the detailed description, the same reference numerals refer to the same elements. The drawings may not be to scale, and the relative size, proportions, and depiction of elements in the drawings may be exaggerated for clarity, illustration, and convenience.
This description provides a comprehensive understanding of the methods, apparatuses, and/or systems described. Modifications and equivalents of the methods, apparatuses, and/or systems described are apparent to one of ordinary skill in the art. Sequences of operations are exemplary, and may be changed as apparent to one of ordinary skill in the art, with the exception of operations necessarily occurring in a certain order. Descriptions of functions and constructions that are well known to one of ordinary skill in the art may be omitted.
Exemplary embodiments may have different forms, and are not limited to the examples described. However, the examples described are thorough and complete, and convey the full scope of the disclosure to one of ordinary skill in the art.
Embodiments of the present technology may be directed to using a quantum computing device, alone or in conjunction with a classical computing device, to calculate expectation values. In particular, embodiments may calculate an expectation value of a function of a random variable on a quantum computing device with noise.
The goal of the expectation value calculation is to calculate an approximate value of the expectation value given by the following equation.
where 2n realizations of a random variable are considered, p(x) is the probability density function that gives the probability of observing the value x of the random variable, and g(x) is some function of the random variable.
In many cases, the Monte Carlo method is used to calculate such expectation value by a conventional computer. In the Monte Carlo computing, the expectation value is calculated by sampling the value x with the probability according to the probability density function p(x). To calculate the expectation value with an accuracy of E, generation of N=O (1/ε2) samples of the random variable is needed.
In contrast, to calculate the expectation value, quantum computing can achieve the same accuracy by repeating a computation N=O(1/ε) times.
To calculate this equation with a quantum computer, an operator P (“first operator”) is assumed that produces a superposition state of realizations of the random variable.
where the state |0n is a state where all n qubit registers are 0. This state is an initial state of computing.
Then, one ancilla qubit is added to this state to assume an operator R for calculating a function g(x) of the random variable as the amplitude of the ancilla qubit.
The operator P and operator R are combined into the following operator.
A=R(P⊗I1) [Equation 4]
where Ik is the identity operator for k bits, and I1 represents an identity operator for one bit. The state |ψ obtained by applying the operator A to the initial state |0n
is defined as follows.
Measuring the ancilla qubit obtains the expectation value (Equation 1) as the probability of observing |1.
When this state is repeatedly observed to estimate the expectation value from the number of times |1 is observed, the relationship between the number of iterations N and the estimation accuracy c of the expectation value is expressed as follows based on the law of large numbers.
This number of iterations required to achieve the accuracy c is the same as that in the Monte Carlo method of conventional computing devices.
A quantum algorithm can be used to reduce the number of iterations. This technique uses maximum likelihood estimation based on a combination of measurement data with different numbers of amplitude amplification operations generated using quantum circuits.
Referring to
First, the mathematical formula of Equation 5 is rewritten as follows (step S00).
Then, the total number of iterations is determined (step S01). The total number of iterations kmax˜(1/ε) is set using the reciprocal of the required accuracy ε. mk and Nk (k=0, 1, . . . kmax) are variables that can be freely set by the user. For example, in this technique, mk=FLOOR(2k−1) and Nk=100.
Then, a counter j is initialized (j=0), and the number of hits is initialized (hk=0) (step S02).
A state is then produced by applying the Grover operator G mk times to |ψ of Equation 8 (step S03).
This step uses the following Grover operator G:
G=AU0A†Uf, [Equation 9]
where U0 is an operator that inverts the sign of the initial state |0n+1, and Uf is an operator that inverts the sign of |ψ0
|0
, which are defined by the following equations.
U0=−In+1+2|0n+10n+1|
Uf=−In+1+2In⊗|00| [Equation 10]
The Grover operator G is applied mk times to |ψ of Equation 8 as shown below.
Gm=cos((2mk+1)θ|ψ0
+sin((2mk+1)θ|ψ1
|1
[Equation 11]
The amplitude amplification by the Grover operator G is outlined as follows. As shown in of Equation 8 with respect to the basis |ψ0
|0
is performed to produce the first vector, and θ is amplified by performing a computation of inverting the first vector with respect to the superposition state |ψ
.
Then, it is determined whether the last bit is 1 (step S04).
If the last bit is 1 (“YES” at step S04), the number of hits is incremented (step S05).
If the last bit is not 1 (“NO” at step S04), the increment of the number of hits (step S05) is skipped.
Then, 1 is added to the counter j, and it is determined whether the counter j has reached Nk (step S06).
If the counter j has not reached Nk (“NO” at step S06), the process from step S03 is repeated.
When the counter j reaches Nk (“YES” at step S06), the number of hits hk is recorded (step S07).
Then, 1 is added to the number of iterations k, and it is determined whether the number of iterations k has reached the total number of iterations kmax (step S08).
If the number of iterations k has not reached the total number of iterations kmax (“NO” at step S08), the process from step S02 is repeated.
If the number of iterations k reaches the total number of iterations kmax (“YES” at step S08), the maximum likelihood estimation of sin(θ) is performed using the likelihood function of the following equation (step S09). That is, θ that maximizes the likelihood is determined.
where Lk is a partial likelihood function defined only using hk (the number of hits at the kth iteration), L is the whole likelihood function, and P is the probability density function that gives the probability of observing 1 for the ancilla qubit.
Quantum states are usually disturbed by the noise caused by the interaction between the system and the environment. However, the maximum likelihood estimation of conventional quantum-computing techniques does not consider the effects of noise.
A calculation performed considering the effects of noise is described below.
Assuming depolarization noise, the system is assumed to be exposed to the following depolarization noise during each operation.
where ρ is a density matrix, and r is a known constant representing the noise strength. This noise gives a random bit string with a probability of 1−r. In−1 is an identity operator in an n+1 qubit space. d=2n+1 is the dimension of the n+1 qubit system.
Under the above depolarization noise, the density matrix of the state obtained by applying the Grover operator G mk times to the initial state |ψ is as follows.
where Nq=2mk+1 is the number of queries of the operator A. The probability pG,r(0;θ,Nq) of obtaining 0 and the probability pG,r(1;θ,Ng) of obtaining 1 when the last bit is read from this state are expressed as:
Thus, under depolarization noise, the likelihood function of Equation 12 is changed as follows, and maximum likelihood estimation can be performed using this likelihood function.
In a general sense, with a probability model including an unknown population parameter θ, the lower limit of the estimation accuracy in estimating θ from Nk measurement results is given as follows using the Fisher information F.
where E[⋅] is the expectation value under the probability model, and the circumflex accent θ is an unbiased estimator of θ obtained from the measurement results. When the number of measurements Nk is sufficiently large, maximum likelihood estimation is known to substantially achieve the lower limit of the above inequality. For this reason, the Fisher information is used to evaluate the performance of the technique as follows.
The Fisher information Fc,G,r(θ,Nq) related to the probability distribution Equation 15 can be expressed as follows.
This Fisher information has the following upper envelope.
Fe,G,r(Nq)|env=4Nq2r2N
As shown in
Referring to
As shown in
[Hardware Configuration]
Referring to
The communication device H11 is an interface, such as a network interface or a wireless interface, that establishes communication paths with other devices and performs data transmission and reception.
The input device H12 receives input from a user or the like and may be a mouse or a keyboard, for example. The display device H13 is a display or the like that displays various types of information.
The storage device H14 stores data and various programs for executing various functions of the user terminal 10 and the arithmetic device 20. Examples of the storage device H14 include ROM, RAM, and a hard disk.
The processor H15 controls processes of the user terminal 10 and the arithmetic device 20 using programs and data stored in the storage device H14. Examples of the processor H15 include a CPU and an MPU. The processor H15 loads the programs stored in the ROM into the RAM and executes various processes for services.
The processor H15 is not limited to a system that performs software processing for all processes performed by the processor H15. For example, the processor H15 may include a dedicated hardware circuit, such as an application-specific integrated circuit, that performs hardware processing for at least some of the processes performed by the processor H15. That is, the processor H15 may be configured as circuitry that includes: (1) at least one processor that operates according to a computer program; (2) at least one dedicated hardware circuit that performs at least a part of various processes; or (3) a combination of (1) and (2). The processor includes a CPU and memory, such as RAM and ROM, which stores program codes or instructions that enable the CPU to perform processes. The memory, or the computer-readable medium, may be any available medium that can be accessed by a computing device, such as a dedicated computer.
[System Configuration]
Referring to
The user terminal 10 is a computer terminal used by a user.
The arithmetic device 20 is a computer for performing amplitude estimation.
The arithmetic device 20 performs the processes described below (various processes in stages including a management stage, a quantum computing stage, and a classical computing stage). The arithmetic device 20 executes programs for the above purposes and thus functions as a management unit 21, a quantum computing unit 22, and a classical computing unit 23.
The management unit 21 manages quantum computing and classical computing.
The quantum computing unit 22 performs quantum computing. In this embodiment, the quantum computing unit 22 executes an amplitude amplification algorithm. The quantum computing unit 22 includes a manipulation unit 221, a state maintaining unit 222, and a measurement unit 223.
The manipulation unit 221 performs quantum manipulation according to quantum operations for manipulating the qubits of the state maintaining unit. In this case, the manipulation unit 221 manipulates (produces) a state held by the state maintaining unit 222 using quantum circuits such as quantum gates, and manipulates the magnetic or photon paths (circuits) to manipulate (create) a state held by the state maintaining unit 222.
The state maintaining unit 222 includes multiple qubits and maintains a quantum state. The qubits may be electron levels, electron spins, ion levels, nuclear spins, or photons, which maintain a superposition state of multiple values in a physical state. The qubits are not limited to the above as long as they can maintain superposition states.
The measurement unit 223 observes the eigenstate of superposition state of the quantum bits in the state maintaining unit 222. The measurement unit 223 records the number of hits according to the state of the qubits of the state maintaining unit 222. Then, the measurement unit 223 outputs the observed value to the classical computing unit 23 via the management unit 21.
The classical computing unit 23 performs classical computing. The present embodiment executes a maximum likelihood estimation algorithm to estimate the amplitude of the state |1 of the ancilla qubit below and calculate the expectation value (Equation 5 is rewritten below).
In the following procedure, an amplitude amplification algorithm is used for quantum computing, and the classical computer is used for the other parts.
First, the management unit 21 obtains an operator A from the user terminal 10 (step S10). This operator A (“first operator”) is determined by a function according to the type of the expectation value. Then, the manipulation unit 221 of the quantum computing unit 22 produces the following state |1.
|ψ=A|0
=cos θ|ψ
n|0
+sin θ|ψ1
n|1
[Equation 22]
In this case, the manipulation unit 221 determines the total number of iterations kmax (step S11). The manipulation unit 221 calculates the total number of iterations kmax=O(1/ε) according to the required accuracy E obtained from the user terminal 10.
The manipulation unit 221 then initializes a counter j (j=0) and initializes the number of hits hk (hk=0) (step S12).
Then, the quantum computing unit 22 prepares a state by applying an improved Grover operator Q to the state |ψ in the state maintaining unit 222 mk times (step S13).
This step uses the improved Grover operator Q expressed by the following equation with the operator A and the Hermitian conjugate of the operator A.
Q=U0A†UfA
U0=−In+1+2|0n+1
0|n+1,
Uf=−In+1+2Io⊗|00|. [Equation 23]
The Grover operator G performs a rotation between |ψ0n|0
and |ψ1
n|1
(or between A|0
n+1 and A†|ψ0
n|0
. In contrast, the improved Grover operator Q performs a rotation between |0
n+1 and A†|ψ0
n|0
.
In this case, the state |ψQ(θ,Nq) obtained by applying the improved Grover operator Q mk times to the initial state |0
n+1 is as follows.
The outline of the amplitude amplification by the improved Grover operator Q is shown below.
As shown in n+1, where all n+1 bits are in the 0 state, with respect to the following state.
A†|ψ0n|0
=cos θ|0
n+1−sin θ|φ
n+1 [Equation 25]
This obtains the second state A†Uf|0n+1. Here, |ψ
n+1 is a state other than the state where all bits are 0.
A computation of inverting this second state with respect to the initial state |0n+1 is performed to generate a third state Q|0n+1.
Equation 24 is obtained by repeating the action of the improved Grover operator Q mk times.
Then, the measurement unit 223 of the quantum computing unit 22 determines whether all the bits are 0 in the state maintaining unit 222 (step S14).
When the measurement unit 223 determines that all bits are 0 (“YES” at step S14) in the state maintaining unit 222, the manipulation unit 221 increments the number of hits (step S15). Specifically, the manipulation unit 221 adds 1 to the number of hits hk.
When not all bits are 0 (“NO” at step S14) in the state maintaining unit 222, the measurement unit 223 skips the incrementing of the number of hits (step S15).
Then, the manipulation unit 221 adds 1 to the counter j and determines whether the counter j has reached Nk (step S16).
If the counter j has not reached Nk (“NO” at step S16), the manipulation unit 221 repeats the process from step S13.
If the counter j has reached Nk (“YES” at step S16), the manipulation unit 221 records the number of hits hk (step S17). Specifically, the manipulation unit 221 records the number of hits hk in the classical computing unit 23.
Then, the manipulation unit 221 adds 1 to the number of iterations k and determines whether the number of iterations k has reached the total number of iterations kmax (step S18).
If the number of iterations k has not reached the total number of iterations kmax (“NO” at step S18), the manipulation unit 221 repeats the process from step S12.
If the number of iterations k has reached the total number of iterations kmax (“YES” at step S18), the classical computing unit 23 performs maximum likelihood estimation of sin θ using the likelihood function of the following equation (Step S19). Specifically, the classical computing unit 23 calculates θ that maximizes the likelihood.
The present technique uses the above algorithm.
The performance evaluation of this technique is shown below, indicating that the technique achieves performance that surpasses existing techniques and is also significantly close to the theoretical limit.
The density matrix of the state obtained by applying the improved Grover operator Q mk times to the initial state under noise conditions is given by:
where Nq=2mk is the number of queries of the operator A. The probability distribution obtained when all bits are read from this state can be expressed as follows:
where pQ,r(0;θ,Nq) represents the probability that a bit string in which all bits are 0 is obtained, and pQ,r(1;θ,Nq) represents the probability that other bit string is obtained.
Intuitively, the present embodiment is expected to achieve the following advantageous effects.
(1) With the Grover operator of the existing technique, θ is assessed by mapping with respect to the basis |ψ0|0
, and the state of the high-order bits is unknown. Thus, noise information can be obtained only from the last bit. This may hinder noise suppression. In contrast, according to the present embodiment, all bit strings in the initial state |0
n+1 and the basis are known. It is thus possible to obtain noise information by observing all bits, increasing the possibility of further suppression.
As a result, the second term of p(mk)=pQ,r(0;θ,Nq) in Equation 28 is 1/d=½n, thereby reducing the noise exponentially with respect to the number of bits n.
The actual superiority of this embodiment is now described from the viewpoint of Fisher information. The Fisher information related to the probability distribution of Equation 28 can be expressed as follows.
This Fisher information has the following upper envelope Fc,Q,r(Nq)|env.
Envelopes of the Fisher information of the Grover operator G of the existing technique of Equation 19: f11, f21, f31
Envelopes of the Fisher information of the improved Grover operator Q of Equation 30 (Fc,G,r(Nq)|env and Fc,Q,r(Nq)|env): f12, f22, f32
Theoretical upper limit of the Fisher information of Equation 21 (Fu(Nq)): f13, f23, f33
As shown in
This shows that the use of the improved Grover operator Q increases the Fisher information than when the Grover operator G is used.
The above discussion concerns the Fisher information envelope, but the practical effectiveness of the present technique can also be confirmed by performing numerical simulations on various θ.
(2) According to the present embodiment, to calculate the amplitude of the state |1 (expectation value), the computation results of the quantum computing unit 22 are subjected to maximum likelihood estimation by the classical computing unit 23. This reduces the performance capability required for the quantum computer used for quantum computing.
This embodiment can be modified and implemented as follows. The embodiments and the following modifications may be combined to the extent that does not cause technical contradiction.
In a particular embodiment, the improved Grover operator described above may be used to calculate the price of a financial derivative. For example, a price of a financial derivative, such as an option price, can be calculated with the expectation value. In the embodiments for calculating the option price, the realizations of the random variable are a number of scenarios (Scenario1, Scenario2, . . . ScenarioN). The expectation value is calculated based on those scenarios In a particular non-limiting embodiment (calculation of an option price for a European call option), the option price C can be calculated by the following equation using an expectation value EQ.
C=e−rTEQ[f(S(T))] [Equation 31]
where r is the risk-free rate, T is the time until the maturity date, f(⋅) is the payoff function, and S(T) is the underlying asset price at the maturity.
While disclosed as being useable to calculate the price of a financial derivative, it will be appreciated that the application scope of the present disclosure is not so limited. For example, the present disclosure is also applicable to the computing of values at risk (VAR), which is an asset risk assessment index, in a price fluctuation model including multiple scenarios. Additionally, it can be widely applied not only to finance but also to calculation using the Monte Carlo method, which is calculated using random numbers.
In the above embodiment, quantum computing and classical computing are used together. All procedures may also be performed only by a quantum computer.
In the above embodiment, the system may calculate an expectation value of the result obtained by applying a payoff function according to the derivative to the underlying asset price as the price assessment of the financial instrument.
In the above embodiment, the system may calculate an asset risk assessment index as price assessment of the financial instrument.
Various changes in form and details may be made to the examples above without departing from the spirit and scope of the claims and their equivalents. The examples are for the sake of description only, and not for purposes of limitation. Descriptions of features in each example are to be considered as being applicable to similar features or aspects in other examples. Suitable results may be achieved if sequences are performed in a different order, and/or if components in a described system, architecture, device, or circuit are combined differently, and/or replaced or supplemented by other components or their equivalents. The scope of the disclosure is not defined by the detailed description, but by the claims and their equivalents. All variations within the scope of the claims and their equivalents are included in the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2021-080297 | May 2021 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
20190384597 | Horesh | Dec 2019 | A1 |
20230016119 | Wei | Jan 2023 | A1 |
20230306286 | Wang | Sep 2023 | A1 |
20230315808 | Babbush | Oct 2023 | A1 |
Number | Date | Country |
---|---|---|
2017059074 | Mar 2017 | JP |
Entry |
---|
Rebentrost et al., “Quantum computational finance: Monte Carlo pricing of financial derivatives,” arXiv.org, Cornell University, Apr. 30, 2018, accessed on Feb. 25, 2021, retrieved from https://arxiv.org/abs/1805.00109 17 pages. |
Suzuki et al., “Amplitude Estimation without Phase Estimation,” Apr. 23, 2019, accessed on Feb. 25, 2021, retrieved from https://arxiv.org/abs/1904.10246 13 pages. |
Number | Date | Country | |
---|---|---|---|
20220374758 A1 | Nov 2022 | US |