• Photonics Research
  • Vol. 11, Issue 10, 1703 (2023)
Hui Zhang1、2, Lingxiao Wan2, Sergi Ramos-Calderer3、4, Yuancheng Zhan2, Wai-Keong Mok5, Hong Cai6, Feng Gao7, Xianshu Luo7, Guo-Qiang Lo7, Leong Chuan Kwek2、5、8, José Ignacio Latorre3、4、5, and Ai Qun Liu1、2、*
Author Affiliations
  • 1Institute of Quantum Technologies (IQT), The Hong Kong Polytechnic University, Hong Kong, China
  • 2Quantum Science and Engineering Centre (QSec), Nanyang Technological University, Singapore, Singapore
  • 3Departament de Fisica Quantica i Astrofisica and Institut de Ciencies del Cosmos (ICCUB), Universitat de Barcelona, Barcelona, Spain
  • 4Quantum Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
  • 5Centre for Quantum Technologies, National University of Singapore, Singapore, Singapore
  • 6Institute of Microelectronics, A*STAR (Agency for Science, Technology and Research), Singapore, Singapore
  • 7Advanced Micro Foundry, Singapore, Singapore
  • 8National Institute of Education, Nanyang Technological University, Singapore, Singapore
  • show less
    DOI: 10.1364/PRJ.493865 Cite this Article Set citation alerts
    Hui Zhang, Lingxiao Wan, Sergi Ramos-Calderer, Yuancheng Zhan, Wai-Keong Mok, Hong Cai, Feng Gao, Xianshu Luo, Guo-Qiang Lo, Leong Chuan Kwek, José Ignacio Latorre, Ai Qun Liu. Efficient option pricing with a unary-based photonic computing chip and generative adversarial learning[J]. Photonics Research, 2023, 11(10): 1703 Copy Citation Text show less

    Abstract

    In the modern financial industry system, the structure of products has become more and more complex, and the bottleneck constraint of classical computing power has already restricted the development of the financial industry. Here, we present a photonic chip that implements the unary approach to European option pricing, in combination with the quantum amplitude estimation algorithm, to achieve quadratic speedup compared to classical Monte Carlo methods. The circuit consists of three modules: one loading the distribution of asset prices, one computing the expected payoff, and a third performing the quantum amplitude estimation algorithm to introduce speedups. In the distribution module, a generative adversarial network is embedded for efficient learning and loading of asset distributions, which precisely captures market trends. This work is a step forward in the development of specialized photonic processors for applications in finance, with the potential to improve the efficiency and quality of financial services.

    1. INTRODUCTION

    The pricing of financial derivatives is a prominent problem that requires extensive computational resources, as the stochastic nature of the underlying assets requires precise modeling. One of the typical financial derivatives is the option, which is a contract that allows the holder to buy or sell assets at a pre-established price (strike) at or before a specified date (maturity date). The payoff of an option relies heavily on the stochastic evolution of asset price. The traditional option pricing model, Black–Scholes–Merton (BSM) [1], usually oversimplifies market dynamics, which limits its practical application to real-life scenarios. As such, numerical methods such as the Monte Carlo method are typically employed for handling more realistic stochastic fluctuations. However, the Monte Carlo method requires extensive computation resources and is slow to predict complicated options. Reducing the computational resources required for models and speeding up option pricing could have significant implications for the financial industry.

    Recently, quantum algorithms have shown promise in facilitating computationally hard financial problems such as trading, portfolio optimization, and risk profiling [2,3], and specifically, quantum amplitude amplification can accelerate option pricing with quadratic speedups [410]. The unique advantages of quantum algorithms will make up for the shortcomings of classical algorithms to a certain extent, enabling massive high-speed data services in the financial industry. However, current experimental demonstrations using binary approaches and standard quantum circuit models on superconducting devices [11] require dense chip connections and high gate fidelity, making it difficult for practical applications in the near future without a universal quantum computer [12,13]. In addition, superconducting devices require bulky, energy-intensive, and expensive peripherals such as cooling systems, making industrial-scale applications have poor prospects.

    For specialized application tasks such as option pricing, there is no need to use universal quantum computers. Photonic circuits can provide fundamental functions that can be combined to implement specific algorithms [1420], which would be practical and efficient for user-cased application scenarios. Moreover, the reduced energy costs of photonic computing have been a driving force behind works on dedicated photonic chips for machine learning and algebra [16,2124]. Therefore, we demonstrate a unary (versus binary) approach in a photonic chip for option pricing. Compared to the binary approach, the unary approach [9] has a remarkably simplified structure and reduced depth of quantum circuits and is especially suitable for linear optical circuit realizations in photonic chips. The unary scheme also allows a post-selection strategy for error mitigation. Additionally, we demonstrate generative adversarial learning to upload the probability distribution implicitly given by data samples into the photonic chip. Generative adversarial learning has previously been demonstrated only in superconducting and optoelectronics devices [2530]. Compared with traditional Monte Carlo methods, our approach shows high accuracy and significant speedup. It provides a promising avenue for interdisciplinary research in quantum machine learning and financial problems, paving the way for the development of practical photonic processors for quantitative financial applications. It can greatly improve the efficiency and quality of financial services, which is of great significance to the rapid and steady development of the financial industry.

    2. CHIP DESIGN FOR UNARY OPTION PRICING

    In this work, we focus on European option pricing, and the expected payoff of options is given by C(ST,K)=K(STK)dST,where ST is the asset price at time T, and K is the strike price; see European option pricing model in Appendix A. Figure 1 shows the overall scheme of our photonic-chip-based unary approach. The photonic chip [Fig. 1(a)] consists of a generative adversarial network (GAN) and an option pricing part that includes payoff computation and amplitude estimation. In contrast to the classical Monte Carlo approach [Fig. 1(b)] that requires huge computing power to simulate future asset prices to obtain an accurate solution, our approach is expected to show a speedup in the convergence of the standard error of estimated payoff [Fig. 1(c)], which is proved experimentally later in this section results.

    Schematic of the unary approach to option pricing, compared to the classical Monte Carlo method. (a) Integrated photonic chip with the unary algorithm, consisting of a generator of the generative adversarial network (GAN), payoff calculation, and quantum amplitude estimation for acceleration. (b) Monte Carlo simulation on a classical computer, which first generates the future asset price paths based on random variables, and then calculates the payoff. The accuracy relies on extensive simulations of random walk asset paths. (c) Expected acceleration of the convergence of payoff errors, compared to classical Monte Carlo simulations. Shaded areas in the top inset indicate statistical uncertainty.

    Figure 1.Schematic of the unary approach to option pricing, compared to the classical Monte Carlo method. (a) Integrated photonic chip with the unary algorithm, consisting of a generator of the generative adversarial network (GAN), payoff calculation, and quantum amplitude estimation for acceleration. (b) Monte Carlo simulation on a classical computer, which first generates the future asset price paths based on random variables, and then calculates the payoff. The accuracy relies on extensive simulations of random walk asset paths. (c) Expected acceleration of the convergence of payoff errors, compared to classical Monte Carlo simulations. Shaded areas in the top inset indicate statistical uncertainty.

    The unary approach to option pricing encodes an asset price distribution into the unary basis of a quantum register, as shown in Fig. 2. A binning scheme is applied such that Monte Carlo paths that would belong to the same interval of asset prices end up in the same bin. Each bin is then mapped to an element of the unary basis, whose coefficient is the ratio of the number of Monte Carlo paths in that bin to the total number. The accuracy of unary encoding is bounded by the number of bins that can be stored in a quantum state, i.e., the usable dimension of the high-dimensional unary state. Based on the unary basis, Fig. 3(a) depicts the algorithmic model for unary option pricing, which consists of three modules: a distribution loading module D that loads the asset price distribution into a quantum state, a payoff calculation module P that computes the expected return, and a quantum amplitude estimation module Q to gain quadratic speedup over classical sampling to reach a target accuracy.

    Mapping of asset prices to unary basis. (a) Classical Monte Carlo paths partitioned into different unary bases. (b) Probability density function (PDF) according to the defined unary basis. (c) Payoff value calculated according to the PDF and asset prices.

    Figure 2.Mapping of asset prices to unary basis. (a) Classical Monte Carlo paths partitioned into different unary bases. (b) Probability density function (PDF) according to the defined unary basis. (c) Payoff value calculated according to the PDF and asset prices.

    Photonic chip design for the unary option pricing algorithm. (a) Algorithmic model of unary option pricing. The input state consists of an n-dimensional qudit and a two-dimensional ancilla. The following modules are contained: D, distribution loading; P, payoff calculation; Q, quantum operator for amplitude estimation. The amplification module Q is performed sequentially by Sψ→P†→D†→S0→D→P. The expected payoff is obtained by measuring the ancilla. (b) Optical circuit model by transforming the algorithmic model to linear optical operators. Each element of the unary basis is represented by two waveguides, extending the n-bin unary basis to 2n-dimensional Hilbert space. Relevant linear optical operators swp, Ry(θ), and XZX are listed with their waveguide structures. (c) Photonic chip design and architecture. The chip is designed by transforming the optical path model into waveguide structures and realizes the distribution loading, payoff calculation, and amplitude estimation sequentially. The distribution loading is trained as a GAN embedded in the machine learning module.

    Figure 3.Photonic chip design for the unary option pricing algorithm. (a) Algorithmic model of unary option pricing. The input state consists of an n-dimensional qudit and a two-dimensional ancilla. The following modules are contained: D, distribution loading; P, payoff calculation; Q, quantum operator for amplitude estimation. The amplification module Q is performed sequentially by SψPDS0DP. The expected payoff is obtained by measuring the ancilla. (b) Optical circuit model by transforming the algorithmic model to linear optical operators. Each element of the unary basis is represented by two waveguides, extending the n-bin unary basis to 2n-dimensional Hilbert space. Relevant linear optical operators swp, Ry(θ), and XZX are listed with their waveguide structures. (c) Photonic chip design and architecture. The chip is designed by transforming the optical path model into waveguide structures and realizes the distribution loading, payoff calculation, and amplitude estimation sequentially. The distribution loading is trained as a GAN embedded in the machine learning module.

    Figure 3(b) depicts the optical circuit model, whereby each module of the unary algorithm is mapped to a linear optical operator. We represent the high-dimensional state by path encoding a single photon using n optical waveguides. The superposition of a single photon traveling through different waveguides directly encodes the unary basis. This high-dimensional state can be written as |ψ=i=0n1pi|i, where pi represents the probability of observing a photon in the waveguide mode |i, and these probabilities conform to i=0n1pi=1. The payoff calculation requires an ancilla qubit to store the expected return for each asset price, expanding the Hilbert space of the algorithm to 2n. To avoid non-local controlled gates in the photonic chip implementation, we instead add an ancillary waveguide to each of the n unary waveguide modes to represent the effect of the ancilla qubit. Each element of the unary basis is now represented by two waveguides. This way, the controlled operations of the original algorithm are converted to linear transformations on the optical circuit. The architecture of the photonic processor with the detailed chip design is shown in Fig. 3(c), which replaces each linear optical operator with the corresponding waveguide structure. The entire chip is reconfigurable via wire bonds and integrated thermo-optic phase shifters; see the experimental setup in Appendix B.

    In the distribution loading module D, a single photon is incident into the chip from a waveguide in the middle of the circuit, which encodes the ancilla in its |0 state, e.g., for a three-asset case, the initial input state can be written as the tensor product of the middle unary qudit and the ancilla qubit as [0,1,0][1,0]=[0,0,1,0,0,0]. The distribution of asset prices is then uploaded to the different waveguides using a linear depth circuit. This distribution loading circuit spreads the superposition to the neighboring basis using swp operators: swp=(Ip1p1ppI)I,where p depends on the target distribution. The procedure is repeated until the edge of the circuit is reached. The distribution loading module can be reconfigured to obtain any target probability distribution in the unary representation. Precisely, given n assets, the depth of the circuit is always (n+1)/2, and the loading of any known probability distribution onto the unary basis depends on (n1) splitting parameters p. The generator of a GAN is embedded in this module. The GAN is employed to capture the probability distribution underlying given market data. The details are presented in the next section.

    The payoff calculation module P encodes the expected payoff as the probability of measuring the photon in the waveguides encoding the ancilla in state |1, using rotation operations between the two waveguides of each element of the unary basis. The rotations encode the expected return for each asset price in the distribution. This action, labeled P, can be written as P=(M0M1Mn1),Mi=(cosθisinθisinθicosθi)for a 2n-waveguide, n-bin example.

    A quantum amplitude estimation module Q is applied to achieve quantum speedups. Various amplitude estimation techniques have been presented that are friendly to NISQ devices [3133]. Here, we implement an amplitude estimation algorithm without quantum phase estimation in the photonic circuit, following the technique used in Ref. [9]. Increasing steps of amplitude amplification are applied to estimate the relevant amplitudes with up to a square root advantage oversampling from the original distribution. This amplification module Q is performed by applying the following operators. First, Sψ identifies the amplitudes that encode the expected payoff and reverses their signs. Explicitly, for the three-asset example at hand, such an operation is Sψ=diag(1,1,1,1,1,1), and is realized experimentally by applying a phase shift of π on the second waveguide of each element of the unary basis. Then, the original operations are reversed, that is, the inverse of the payoff calculator P and the distribution loading D are applied. An operator S0 follows, which reverses the sign of the initial state of the computation. Experimentally, it is applied by introducing a phase shift of π to the waveguide where the photon was introduced. The last step is to repeat the distribution loading D and the payoff calculator P modules. The amplitude amplification operator Q=P·D·S0·D·P·Sψ is repeated a different number of times, and the results are processed to estimate the expected payoff. This technique provides up to quadratic speedups over ordinary sampling in the number of calls to the D and P operators to reach the same confidence level; see theoretical derivations in Appendix C.

    3. GAN FOR DISTRIBUTION UPLOADING

    A GAN is implemented in the distribution loading module with on-chip training for real-time noise perception. The goal of the GAN is to obtain an intelligent generator at the chip parameter level that captures the probability distribution behind the given market data without simulating enormous random paths, accumulating data statistics, and then fitting them into the chip architecture. With the GAN, we can efficiently load the classical data, i.e., the probability distribution underlying market data, into quantum states and obtain more precise payoff calculations with the presented unary option pricing methods.

    GANs train a generator (G) to synthesize semantically meaningful data from standard signal distributions, as well as a discriminator (D) to distinguish real samples in the training dataset from fake ones produced by the generator [34], as depicted in Fig. 4(a). As its adversary, the generator aims at deceiving the discriminator by producing more realistic samples. Training GANs involve the search for a Nash equilibrium of a two-player game between a generative and a discriminative network, which can be formulated as minGmaxDExpreal(log(Dϕ(x)))+Ezpz(log(1Dϕ(Gθ(z)))),where the generative network Gθ takes noisy samples z from a normal or uniform distribution pz as input, and x comes from the real distribution preal. The discriminative network Dϕ tries to distinguish the generated (fake) sample Gθ(z) and real sample x by projecting their output to {0,1}. θ and ϕ are free parameters that construct the generator and discriminator. The training procedure is complete when the generator wins the adversarial game, that is, the discriminator cannot make a better decision than random guesses on the validity of a sample.

    GAN on the photonic chip for precise asset distribution uploading. (a) Algorithm of GAN, composed of a generator and a discriminator. (b) Generator implemented by a variational photonic circuit, which is trained on-chip in real time. The probability distributions accumulated on the waveguide paths are used as fake samples. Real samples are the training targets taken from market data in real applications. (c) Classical discriminator consisting of sequential convolutional layers and trained by a gradient descent algorithm. The discriminator aims to distinguish the source of the input sample, from the generator or a real distribution. The cost function is calculated from the discriminator output and used to train the discriminator itself and the generator. (d) The generator is trained by an evolutionary optimization procedure where populations (e.g., different configurations of the generator ansatz) are generated, evaluated, and iterated. The evaluation is accomplished using the scores granted by the discriminator. New generations are produced via the operators of selection, crossover, and mutation of current populations.

    Figure 4.GAN on the photonic chip for precise asset distribution uploading. (a) Algorithm of GAN, composed of a generator and a discriminator. (b) Generator implemented by a variational photonic circuit, which is trained on-chip in real time. The probability distributions accumulated on the waveguide paths are used as fake samples. Real samples are the training targets taken from market data in real applications. (c) Classical discriminator consisting of sequential convolutional layers and trained by a gradient descent algorithm. The discriminator aims to distinguish the source of the input sample, from the generator or a real distribution. The cost function is calculated from the discriminator output and used to train the discriminator itself and the generator. (d) The generator is trained by an evolutionary optimization procedure where populations (e.g., different configurations of the generator ansatz) are generated, evaluated, and iterated. The evaluation is accomplished using the scores granted by the discriminator. New generations are produced via the operators of selection, crossover, and mutation of current populations.

    We develop a hybrid GAN implementation that consists of a generator network in the photonic chip, a classical discriminator network, and a control system that communicates between the classical computer and photonic chip, all depicted in Figs. 4(b)–4(d). The generator is parameterized by the angles on the phase shifters that are reconfigurable through the thermo-optic effect, induced by applying tiny electrical power to the integrated heaters. Instead of a noise distribution as input, we utilize the uncertainty of photons appearing at different waveguide modes to achieve the equivalent randomness for the generator. The fake samples are the probability distribution of the photons at different waveguide modes. The real samples are drawn from the desired probability distribution, a log-normal or normal distribution for the examples presented in Fig. 5. Fake and real samples sequentially enter the classical discriminator to achieve the classification results. The discriminator is a classical neural network implemented with TensorFlow. We then explicitly discuss the training of the GAN with data samples drawn from the log-normal distribution and the normal distribution.

    Experimental training performance of the GAN under Wasserstein distance. (a), (c) Comparison between the probability distributions obtained experimentally from the generator (solid line with data points) and the target distribution (histogram). (b), (d) Evolution of the ℓ2 norm between the fake and real samples with increasing training iterations. (a), (b) Log-normal distribution; (c), (d) normal distribution.

    Figure 5.Experimental training performance of the GAN under Wasserstein distance. (a), (c) Comparison between the probability distributions obtained experimentally from the generator (solid line with data points) and the target distribution (histogram). (b), (d) Evolution of the 2 norm between the fake and real samples with increasing training iterations. (a), (b) Log-normal distribution; (c), (d) normal distribution.

    The training process of the GAN in a photonic chip introduces two challenges, the difficulty of obtaining gradients due to the stochastic nature of measurements, and the phenomenon that the discriminator easily overpowers the generator. To circumvent these problems, we propose a hybrid training strategy, where the generator is optimized under a gradient-free evolutionary algorithm, while the classical discriminator uses a gradient descent optimizer. Additionally, the Wasserstein distance [35,36] is used to train the GAN, which changes the dynamic between the generator and the discriminator. In this new GAN scheme, the discriminator acts as a critic, instead of classifying. It aims to give a high score to real instances over fake ones, effectively alleviating the problem of unstable GAN training.

    4. RESULTS AND DISCUSSION

    A. GAN Results

    Our chip can accommodate the entire option pricing process of distribution loading, payoff calculation, and amplitude estimation for three option assets. However, training three bins is too trivial to demonstrate the ability to implement GANs on a photonic chip. Here, to demonstrate the GAN, we employ a chip that supports up to eight bins to demonstrate the generation of probability distribution. Figure 5(a) shows the probability distribution of the generator output compared to the real log-normal distribution. Figure 5(b) shows the convergence of the 2 norm between the fake and real samples, of 100 training iterations. For generator output g and real distribution x, the 2 norm is defined as 2=i=1m(xigi)2.The results for a target normal distribution are shown in Figs. 5(c) and 5(d). For both examples of log-normal and normal distributions, the final 2 norm between the generator output and the real distribution stabilizes at 18  dB.

    By training this generative model directly on the photonic chip, we bypass the need to solve the BSM equations while capturing the nuances that the simplified method overlooks. Concurrently, it incorporates environmental elements that are hard to model, such as cross talk and chip imperfections into the GAN training. Another feature of using GANs for the amplitude distribution step is that we can tailor the variational ansatz to construct short-depth circuits for a given degree of accuracy, even in a more general case with multiple photons.

    B. Unary Option Pricing Results

    As a proof of principle, the fabricated photonic chip supports an option pricing problem with three asset values, whose schematic diagram is shown in Fig. 6(a). The chip has six waveguide inputs: each pair represents one element of the unary basis and the ancilla qubit state. The chip is divided into distribution loading, payoff calculation, and then m runs of amplitude amplification. To stay within the depth constraints of this proof of concept, the circuit’s unitary matrix is multiplied and uploaded into the photonic chip at a constant depth. The single-photon measurement is performed at the waveguide modes that represent ancilla state |1 for asset prices larger than the strike value. The comparison between the theoretical payoff and estimation achieved experimentally is shown in Fig. 6(b), with increasing iterations of amplitude estimation. The performance of the amplitude estimation is shown in Figs. 6(c) and 6(d). In Fig. 6(c), the dotted line represents the theoretical payoff expectation, the solid line with data points represents the experimental results, and the shaded area represents the standard deviation (STD) of 50 measurements performed in each step of amplitude estimation. The progression of m from 0 to 50 (m=0 being a classical sampling of payoff calculation) demonstrates the convergence of the STD. Similarly, in Fig. 6(d), we visualize the convergence of the payoff error with more amplitude estimation runs. The amplitude estimation improves the accuracy of the expected payoff for a certain number of circuit runs.

    Experimental results of option pricing with three asset values. (a) Illustration of the optical chip with payoff calculation and amplitude estimation module. Operator Q is repeated up to m (m≤50) times. The payoff is measured on waveguides that encode the ancilla in state |1⟩ when the asset price is larger than the pre-defined strike value. (b) Comparison between theoretical expectations and experimental results of the payoff, represented in angles. The raw angles (2m+1)θ are shifted back to the original angles θ, and the differences from theoretical expectations are recorded as errors. (c) Standard deviation (STD) of the expected payoff with increasing iterations of the amplitude estimation module. The STD converges from the initial ∼0.2 to less than 0.004. Iterations from 20 to 50 are zoomed in. (d) Error in payoff estimation between theoretical and experimental results, with increasing iterations of amplitude estimation. It shows a speedup in convergence compared to the Monte Carlo method.

    Figure 6.Experimental results of option pricing with three asset values. (a) Illustration of the optical chip with payoff calculation and amplitude estimation module. Operator Q is repeated up to m (m50) times. The payoff is measured on waveguides that encode the ancilla in state |1 when the asset price is larger than the pre-defined strike value. (b) Comparison between theoretical expectations and experimental results of the payoff, represented in angles. The raw angles (2m+1)θ are shifted back to the original angles θ, and the differences from theoretical expectations are recorded as errors. (c) Standard deviation (STD) of the expected payoff with increasing iterations of the amplitude estimation module. The STD converges from the initial 0.2 to less than 0.004. Iterations from 20 to 50 are zoomed in. (d) Error in payoff estimation between theoretical and experimental results, with increasing iterations of amplitude estimation. It shows a speedup in convergence compared to the Monte Carlo method.

    The structure of the unary algorithm allows a simple but efficient design of photonic chips, especially when loading probability distributions into quantum registers since only local interactions between neighboring waveguides are required. This, however, is inaccessible for the binary alternative, where high connectivity is required to offset the exponential Hilbert space available; see the unary and binary comparison in Appendix D. The optical circuit that implements the unary approach requires a linear number of waveguides scaling with the required precision, which coincides with the remarkable scalability of photonic chips. Instead, avoiding the use of controlled operations via ancilla waveguides bypasses one of the main bottlenecks of photonic chips in quantum computing: the obstacle of realizing photon interactions.

    Speedup is achieved in our work much akin to proposals for quantum search without entanglement [37,38], whereby polynomial speedup of unstructured search is achieved with a single photon at the cost of exponential resources. In particular, isomorphisms exist between a system of n qubits and a qudit residing in a 2n Hilbert space (systems presented in this thought experiment and our implementation) [39]; thereby the unary implementation on a photonic chip displays entanglement in the path encoding of the single photon. Coherent light can achieve a similar effect with a high sampling rate, which is advantageous in near-term use case scenarios, with some trade-offs for the random behavior of single photons in the generator part of the GAN.

    The presented avenue to achieve speedup in option pricing is scalable in the photonic chip. It transforms the unary algorithm’s need for increasing qubits into a need for waveguide paths, which are highly scalable in photonic chips. For further scalability, in the presented experiment, the photon detectors placed in ancilla waveguides could be combined into a single one, as only the counts of photons in any ancilla qubit are needed, hence significantly reducing the resources needed to scale this approach to meaningful problems. The energy efficiency of photonic chips also promises a relevant advantage beyond a complexity separation between quantum and classical algorithms. Given an energy budget instead of a shot budget, the photonic implementation of the unary approach to option pricing can yield a significant advantage in the number of operations performed.

    5. CONCLUSION

    This work is the first demonstration of photonic chips for financial applications. As a proof of concept, we implement the unary option pricing algorithm in a photonic chip for European options, which includes the generation of amplitude distribution of the asset value, evaluation of expected return, and amplitude estimation. We prove the high accuracy in calculating the payoff function, as well as the effectiveness of amplitude estimation in reducing the number of evaluations to reach the same degree of accuracy when compared to classical sampling. The unary representation remarkably simplifies the structure and reduces the depth of quantum circuits in the linear optical circuit implementation. Such photonic devices could eventually be an eco-friendly alternative to electronic circuits. Furthermore, we demonstrate an on-chip training of a GAN that successfully captures important market dynamics in real-life scenarios, bypassing the simplified assumptions in the BSM model that limit its accuracy, as well as the computational burden in solving differential equations. The photonic chip could be potentially employed for other options pricing, paving the way for developing dedicated processors in finance applications.

    APPENDIX A: EUROPEAN OPTION PRICING MODEL

    The Black–Scholes model is a typical economic model used to calculate the evolution of asset prices in financial markets, known as the European option pricing problem. In this model, the evolution of option price ST at time T is decided by two market properties: interest rate r and volatility σ, which are expressed by the stochastic differential equation dST=STrdT+STσdWT,where WT describes a Brownian process, which is a continuous stochastic evolution starting at W0=0 and consists of independent Gaussian increments. Specifically, let N(μ,σs) be a normal distribution with mean μ and STD σs; then the increment of two steps of the Brownian processes is WTWSN(0,TS), for T>S. The stochastic differential equation can be approximately resolved to first order, and the solution is ST=S0e(rσ22)TeσWTeN((rσ22)T,σT),which is a log-normal distribution. The process of solving the stochastic differential equation is valid for the simplified European option model, while for more practical cases, an analytical solution does not exist, and even numerical simulation is costly. To get the expected return, a payoff calculation block is integrated over the resulting probability distribution. The payoff function is given by f(ST,K)=max(0,STK),producing the expected payoff C(ST,K)=K(STK)dST,where K is the strike.

    APPENDIX B: EXPERIMENTAL SETUP AND SINGLE-PHOTON GENERATION

    The entire packaged chip is shown in Fig. 7. Each phase shifter is independently controlled by an electronic current driver with 1-kHz frequency and 12-bit resolution. Output photons are filtered via wavelength division multiplexing (WDM) to remove the residual photons, and then detected by superconducting nanowire single-photon detectors (SNSPDs) (PhotonSpot, 100 Hz dark counts, 85% efficiency). Polarization controllers are placed before the SNSPDs as the detectors are polarization sensitive. A time tagger (Swabian Instrument) is used to count the single-photon events, which can support more than 40 million events per second. A temperature controller is used to stabilize the chip temperature and reduce thermal fluctuations caused by possible cross talk.

    Fabricated quantum photonic chip.

    Figure 7.Fabricated quantum photonic chip.

    A degenerated photon pair is used in our experiment. The pump laser is generated from the Ultrafast Optical Clocks device (PriTel) with a repetition rate of 500 MHz, central wavelength of 1550.116 nm, and bandwidth of 1.9 nm. A dual pump scheme is employed to generate pairs of identical photons on chip with a degenerated spontaneous four-wave mixing (SFWM) process. On the chip, the desired state |ψ=|11 is generated out of the two-photon N00N state |ψ=12(|20+|02), by configuring the phase value θ=π/2 when interfering the two photons.

    APPENDIX C: THEORY OF UNARY OPTION PRICING

    By solving the aforementioned BSM model, the probability density function of the option price can be described by a log-normal distribution. We map this continuous price distribution into n discrete values, which are the amplitudes of n orthogonal quantum state basis, by using a probability loading operator D acting on an initial state |ψini as D|ψini=i=0n1pi|ψin,where each state |ψi represents a discrete option price value Si, and pi is the corresponding probability. These quantum state bases are orthogonal so that ψi|ψj=δij. The payoff is obtained by accumulating the asset value under its corresponding probability. The payoff of the European option in this discrete scenario can be simplified as C(ST,K)=0n1pi·f(Si,K)=Si>Kn1pi·(SiK),where K is the strike price. The rotation angles after being normalized by the maximum asset price Smax are given by θi=max(0,arcsin(SiKSmaxK)).This payoff calculation can be mapped to the quantum model by introducing an ancilla qubit into the original quantum state followed by a controlled rotation gate CR defined as CR=i=0n1|ψiψi|Ry(2θi).

    Then, the expected payoff of the option price is related to the amplitude of the ancilla qubit in the form of |ψ=CR·i=0n1pi|ψi|0=i=0n1picosθi|ψi|0+pisinθi|ψi|1.By measuring the ancilla qubit under basis |1, we can achieve the result as |1|ψ|2=i=0n1pi·sin2θi=C(ST,K)SmaxK.Thus, the payoff of the option price can be directly read out from the measurement results of the ancilla qubit under basis |1. Then, we explain how the amplitude estimation works. The payoff calculation [Eq. (C5)] can be simplified as CR·D·|ψini|0=cosα|ψa|0+sinα|ψb|1,where α is the normalized parameter, and |ψa and |ψb are the normalized states |ψa=i=1n1picosθi|ψi,|ψb=i=1n1pisinθi|ψi.The ancilla qubit is functioning as an indicator to identify the useful state. The amplitude amplification step begins by applying an oracle operator Sψ on state ψ with the form Sψ=I2i=0n1|ψiψi||00|to produce a sign change on the ancilla qubit state |0 that we want to perform the amplitude estimation. Then, we add an inversion operation of the previous payoff calculation CR and distribution loading operator D followed by another sign flip operation S0 on the initial state as S0=I2|ψiniψini||00|,and the last step is to apply D and CR again so that the amplitude estimation operator Q can be written as Q=CR·D·S0·D·CR·Sψ.By repeating the Q operator m times, the full amplitude estimation can be represented as Qm·CR·D·|ψini|0=cos(2m+1)α|ψa|0+sin(2m+1)α|ψb|1.

    Therefore, the measurement of the ancilla qubit under basis |1 after repeated amplitude estimation would yield the results of sin2(2m+1)α for us to infer the payoff of the option price with improved accuracy. The amplitude estimation scheme we use here is an iterative approach [9]. This procedure is based on the theory of confidence intervals for binomial distributions [40] and uses samples of increasing amplitude amplification [4] steps to better estimate the value of the target amplitude. The quantum amplitude estimation algorithm achieves quadratic speedups when compared to classical Monte Carlo methods of option pricing: O(1m)O(1m),where m is the number of quantum samples used. The comparison between quantum and classical scaling factors is depicted in Fig. 8, exhibiting a trend that aligns well with our experimental results shown in Fig. 6(d).

    Simulation of the scaling of quantum AE and classical MC.

    Figure 8.Simulation of the scaling of quantum AE and classical MC.

    APPENDIX D: UNARY AND BINARY COMPARISON

    The utilization of a unary approach [9], instead of the commonly adopted binary approach [6,11], distinguishes this work from other quantum approaches. The key advantage of the unary method is its ability to implement all the necessary quantum operations within the option pricing algorithm using a linear optical circuit. In contrast, the binary approach relies on two-qubit controlled operations, which cannot be deterministically achieved in a photonic chip. The comparison between unary and binary approaches is summarized in Table 1. The unary method has a simple chip architecture, no need for phase estimation, scalable gate count, accurate distributed loading, and robustness in payoff computation.

    Unary and Binary Comparison

    AspectUnary ApproachBinary Approach
    RepresentationIntuitive: single symbol repeated multiple timesCompact: base-2 system with 0 and 1 symbols
    Chip architectureSimple: first-nearest neighbor connectivityComplex: full connectivity
    Amplitude estimationWithout phase estimation: feasible in linear optical circuitsPhase estimation required: not feasible in linear optical circuits
    Gate countLinear (advantageous for near-term devices with <100 qubits)Logarithmic, requiring Toffoli gate
    Distribution loading error due to single-qubit errorKL divergence of 103, one order of magnitude lowerKL divergence of 102
    Payoff deviation due to single-qubit error25%, 10% more robust35%

    References

    [1] F. Black, M. Scholes. The pricing of options and corporate liabilities. Foundations of CCA and Equity Valuation, 3-21(2019).

    [2] R. Orus, S. Mugel, E. Lizaso. Quantum computing for finance: overview and prospects. Rev. Phys., 4, 100028(2019).

    [3] D. Herman, C. Googin, X. Liu, A. Galda, I. Safro, Y. Sun, M. Pistoia, Y. Alexeev. A survey of quantum computing for finance. arXiv(2022).

    [4] G. Brassard, P. Hoyer, M. Mosca, A. Tapp. Quantum amplitude amplification and estimation. arXiv(2002).

    [5] A. Montanaro. Quantum speedup of Monte Carlo methods. Proc. R. Soc. A, 471, 20150301(2015).

    [6] P. Rebentrost, B. Gupt, T. R. Bromley. Quantum computational finance: Monte Carlo pricing of financial derivatives. Phys. Rev. A, 98, 022321(2018).

    [7] S. Woerner, D. J. Egger. Quantum risk analysis. npj Quantum Inf., 5, 15(2019).

    [8] S. Focardi, F. J. Fabozzi, D. Mazza. Quantum option pricing and quantum finance. J. Deriv., 28, 79-98(2020).

    [9] S. Ramos-Calderer, A. Pérez-Salinas, D. Garca-Martn, C. Bravo-Prieto, J. Cortada, J. Planaguma, J. I. Latorre. Quantum unary approach to option pricing. Phys. Rev. A, 103, 032414(2021).

    [10] F. Bova, A. Goldfarb, R. G. Melko. Commercial applications of quantum computing. EPJ Quantum Technol., 8, 2(2021).

    [11] N. Stamatopoulos, D. J. Egger, Y. Sun, C. Zoufal, R. Iten, N. Shen, S. Woerner. Option pricing using quantum computers. Quantum, 4, 291(2020).

    [12] J. Preskill. Quantum computing in the NISQ era and beyond. Quantum, 2, 79(2018).

    [13] K. Bharti, A. Cervera-Lierta, T. H. Kyaw, T. Haug, S. Alperin-Lea, A. Anand, M. Degroote, H. Heimonen, J. S. Kottmann, T. Menke, W.-K. Mok, S. Sim, L.-C. Kwek, A. Aspuru-Guzik. Noisy intermediate-scale quantum algorithms. Rev. Mod. Phys., 94, 015004(2022).

    [14] H. Zhang, L. Wan, T. Haug, W.-K. Mok, S. Paesani, Y. Shi, H. Cai, L. K. Chin, M. F. Karim, L. Xiao, X. Luo, F. Gao, B. Dong, S. Assad, M. S. Kim, A. Laing, L. C. Kwek, A. Q. Liu. Resource-efficient high-dimensional subspace teleportation with a quantum autoencoder. Sci. Adv., 8, eabn9783(2022).

    [15] T. Wang, M. M. Sohoni, L. G. Wright, M. M. Stein, S.-Y. Ma, T. Onodera, M. G. Anderson, P. L. McMahon. Image sensing with multilayer nonlinear optical neural networks. Nat. Photonics, 17, 408-415(2023).

    [16] T. Fu, Y. Zang, Y. Huang, Z. Du, H. Huang, C. Hu, M. Chen, S. Yang, H. Chen. Photonic machine learning with on-chip diffractive optics. Nat. Commun., 14, 70(2023).

    [17] S. Xu, J. Wang, H. Shu, Z. Zhang, S. Yi, B. Bai, X. Wang, J. Liu, W. Zou. Optical coherent dot-product chip for sophisticated deep learning regression. Light Sci. Appl., 10, 221(2021).

    [18] K. Liao, Y. Chen, Z. Yu, X. Hu, X. Wang, C. Lu, H. Lin, Q. Du, J. Hu, Q. Gong. All-optical computing based on convolutional neural networks. Opto-Electron. Adv., 4, 200060(2021).

    [19] H. Zhou, J. Dong, J. Cheng, W. Dong, C. Huang, Y. Shen, Q. Zhang, M. Gu, C. Qian, H. Chen, Z. Ruan, X. Zhang. Photonic matrix multiplication lights up photonic accelerator and beyond. Light Sci. Appl., 11, 30(2022).

    [20] J. Romero, A. Aspuru-Guzik. Variational quantum generators: generative adversarial quantum machine learning for continuous distributions. Adv. Quantum Technol., 4, 2000003(2021).

    [21] H. Zhang, M. Gu, X. Jiang, J. Thompson, H. Cai, S. Paesani, R. Santagati, A. Laing, Y. Zhang, M. Yung, Y. Z. Shi, F. K. Muhammad, G. Q. Lo, X. S. Luo, B. Dong, D. L. Kwong, L. C. Kwek, A. Q. Liu. An optical neural chip for implementing complex-valued neural network. Nat. Commun., 12, 457(2021).

    [22] Q. Zhang, H. Yu, M. Barbiero, B. Wang, M. Gu. Artificial neural networks enabled by nanophotonics. Light Sci. Appl., 8, 42(2019).

    [23] J. Spall, X. Guo, T. D. Barrett, A. I. Lvovsky. Fully reconfigurable coherent optical vector–matrix multiplication. Opt. Lett., 45, 5752-5755(2020).

    [24] S. Yan, J. Dong. Metasurface for highly-efficient on-chip classical and quantum all-optical modulation. Light Sci. Appl., 11, 238(2022).

    [25] C. Zoufal, A. Lucchi, S. Woerner. Quantum generative adversarial networks for learning and loading random distributions. npj Quantum Inf., 5, 103(2019).

    [26] L. Hu, S.-H. Wu, W. Cai, Y. Ma, X. Mu, Y. Xu, H. Wang, Y. Song, D.-L. Deng, C.-L. Zou, L. Sun. Quantum generative adversarial learning in a superconducting quantum circuit. Sci. Adv., 5, eaav2761(2019).

    [27] H.-L. Huang, Y. Du, M. Gong, Y. Zhao, Y. Wu, C. Wang, S. Li, F. Liang, J. Lin, Y. Xu, R. Yang, T. Liu, M.-H. Hsieh, H. Deng, H. Rong, C.-Z. Peng, C.-Y. Lu, Y.-A. Chen, D. Tao, X. Zhu, J.-W. Pan. Experimental quantum generative adversarial networks for image generation. Phys. Rev. Appl., 16, 024051(2021).

    [28] K. Huang, Z.-A. Wang, C. Song, K. Xu, H. Li, Z. Wang, Q. Guo, Z. Song, Z.-B. Liu, D. Zheng, H. Wang, J.-G. Tian, H. Fan. Quantum generative adversarial networks with multiple superconducting qubits. npj Quantum Inf., 7, 165(2021).

    [29] C. Wu, X. Yang, H. Yu, R. Peng, I. Takeuchi, Y. Chen, M. Li. Harnessing optoelectronic noises in a photonic generative network. Sci. Adv., 8, eabm2956(2022).

    [30] S. Lloyd, C. Weedbrook. Quantum generative adversarial learning. Phys. Rev. Lett., 121, 040502(2018).

    [31] Y. Suzuki, S. Uno, R. Raymond, T. Tanaka, T. Onodera, N. Yamamoto. Amplitude estimation without phase estimation. Quantum Inf. Process., 19, 75(2020).

    [32] S. Aaronson, P. Rall. Quantum approximate counting, simplified. Symposium on Simplicity in Algorithms, 24-32(2020).

    [33] D. Grinko, J. Gacon, C. Zoufal, S. Woerner. Iterative quantum amplitude estimation. npj Quantum Inf., 7, 52(2021).

    [34] I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, Y. Bengio. Generative adversarial networks. Advances in Neural Information Processing Systems, 27, 2672-2680(2014).

    [35] M. Arjovsky, S. Chintala, L. Bottou. Wasserstein generative adversarial networks. International Conference on Machine Learning, 214-223(2017).

    [36] S. Chakrabarti, H. Yiming, T. Li, S. Feizi, X. Wu. Quantum Wasserstein generative adversarial networks. arXiv(2019).

    [37] S. Lloyd. Quantum search without entanglement. Phys. Rev. A, 61, 010301(1999).

    [38] D. A. Meyer. Sophisticated quantum search without entanglement. Phys. Rev. Lett., 85, 2014-2017(2000).

    [39] A. Ekert, R. Jozsa. Quantum algorithms: entanglement–enhanced information processing. Philos. Trans. R. Soc., 356, 1769-1782(1998).

    [40] S. Wallis. Binomial confidence intervals and contingency tests: mathematical fundamentals and the evaluation of alternative methods. J. Quant. Linguist., 20, 178-208(2013).

    Hui Zhang, Lingxiao Wan, Sergi Ramos-Calderer, Yuancheng Zhan, Wai-Keong Mok, Hong Cai, Feng Gao, Xianshu Luo, Guo-Qiang Lo, Leong Chuan Kwek, José Ignacio Latorre, Ai Qun Liu. Efficient option pricing with a unary-based photonic computing chip and generative adversarial learning[J]. Photonics Research, 2023, 11(10): 1703
    Download Citation