WorksPhysics and Astronomy
Toward Quantum Monte Carlo for Sovereign Debt Risk: A proof of concept
Abstract
We present a proof-of-concept pipeline that applies quantum amplitude estimation to the probability that a sovereign debt-to-GDP ratio exceeds a critical threshold at a given horizon. The pipeline combines a reduced two-factor Gaussian debt model linearized around its mean, quantum state preparation on a 32 x 32 grid, a weighted-adder circuit, an integer comparator, and Maximum Likelihood Amplitude Estimation (MLAE). On a noiseless statevector simulator with 500 shots per Grover power, the circuit estimate (a = 0.1152) agrees with the circuit's exact target amplitude (0.1153), and the observed estimation error is consistent with the amplitude-estimation scaling in the number of oracle calls. The model used here is deliberately simple: it admits a closed-form solution, so the contribution is a demonstration of the encoding and estimation workflow, not a practical advantage over classical methods. We discuss the conditions under which such a pipeline could become relevant and the obstacles that remain.
Introduction
Sovereign debt sustainability assessment is a cornerstone of macroeconomic policy, yet it remains challenged by deep uncertainty in growth trajectories, interest rate dynamics, and geopolitical shocks [1, 2]. Monte Carlo simulation is widely used for this purpose, but its estimation error decreases only as in the number of samples . For rare-event probabilities, this scaling can impose high computational cost [3].
Quantum Amplitude Estimation (QAE), introduced by Brassard et al. [4], reduces the error scaling to in the number of calls to the state-preparation oracle, a quadratic improvement in query complexity. This has motivated applications to financial risk analysis [5, 6] and option pricing [7]. The theoretical foundation is Grover’s search algorithm [8], with later variants that avoid quantum phase estimation, notably Maximum Likelihood Amplitude Estimation (MLAE) [9] and iterative approaches [10], which reduce circuit depth and improve robustness to finite sampling [11].
An important caveat accompanies these results. A quadratic query speedup does not by itself imply a practical advantage: the cost of implementing the oracle on quantum hardware, the need for fault tolerance at useful depths, and the strength of optimised classical baselines all matter. Resource analyses indicate that quadratic speedups alone may be insufficient for practical advantage without substantial hardware progress [12, 13]. We keep this caveat in view throughout.
In this paper we assemble and test a complete amplitude-estimation pipeline for a sovereign debt tail probability. Our contributions are modest and specific: (i) an explicit workflow from a two-factor linearized debt model to a quantum circuit with a weighted adder and integer comparator; (ii) an MLAE-based estimator evaluated on a statevector simulator with finite-shot sampling; and (iii) an honest accounting of query costs and of the gap between this toy problem and a setting where a quantum approach would be competitive. The model is simple enough to admit a closed-form answer, which we use as a validation reference.
Section 2 describes the methodology, Section 3 reports results, Section 4 discusses limitations and relevance, and Section 5 concludes.
Methodology
The pipeline has four stages: classical model reduction, quantum state preparation, quantum arithmetic, and amplitude estimation.
Classical Model Reduction and Linearisation
Debt dynamics.
Debt-to-GDP evolves over a horizon of years from as
where denotes a primary surplus (ratio to GDP). In the full simulation model each of , and carries its own yearly noise term; for the quantum pipeline we reduce the model to two aggregate shocks: the cumulative growth shock and the cumulative interest-rate shock , i.e. the sums over the horizon of the yearly shocks, assumed independent and Gaussian,
each spread evenly over the years:
This reduction drops the yearly noise on the primary balance and the persistence of growth. The event of interest is with , and the target is . Table 1 lists all symbols and values.
| Symbol | Meaning | Value |
| Horizon | 20 years | |
| Initial debt/GDP | 0.90 | |
| Target debt ratio in the fiscal rule | 0.6 | |
| Intercept of the primary-balance (pb) rule | 0.0 | |
| Feedback of the on the debt gap | 0.03 | |
| Constant policy effect on (%GDP/year) | 0.0 | |
| Trend growth, mean interest rate | 0.015, 0.025 | |
| Std. of the yearly growth / rate shocks | 0.01, 0.005 | |
| Means of the cumulative shocks | 0, 0 | |
| Std. of , () | 0.04472, 0.02236 | |
| (nominal) | 0.009852 | |
| (nominal) | 0.0090 | |
| (nominal, ) | Terminal debt ratio | 0.8978 |
| Threshold of the event | 0.95 | |
| Qubits per random factor ( grid points) | 5 | |
| Qubits of the sum register | 6 | |
| Grover powers | ||
| Shots per Grover power | 500 |
Table 1. Model and simulation parameters.
Linearisation and sign convention.
Growth and interest rate enter with opposite signs: and (central finite differences at with a step of ). To obtain two positive weights for the quantum adder we use the adverse variables (low growth is bad) and . This is equivalent to reversing the index of the growth register, and it is exact because the Gaussian is symmetric about zero, so the probabilities are unchanged. Each is truncated at and discretised on regular points , , with step and (Table 2). The linearised map is
| Quantity | Value |
| Truncation range of | (= ) |
| Truncation range of | (= ) |
| Probability mass cut per variable | 0.0027 |
| Grid step of / | 0.00866 / 0.00433 |
| , (per unit) | |
| Same, per standard deviation | |
| , (increase of per grid step of , ) | , |
| (intercept at ) | 0.748922 |
| Exact at best / worst corner | 0.7624 / 1.0620 |
| Linear model at best / worst corner | 0.7489 / 1.0467 |
| on the grid | 0.0154 |
| on the grid | 0.0163 |
Table 2. Truncation, discretisation and linearisation.
where is the increase of per grid step, and is the intercept at , the most favourable corner of the grid (it is not the value at the mean, ).
The shocks are discretised on a regular grid with points per dimension ( qubits per variable).
Error measures.
We use five reference probabilities. : continuous Gaussians and the exact nonlinear model, by classical Monte Carlo with 2 000 000 samples (seed 123), standard error 0.0002. : continuous Gaussians and the linear model, which is Gaussian and has the closed form with and . : Gaussians truncated at , exact model. : the grid with the exact model. : the grid with the linear model and integer arithmetic of the circuit, which is the amplitude the circuit encodes. The modelling error decomposes as
and the estimation error is . Table 2 reports both, consistently with the rest of the paper.
The value on the grid is specific to this threshold and grid: it arises because the grid with exact and with linear integer arithmetic flags the same grid points. It must not be read as the linearisation error. The linearisation error in the continuum is , larger than the estimation error and in the opposite direction to the net modelling error, so that part of the modelling error cancels.
Quantum State Preparation
Each discretised Gaussian is loaded into a register of qubits with the amplitudes of the truncated, renormalised, discretised Gaussian (the density evaluated at the grid points and normalised), producing
where are the discretised probabilities of . The loading uses Qiskit’s generic StatePreparation (exact amplitude-vector synthesis); we did not use NormalDistribution or the Grover–Rudolph construction. For two registers of five qubits, this loading is inexpensive. We note that for general distributions on many qubits, exact loading can require resources exponential in the number of qubits, which is one of the known bottlenecks of this approach.
Quantum Arithmetic: Weighted Addition and Comparison
Let be the debt resolution of one integer unit, chosen so that the full range of on the grid spans the sum register, . The weights of bit of each register are and , so that the circuit computes
with the -th bit of , using a WeightedAdder; then . For the weights are and . The maximum is , and the sum register of qubits holds up to , so and no overflow occurs (the slack is 0; the check is tight because is chosen to use the full range).
An IntegerComparator flags the grid points with , where . Because of this rounding the circuit’s effective threshold is instead of ; its size depends on (Table 5). The comparator sets an objective qubit to on the flagged points, so that the probability of measuring equals .
| Grid | Effective | ||||||
| 3 | 4 | 11 | 0.9673 | 15/15 | 0.0611 | ||
| 4 | 5 | 21 | 0.9506 | 31/31 | 0.0834 | ||
| 5 | 6 | 43 | 0.9521 | 63/63 | 0.0818 |
Table 5. Dependence on the grid size ( sum qubits, ; from one run, seed 1).
Amplitude Estimation via MLAE
We estimate using MLAE [9], which replaces the quantum phase estimation of canonical QAE by a set of Grover powers and classical maximum-likelihood inference. Let denote the state-preparation circuit (loading, adder, comparator). The Grover operator is , where reflects about the all-zero state and flips the sign of states with the objective qubit in . For a schedule of powers we apply and measure the objective qubit times, recording the number of outcomes. Then
The likelihood is
and with maximising on a grid of 200,001 points of . A geometric schedule of powers is what gives MLAE its Heisenberg-type scaling [9]; our schedules are of this type.
Query cost
A circuit with Grover power calls (or ) times. The total number of oracle calls for a schedule with shots per power is therefore
For the schedule used in the main experiment, , giving , while the number of circuit executions is . We report oracle calls, not circuit executions, as the cost measure when comparing with classical sampling.
Implementation Parameters
We use qubits per variable ( grid points), sum qubits, Grover powers , and 500 shots per power. All simulations use a noiseless statevector simulator with shot-based sampling to emulate finite-measurement noise. Table 4 presents the reproducibility of this work:
| Item | Value |
| Python | 3.14.7 |
| Numpy | 2.5.4 |
| Qiskit version | 2.5.2 |
| Aer | not used |
| RNG | numpy.random.default_rng(PCG64) |
| State loading | qiskit.circuit.library.StatePreparation, amplitudes of the truncated, renormalised discretised Gaussian. |
| Arithmetic | WeightedAdder + IntegerComparator (qiskit.circuit.library). |
| Amplitude estimation | MLAE: , grid search over (200,001 points). |
| Circuit simulation | Exact Statevector (no sampling noise); shots drawn with numpy binomial. |
| Reference Monte Carlo seed/size | 123 / 2,000,000 |
| RMSE repetitions/seeds | 200/0..199 |
Table 4. Reproducibility
Results
Figure 1 presents four diagnostics. Figure 1a Illustrates the baseline precision across successive approximation layers for evaluating the tail event probability ( at year 20). The comparison highlights minimal discretization error between the continuous exact model (0.086) and the discretized representation (0.082), with the final MLAE ideal emulation yielding a highly accurate estimate of 0.081.

