[Paper Review] A Generalized Quantum Inner Product and Applications to Financial Engineering
This paper introduces a generalized quantum inner product framework that leverages quantum amplitude and state encoding to efficiently compute weighted sums of discrete functions, enabling fast computation of financial risk metrics like value at risk (VaR), expected values, and partial moments. The method uses canonical quantum circuits for linear functions and normal distributions, achieving quantum speedup for key financial engineering workloads via interference and entanglement.
In this paper we present a canonical quantum computing method to estimate the weighted sum w(k)f(k) of the values taken by a discrete function f and real weights w(k). The canonical aspect of the method comes from relying on a single linear function encoded in the amplitudes of a quantum state, and using register entangling to encode the function f. We further expand this framework by mapping function values to hashes in order to estimate weighted sums w(k)h(f(k)) of hashed function values with real hashes h. This generalization allows the computation of restricted weighted sums such as value at risk, comparators, as well as Lebesgue integrals and partial moments of statistical distributions. We also introduce essential building blocks such as efficient encodings of standardized linear quantum states and normal distributions.
Motivation & Objective
- To develop a canonical quantum method for estimating weighted sums of discrete functions, crucial for financial engineering applications.
- To generalize quantum inner products by combining amplitude and state encoding to compute complex financial metrics such as VaR and partial moments.
- To provide standardized, reusable quantum building blocks for common distributions (e.g., normal, raised cosine) and functions (e.g., linear, identity).
- To enable efficient quantum computation of expected values and risk measures using unitary encoding and interference.
- To demonstrate feasibility on real IBM Quantum hardware with error-resilient implementations.
Proposed method
- The method encodes a discrete function $ f: \{0, \dots, 2^n - 1\} \to \{0, \dots, 2^m - 1\} $ using register entangling and amplitude encoding, forming a superposition where amplitudes represent weights $ w_k $.
- A generalized inner product is defined as $ \sum_{k=0}^{2^n - 1} w_k f(k) $, computed via quantum interference and controlled rotations, enabling estimation of expected values and risk metrics.
- The framework extends to hashed function values $ \sum w_k h_{f(k)} $, allowing computation of comparators and concentration metrics like the number of negative function values.
- It introduces canonical circuits for encoding linear functions $ L_n $, identity functions, and standardized distributions (e.g., normal, raised cosine) using inverse QFT and phase gradient states.
- The method uses geometric sequence states $ \ket{\gamma_\theta} $ as building blocks, prepared via cascaded phase gates, to encode periodic amplitudes for quantum Fourier transform and phase estimation.
- Exact and approximate encodings of normal distributions are provided using QFT-based state preparation and amplitude amplification, with error analysis on IBM Q hardware.
Experimental results
Research questions
- RQ1Can a generalized quantum inner product be constructed using both amplitude and state encoding to compute weighted sums of discrete functions efficiently?
- RQ2How can quantum interference and entanglement be leveraged to estimate financial risk metrics such as value at risk (VaR) and partial moments?
- RQ3What are the most efficient quantum circuit implementations for encoding standardized distributions like the normal and raised cosine distributions?
- RQ4Can canonical quantum circuits for linear functions and identity functions be used as universal building blocks for expected value computation in financial models?
- RQ5To what extent can this framework be implemented on near-term quantum hardware with realistic noise and readout errors?
Key findings
- The expected value of a linear function under a normal distribution was estimated on IBM's ibmq_jakarta with a $ \ket{0} $ amplitude of 0.57378, close to the simulated value of 0.60131, with a 2.79% readout error.
- The method achieved a 4.07% readout assignment error in a three-qubit experiment, with outcome probability distributions closely matching simulation results.
- The generalized inner product framework enables direct computation of value at risk (VaR) through canonical output selection, avoiding iterative or heuristic approaches.
- Efficient circuits for exact and approximate encoding of normal and raised cosine distributions were developed and validated in the framework.
- The canonical method for encoding linear functions using $ L_n $ and inverse QFT enables accurate estimation of expected values for any discrete function, not just linear ones.
- The framework supports efficient computation of Lebesgue integrals and partial moments by mapping function values to hash-based weighted sums.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.