Abstract
Classical oscillators have long been used to model financial time series, but suffer from the drawback that the underlying system does not behave like a mechanical spring: there are no regular oscillations, and price is not a well-defined mechanical quantity but always has a degree of uncertainty. In recent years a number of authors have attempted to address these problems by basing their models on quantum harmonic oscillators, which always have a non-zero volatility, however the role of other features that are characteristic of quantum systems, such as discrete energy levels, has not been clear. This paper develops a quantum model in which the energy level corresponds to an integer number of transactions. The model is derived by quantizing entropic forces which represent the intentions of buyers and sellers to transact as a function of price. It is shown that the model captures the non-Gaussian nature of financial statistics, and correctly predicts empirical phenomena including the square-root law of price impact, along with its associated variance.
1. Introduction
Just as we measure gravity by its effects in the motion of a pendulum, so we may estimate the equality or inequality of feelings by the decisions of the human mind. The will is our pendulum, and its oscillations are minutely registered in the price lists of the markets. William Stanley Jevons (1905)
Since at least the time of Adam Smith, mainstream economists have emphasised the notion that markets drive prices to an equilibrium value which refect intrinsic value. And yet one of the most persistent features of the economy is that prices are unstable, as shown by the phenomenon of financial booms and busts.
One approach to modelling such events, is to assume that prices are subject to external or internal perturbations, but are returned to equilibrium by the forces of supply and demand. William Stanley Jevons (1909) for example argued that financial crises were driven by variations in sunspot activity, which affected global temperatures and therefore the price of wheat. Jevons’ contemporary, the French economist Clement Juglar, independently found a boom/bust cycle in investment of 9–25 years, and identified four phases: prosperity, crisis, liquidation and recession (Juglar, 1862). Other such cycles identified by economists included the Kitchin cycle for inventory of 40 months (Kitchin, 1923); the Kuznets infrastructure cycle of 15–25 years (Kuznets, 1930); and the Kondratiev technology wave of 45–60 years (Kondratiev, 1925). In his 1939 book
The idea that the economy has regular cycles assumes the existence of a restoring force (Smith’s invisible hand) that tends to pull prices back towards a central equilibrium. The fact that oscillations are not perfectly regular can be accomodated by assuming that perturbations have a random quality, and by including a degree of damping so that oscillations do not continue indefinitely. The Norwegian economist Ragnar Frisch (who also coined the term econometrics) was jointly awarded the first Nobel Memorial Prize in economics for his work on the dynamics of damped oscillator models (Frisch, 1933, 1936).
Oscillator models fell out of favour during the post-war era, and were inconsistent with the efficient market hypothesis (Fama, 1965). This assumed that prices are restored to equilibrium immediately, and viewed price changes as following a random walk with perturbations caused by external news. It therefore made no sense to model markets in terms of classical springs, unless perhaps the springs were infinitely stiff; so those perceived market oscillations were all in the imagination. The random walk picture was key to the Black and Scholes (1973) option-pricing algorithm, where it was assumed that asset prices fluctuate in a random fashion with a certain known volatility.
While versions of the random walk picture continue to dominate the field of quantitative finance, it has long been known that market statistics do not perfectly follow the Gaussian distribution predicted by the theory. Another drawback is that it assumes that price at any time is a well-defined quantity, while in fact the actual price is always indeterminate except at the exact time of a transaction. If an asset hasn’t traded for a long time, then its price is uncertain, especially if market conditions have changed (Sarkassian, 2020).
Motivated by these considerations, a number of authors have investigated the use of quantum harmonic oscillators. As discussed further below, a quantum harmonic oscillator is the quantum version of a classical oscillator or spring system, and can be obtained by quantizing the equation for a linear restoring force. The resulting wave function has a ground state which is a normal distribution, along with higher-order modes with more complex distributions.
Perhaps the first paper to take this approach was Ye and Huang (2008), which assumed that the quantum harmonic oscillator was in its ground state most of the time, but had an additional oscillatory term so that the expected price swung between highs and lows, plus an attenuation term for damping. Meng, Zhang, Xu and Guo (2015) used a version of the model which included a boundary condition on the wave function, while Meng, Zhang, and Guo (2016) extended the approach to a stock index. Ahn et al. (2017) derived a model which included additional damping terms, while Gao and Chen (2017) and Lee (2021) used quantum anharmonic oscillators to explore the dynamics introduced by different actors such as momentum and fundamental traders.
In all these studies, it was found that the quantum model could recreate the basic properties of financial statistics, which perhaps is not surprising since they contained enough tuneable parameters to fit the data. However questions remained about whether the quantum approach was appropriate in the first place. If markets do not behave like classical oscillators, then they do not on the surface always seem to resemble quantum oscillators either: for example, what does it mean to say that the market has discrete energy levels? And more generally, what is the justification for adopting a quantum approach?
In this paper, we consider a particular quantum model, based on a previously published model of supply and demand, in which the propensity of agents to transact is viewed as being the product of entropic forces. Switching to a quantum framework yields a quantum oscillator describing a probabilistic wave function. The energy level is interpreted as a number of representative transactions over a time step. The model therefore integrates the dynamical view of markets as having oscillatory properties, with the discrete probabilistic picture common in finance. The use of the model is justified by its ability to explain and predict a variety of financial phenomena, including price impact and the relationship between price change and volatility.
The outline for the rest of the paper is as follows. Section 2 develops a quantum model to be applied to stock markets. Section 3 explores the connection between uncertainty and market spread. Section 4 shows how the model relates the concepts of volatility and price impact, and draws on previously published work to compare the model predictions with empirical results. Section 5 discusses the use of quantum models in finance, and summarises the results.
2. The Quantum Spring
Consider first the case of a single buyer and seller, who are negotiating the price of a single unit of stock. As discussed in (Orrell, 2020) we can model the probability of a transaction occuring at a particular price, where price
This model, which is based on classical probability, is similar to one that was developed by Kondratenko (2015) and validated against stock market data (Kondratenko, 2021). However the classical approach has a number of limitations. One is that it treats the price as being only subject to random noise, as opposed to being the product of a fundamentally inderministic process which is measured through transactions. In fact the model doesn’t say anything about transactions at all, other than giving a probability that one might occur. The standard deviation is assumed to be constant, while we know that the volatility of financial data changes with time. Also, it is based on classical probability so is not well-suited for handling the interplay between complex dynamics and discrete exchanges, along with effects such as entanglement and interference, which characterise the financial system and social interactions in general.
We therefore make the modelling choice to switch to a quantum framework, and model the propensity as the product of a complex-valued wave function. A first step is to note that the propensity curve can be viewed as being the product of linear entropic forces (Sokolov, 2010), which act as a restoring force on perturbations to the price (Orrell, 2020). The entropic force of the buyer and that of the seller pull in opposite directions, and the net force acts on price in a manner similar to the restoring force of a mechanical spring. The energy associated with these forces is related to information, so a distribution with a narrower spread (more information) will have a higher energy than one which is more dispersed.
The next step is to quantize the entropic force, following the rules of quantum probability which preserve probability for a dynamic system. The result is a quantum harmonic oscillator whose ground state matches the joint propensity curve (Orrell, 2020). The corresponding wave function has a complex component, and rotates around the real axis with a frequency
The result of this process is a quantum oscillator model, derived from a general model of transactions, which represents a single potential transaction between a representative buyer and a seller for one unit of stock over a time step of length
As mentioned earlier, a key difference between a classical oscillator and a quantum oscillator is that the latter has discrete energy levels, with a base energy
3. Uncertainty and Market Spread
A distinguishing feature of stock markets is that a stock never has a single price; instead there is a range of ask prices from sellers, and bid prices from buyers (Sarkassian, 2020). The spread
If we set
The energy state number
The expected number of transactions
The volatility of a quantum oscillator in energy state
If the average energy level is set to the default value
The choice of ground state volatility will depend on the time step being used. Suppose for example that a commonly-traded stock has a relative spread of
The oscillator with these parameters would effectively represent the entire market, since it models all potential transactions. On the other hand if we use a time period of one day, then the oscillator would represent only a proportion of potential transactions (since the corresponding rate of actual transactions should now be slower). The volatility is then scaled accordingly, so in this case
Since we are setting
The top panels of Figure 1 compare the resulting price change distribution with historical index data for intervals of 1, 2, 4 and 8 weeks, where the energy level (so volatility Top panels show density plots of log price changes, normalised by the square-root of time in years, for the S&P 500 (left) and Dow Jones Industrial Average (right) over the years 1992–2021 (source Yahoo Finance). The solid lines, from darkest to lightest shades of grey, are for periods 
4. Volatility and Price Impact
The previous section showed that the dynamic nature of the oscillator model allows it to capture basic market phenomena such as the relationship between spread and uncertainty, and the fat-tailed distribution of price changes. We now relate this to some previously published empirical studies, in order to explore how the model responds to specific perturbations caused by market imbalance.
As seen in Section 2, there is a relation in the quantum model between displacement of the oscillator by an amount
To see this, we define the market imbalance as
In the case of a large trade, if the excess size of the trade over a period
The trade will therefore increase the oscillator frequency by an amount
On the other hand, if we use a displacement operator to shift a quantum harmonic oscillator of ground energy
Using equation (1) and scaling for time gives
The term
The variance of the impact measured over a model time step is given by the equation
If we wish to compute the effect on variance of a large order
Scaling to one day, it follows that the displacement-dependent volatility satisfies
This equation describes a smile-shaped curve, similar to the volatility smile seen with implied volatility in options trading. (Note that if endogenous growth occurs under balanced conditions at a rate
The second term
In the classical view, volatility is assumed to scale inversely with time (see for example Pohl et al., 2017); and according to (Lillo, 2023, p. 122), “the variance of impact depends linearly on Comparison of classical and quantum models of price impact. Left panel shows variance plotted against the ratio of order size to daily volume 
5. Imaginary Oscillations
The quantum model therefore captures a range of phenomena that characterise stock markets. One reason for preferring the quantum approach over classical alternatives is that it provides a simple model where there is no need for extra dynamical terms or made-up parameters. Another, though, is that it provides a rich way of thinking about the financial system in terms of physical analogies with things of which we have direct experience such as force, mass and energy (as opposed to things we can’t see like subatomic particles). The effect of market impact for example can be understood more easily if we think of a quantum spring that is being perturbed by an input of energy. Jevons (1905) wrote that “The will is our pendulum, and its oscillations are minutely registered in the price lists of the markets” but instead of mechanical oscillations that bounce the price from side to side, the oscillations in the quantum model are in a sense imaginary (they are rotations in the imaginary plane) and present as fluctuations in volatility as well as price.
While mathematical models are related to analogy or metaphor (Orrell, 2012), they differ in that they are expressed in terms of equations which demand a degree of internal consistency. In classical theories, the main dimensions are price and time, but by extending these to include mass the quantum approach allows one to express economic versions of force and energy in consistent units.
A common misapprehension about quantum probability is that it was developed in order to model strange and spooky phenomena of the subatomic world such as superposition and entanglement. In this view, the onus is on the modeller to show that financial markets exhibit similarly bizarre and counterintuitive behaviour. However, perhaps the key message of quantum social science and quantum economics is that quantum phenomena can often present as familiar and intuitive. As Aaronson (2013) notes it is a historical accident that quantum probability, which is a mathematical construct, was discovered by physicists rather than by mathematicians. The main advantage of its use in finance is simply that it provides a way to handle properties that are both probabilistic and dynamic in a unified manner. In the oscillator model presented here the key quantum properties that are exploited are a base level of fundamental uncertainty, which is related to the bid/ask spread; the existence of discrete energy levels, which correspond to the number of transactions per step; and the dynamics of the complex wave function, which describes the evolving superposition of price states. In principle such effects could be modelled using classical probability, just as one can emulate a quantum circuit using a classical computer; however there would be no advantage because, lacking the simple structure of the quantum model (which is just a quantum version of a spring), the resulting model would require extra made-up parameters and be more complicated.
The ultimate test of a model, after all, is not whether it is a good analogy or has the right units or can be coerced to fit data, but whether it is useful for explaining and predicting a system. This paper has presented a quantum oscillator model which captures key empirically-observed features of stock markets, using a minimal set of assumptions and parameters. To summarise the main points: • The model is derived from a basic model of transactions which expresses probabilities in terms of entropic forces • The model accounts for spread and correctly captures the inherent uncertainty of financial markets. • Non-constant volatility leads to the non-Gaussian statistics seen in market data. • The model naturally produces the square-root law of price impact, and correctly predicts that the numerical constant should be close to unity. • The model also correctly predicts a simple empirical relationship for the variance of price impact, and more generally the relationship between volatility and price change.
When oscillators were first used almost a century ago to simulate financial markets, the models were based on classical mechanics rather than the quantum version which was being developed by physicists and mathematicians around the same time. One consequence was that concepts such as mass and energy seemed to have no obvious analogues in finance. The developing field of quantitative finance therefore focused on random walks and downplayed the role of dynamics. The efficient market hypothesis for example assumes that information is perfect and prices are instantly restored to equilibrium, so the system is effectively independent of time. The quantum approach therefore offers a way to bring the related concepts of energy, information, and entropy back into finance, in a manner that is consistent with observed market behaviour.
Footnotes
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
