Quantum Amplitude Estimation for Investment Risk (2D)
Interactive 2D simulator of canonical Quantum Amplitude Estimation: real Grover-operator phase-estimation rounds sampled from the exact Brassard-Hoyer-Mosca-Tapp measurement distribution, plotted live against classical Monte Carlo sampling on a log-log error-vs-query-count chart showing the genuine 1/M vs 1/sqrt(N) quadratic speedup.
This is the flat, chart-first companion to the 3D Grover-spiral simulator: instead of a rotating 3D state vector, it runs the real canonical quantum-amplitude-estimation math directly — computing the exact Brassard–Høyer–Mosca–Tapp measurement distribution for a Grover-operator phase-estimation circuit at growing oracle-query budgets M, drawing a genuine weighted-random outcome from it each round, and plotting the resulting estimate's real error against a parallel classical Monte Carlo estimator that is itself accumulating real Bernoulli draws. Watch the two error curves diverge on the log-log chart — quantum falling roughly twice as fast in log-log slope — which is exactly the quadratic query-complexity advantage (O(1/M) vs O(1/√N)) that motivates quantum approaches to pricing derivatives and estimating the probability a portfolio's loss crosses a Value-at-Risk threshold.
Watch a Grover-operator spiral amplify a rare event's probability (like a portfolio loss crossing a VaR threshold) and compare its 1/M convergence against classical Monte Carlo's 1/sqrt(N) in real time — the quadratic speedup behind proposed quantum-finance risk engines.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install