Figure 1. (a) Comparison of probability estimates: continuous exact model, discretised exact model, circuit target (linear + integer arithmetic), and QAE estimate. (b) Distribution of encoded in the circuit. Red bars indicate grid points above the 95% threshold; their total mass equals the target probability . (c) Probability of measuring the objective qubit in state versus Grover power . Red markers: simulation; blue curve: theoretical . (d) RMSE versus number of oracle calls (log-log). Classical Monte Carlo (grey dashed) scales as ; MLAE (orange) is shown for six schedules. Fig. 1: Results for the sovereign debt tail probability. (a) Comparison with reference values. (b) Encoded debt distribution and crisis tail. (c) Grover amplification. (d) Estimation error versus oracle calls.
Figure 1b displays the discrete probability distribution mapped across the sorted debt/GDP horizon grid points as encoded by the quantum circuit layout. The targeted regions exceeding the 95% critical risk threshold are explicitly highlighted in red, visually demonstrating the state preparation phase before amplification. Figure 1c traces the success probability of the objective qubit as a function of the Grover iteration count . The ideal emulation data points tightly fit the theoretical oscillation pattern, validating the coherent amplification of the target state from the initial baseline amplitude of . And the Figure 1d benchmarks the resource efficiency by plotting the RMSE of the probability estimate against the total computational cost (measured via circuit oracle calls or classical sample sizes). The MLAE ideal emulation demonstrates a visibly steeper scaling profile relative to the standard classical Monte Carlo rate (), confirming the anticipated quantum scaling advantage within the tested domain.
Agreement with Reference Values
The single-run MLAE estimate agrees with the circuit target (Figure 1a); over 200 repetitions the estimator has bias and standard deviation (Table 3), so the single-run error is typical. This confirms that the estimator recovers the amplitude encoded in the circuit. The circuit target in turn differs from the continuous exact model by , composed of truncation (), discretisation () and linearisation with integer arithmetic on the grid (); the estimation error is thus 4.1 times smaller than the modelling error. The closed-form probability of the linear Gaussian model is , 0.0067 below .
| Quantity | Value |
| : continuous Gaussians, exact model | 0.0861 () |
| : continuous Gaussians, linear model (closed form) | 0.0793 |
| : truncated at , exact model | 0.0845 |
| : 32 32 grid, exact model | 0.0818 |
| : grid + linear + integer (circuit target) | 0.0818 |
| : QAE estimate (single run, seed 1) | 0.0809 |
| Linearisation in the continuum, | +0.0067 |
| truncation, | |
| discretisation, | |
| linearisation + integer on the grid, | +0.0000 |
| (single run) | |
| RMSE of vs. (200 repetitions, seeds 0–199) | 0.00105 |
| Bias / std. of over the repetitions | / 0.00105 |
| Oracle calls per run, | 9 000 (= 500 18) |
| Circuit executions per run | 2 000 |
Table 3. Probability with and its errors (, , ).
Table 5 varies the grid size. The modelling error does not decrease monotonically with : the effective threshold fluctuates around because of the integer rounding (0.9673, 0.9506, 0.9521 for ), and the linearisation error in the continuum does not vanish with . Increasing therefore improves the representation of the Gaussians but not the linearisation, and we do not claim convergence to .
Encoded Distribution
Figure 1b shows the probability mass of the linearised debt as computed by the circuit. The total mass of the flagged region (red) equals . Note that this is a probability of order , i.e. not a rare event; the threshold is only about 5.2 percentage points above the nominal terminal ratio .
Grover Amplification
Figure 1c shows against . The simulated frequencies follow the theoretical curve with , up to the statistical fluctuation expected for 500 shots. This validates the construction of the Grover operator, with the caveat that the theoretical curve uses obtained from the circuit’s own probability.
Estimation Error versus Oracle Calls
Figure 1d and Table 6 compare the RMSE of the MLAE estimate with the classical Monte Carlo error , as a function of the number of oracle calls from Eq. (12), for six schedules, with 200 independent repetitions per schedule (seeds 0–199) and 500 shots per power. The standard error of each RMSE is approximated by
| Schedule | MLAE RMSE ( s.e.) | Classical RMSE at | |
| (0) | 500 | 0.01286 (0.00064) | 0.01226 |
| (0, 1) | 2 000 | 0.00410 (0.00021) | 0.00613 |
| (0, 1, 2) | 4 500 | 0.00205 (0.00010) | 0.00409 |
| (0, 1, 2, 4) | 9 000 | 0.00105 (0.00005) | 0.00289 |
| (0, 1, 2, 4, 8) | 17 500 | 0.00071 (0.00004) | 0.00207 |
| (0, 1, 2, 4, 8, 16) | 34 000 | 0.00033 (0.00002) | 0.00149 |
Table 6. RMSE versus oracle calls ().
For the schedule (0), MLAE reduces to plain sampling and the two errors coincide (0.01286 versus 0.01226), which is a consistency check. At the main schedule () the MLAE RMSE is 0.00105 against 0.00289 for classical sampling at the same number of calls; at the largest schedule () it is 0.00033 against 0.00149, a factor of 4.5. A least-squares fit on the six points gives a log-log slope of for MLAE, versus for classical sampling.
We emphasise the scope of this observation. With a fixed number of shots per Grover power and powers up to , the experiment covers about 1.8 decades of budget. It cannot, by itself, establish an asymptotic slope, and the fitted slope () lies between the classical and the quantum rate. We therefore regard Figure 1d as consistent with, but not a demonstration of, the quadratic scaling. The comparison is in oracle calls only: one call of is a circuit, whereas one classical sample costs a few arithmetic operations, and the MLAE circuits are simulated without hardware noise.
For reference, the theoretical query complexity of canonical QAE to reach additive error is , versus for classical sampling. For and , the classical requirement is about 3 004 samples, whereas the QAE bound is of order up to constants and logarithmic factors; in our data the schedule (0, 1) with 2 000 calls already gives an RMSE of 0.00410.
Discussion and Limitations
The test problem admits a closed form.
Under independent Gaussian shocks and a linear map, is itself Gaussian, and is available analytically (Table 3). Quantum (or classical) Monte Carlo is therefore unnecessary for this linearised problem; the closed form serves here as the validation reference. The contribution of the paper is the encoding and estimation workflow, not a computational gain on this instance.
The event is not rare.
The estimated probability is 0.0818. The motivating use case, tail events with small probability, is not exercised by the present experiment.
Classical baselines.
We compared against plain Monte Carlo only. Competitive classical alternatives, such as quasi-Monte Carlo, importance sampling, and deterministic quadrature, would likely perform much better on this low-dimensional problem and must be included in any claim of practical advantage.
Oracle cost and hardware.
The quadratic speedup is in the number of oracle calls. The oracle here (loading, adder, comparator) is cheap to simulate but, on hardware, each call has a non-negligible circuit cost, and Grover powers multiply the depth. Whether this circuit is executable on near-term noisy devices has not been tested: our simulations are noiseless and we have not transpiled to a hardware topology. Results on fault-tolerant resource requirements for similar financial problems suggest that useful advantage may require large logical-qubit and gate budgets [12, 13].
Model limitations.
The first-order linearisation is least accurate in the tails, which is exactly where the target probability is defined; the continuous linearisation error is +0.0067 in probability, and the linear model deviates from the exact one by up to 0.0154 in on the grid. Its assessment is limited to the present parameters. We assume Gaussian shocks and independence; real debt dynamics involve fat tails, correlation, regime changes and policy feedback. The integer resolution of the adder ( of GDP) and the rounding of the threshold shift the effective threshold to 0.9521. Extending to nonlinear, multi-period, higher-dimensional models is where an oracle-based approach could in principle become relevant, but it is also where oracle construction becomes the main difficulty.
Estimator schedule.
The Grover schedule (0, 1, 2, 4) was chosen heuristically, and we did not compare MLAE against canonical QAE or iterative QAE on the same problem.
Conclusion and Outlook
We presented a proof-of-concept pipeline that encodes a two-factor linearised sovereign debt model into a quantum circuit and estimates a tail probability with MLAE. On a noiseless simulator, the estimator recovers the amplitude encoded in the circuit, and the Grover amplification behaves as theory predicts. We have been explicit that the linearised problem has a closed-form solution, that the event is not rare, that only a naive classical baseline was considered, and that the experiment does not by itself establish an asymptotic quantum advantage.
Natural next steps are: (i) non-Gaussian, nonlinear, multi-period debt dynamics with more risk factors, where closed forms are unavailable; (ii) comparison against variance-reduced classical estimators and against other amplitude-estimation variants; (iii) noise models and hardware experiments; and (iv) fault-tolerant resource estimates.
As a longer-term perspective, an amplitude-estimation routine of this kind could be exposed as a tool to software agents operating within digital-twin or simulation environments, such as the geopolitical sandbox of Dessureault et al. [14]. We have not implemented or evaluated such an integration, and we do not claim it as a contribution of this work.
Code and data availability
The source code and computational pipeline required to replicate the findings of this study are publicly available on GitHub. An archival version of the repository, including the exact package versions and random seeds specified in Table 4.
References
- [1]Fund, I.M.: Fiscal monitor: Fiscal policy in the great tribulation. Technical report, International Monetary Fund (2023)
- [2]International Settlements, B.: The global debt database: methodology and sources. Technical report, Bank for International Settlements (2022)
- [3]Glasserman, P.: Monte Carlo Methods in Financial Engineering vol. 53. Springer, ??? (2004)DOI
- [4]Brassard, G., Høyer, P., Mosca, M., Tapp, A.: Quantum amplitude amplification and estimation. Contemporary Mathematics 305, 53–74 (2002)DOI
- [5]Woerner, S., Egger, D.J.: Quantum risk analysis. npj Quantum Information 5(1), 1–9 (2019)DOI
- [6]Egger, D.J., Gámez, P.R., Sun, Y., Zoufal, C., Iten, R., Shen, S., Woerner, S.: Credit risk analysis using quantum computers. npj Quantum Information 7(1), 1–8 (2021)arxiv.org/abs/1907.03044
- [7]Stamatopoulos, N., Egger, D., Sun, Y., Zoufal, C., Iten, R., Shen, S., Woerner, S.: Option pricing using quantum computers. Quantum 4, 291 (2020)
- [8]Grover, L.K.: A fast quantum mechanical algorithm for database search. Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, 212–219 (1996)arxiv.org/abs/quant-ph/9605043
- [9]Suzuki, Y., Uno, S., Raymond, R., Tanaka, T., Onodera, T., Yamamoto, N.: Amplitude estimation without phase estimation. npj Quantum Information 6(1), 1–9 (2020)DOI
- [10]Grinko, D., Gacon, J., Zoufal, C., Woerner, S.: Iterative quantum amplitude estimation. npj Quantum Information 7(1), 52 (2021)
- [11]Montanaro, A.: Quantum amplitude estimation: variants and beyond. Physical Review A 102(2), 022403 (2020)
- [12]Babbush, R., et al.: Focused quantum algorithms for monte carlo methods. arXiv preprint arXiv:2109.03011 (2021)
- [13]Chakrabarti, R., Krishnakumar, E., Woerner, S., et al.: A survey of quantum computing for finance. ACM Computing Surveys 54(8), 1–37 (2021)
- [14]Dessureault, J.-S., Manzi, A.T.I., Alaoui Ismaili, S., Mijoro Barisoa, A., Yankam Djoké, D., Bergeron, A., Yared-Amare, A., Laliancette, M., Bélanger, É.: Evaluating agentic ai through a geopolitical simulation sandbox. In: Computational Intelligence, pp. 194–213. Springer, ??? (2026). https://doi.org/10.1007/978-3-032-15632-7_11