The S&P 500 Problem That Breaks Classical Computers
In this series, we review scientific papers in an approachable way. Our main tool is NotebookLM, which is hacking into our human desire for narratives. To supplement, I provide commentary drawn from my experience as a research scientist at Nvidia.
Today’s paper:
Quant-Ph ArXiv 27 Feb 2026.
Commentary
The promise of this paper is a very concrete application of quantum hardware to a financial problem, that of portfolio optimization. It’s a little humorous to say in 2026, we’re still at the level of mean variance optimization, where Markowitz originally tried to take a geometric approach to solving this.
The quantum approach is taking exact discrete solutions via the QUBO method of assigning whether a qubit is up or down to whether you’re holding a security in your portfolio or not. Their target is a 125 security portfolio, though they do simulations at 32 to 64. I identified this type of application essentially the quantum advantage of solving an exponentially growing problem is realized over classical computers.
It was a pleasure to find that JP Morgan’s group has already made significant inroads on this and they have had their group research leader transition to an executive position at IonQ. That’s not to say there is not significant challenges in this approach. For instance, the system, Forte IonQ systems that they were working with have a maximum of approximately 64 qubits, whereas they’re trying to target the 125 security portfolio. This leads to some hacky type mathematical bridges.
One is the network truncation. The securities are modeled as islands of interconnected 32 qubit, 32 security groups, and in later case as 64 qubit groups. This is a significant limitation as when you have one sector of the industry, let’s say the semiconductor industry in today’s times, sucking up capital from all corners of software and technology and even traditional atoms like energy.
In the end, this is a proof of concept paper where the advantage does not seem to present the killer app feeling where people are willing to turn over mountains for this type of solution, as there already exists portfolio optimization. For example, we use the Black Litterman method, which is a Bayesian type optimization, taking the market as a prior.
This is incredibly important as it bakes in some causal nature, which, as markets are human in some degree, this causal prior-based approach will always have significant strengths. Finally, the paper shows that these types of limitations can be overcome by expanding the number of qubits.
We can imagine, and the podcast posts the question of a far future in a decade where we have a thousand logical qubit computers. Undoubtedly, human ambition will expand, even if not only for just this problem, but for other applications, to utilize all the computational quantum or classical power to treat new problems.
NotebookLM podcast and transcript (Google AI transcription)
Read full AI transcript
“If you uh if you wanted to calculate every single possible combination of a 125 stock portfolio and you’re picking from the S&P 500,
right? The full 500.
Yeah. And let’s say you used the most powerful classical supercomput on Earth to just brute force the math like just crunch every combination.
It wouldn’t work.
No, it wouldn’t. The machine would literally burn out before the sun exploded.
Yeah. The number of possible combinations there is uh it’s essentially equivalent to the number of atoms in the observable universe. Exactly. It’s wild. We are talking about this massive mathematical wall that standard computers simply cannot climb. Period.
They just can’t.
But today we’re looking at a workaround that actually bypasses that physical limit. And not in, you know, 30 years right now,
which is the most exciting part.
It really is. So, welcome to today’s deep dive. Our mission today is to explore how researchers are utilizing today’s, let’s be honest, highly limited quantum hardware to solve these massive intractable financial problems. And we are grounding this entirely in this fascinating March 2026 paper. It’s titled large-scale portfolio optimization on a trapped ion quantum computer.
Right. And this paper which is by Alejandra Gomez Kadavid and a whole consortium from Kipu quantum ion Q and multiple universities. It really represents a paradigm shift.
A total shift. Yeah.
Because for years, you know, the industry narrative has basically been that we just have to wait
wait for the perfect machine.
Exact. wait for perfect error corrected quantum machines with like millions of quibbits before we can do anything useful.
Right?
But this team completely rejected that premise. They built this highly practical hybrid pipeline to extract real financial value out of the nory constrained quantum hardware that is literally sitting in laboratories right now.
And I just love the pragmatism here. I mean they looked at the tools available and engineered what is essentially the ultimate hack.
Yeah, it really is a hack
to bypass those modern limit. But to really appreciate this quantum workound, I think we have to look at the sheer scale of the financial problem they’re targeting.
We do
the finance world calls it a fixed cardality portfolio optimization.
It’s a mouthful.
It is, but it’s rooted in the classic mark of its mean variance framework. Basically, an investor wants to perfectly balance expected return against risk.
Right. And that risk parameter is what triggers that massive combinatorial explosion you mentioned earlier
because it’s not just a list?
No, not at all. We aren’t just evaluating 250 individual assets in a vacuum. We have to evaluate their covariance.
Okay. Right. Covariance.
Yeah. Meaning the risk profile of one specific stock changes entirely based on how it interacts with the other 124 stocks you choose to hold.
Wow.
Like if an external economic shock hits, do these two specific assets crash together or does one actually stabilize the other? You have this incredibly dense interconnected web of relationship. In the past, I might have, you know, compared this to drafting a fantasy sports team.
I like that analogy,
right? Like you have a strict roster cap, but imagine if the player stats magically fluctuated depending on who else was sitting on the bench.
Yeah, that would be a nightmare to manage.
It’s a total nightmare. But here, the scale is so vast, picking exactly 125 assets out of a 250 asset universe. A standard computer trying to weigh every possible interaction just uh it runs out of memory and time.
It does. And classical algorithms, they attempt to navigate this by either brute forcing it or using heristic approximations
which have their own issues.
Huge issues. They can easily get trapped in suboptimal local minimums. But this is where the paper shines. The underlying mathematics of this choice. The fact that you must make a discrete binary decision,
meaning you either buy it or you don’t.
Exactly. You include an asset, which is a one, or exclude it, which is a zero. That maps perfectly onto quantum That’s the leap.
Yeah. We can translate this financial choice into a Qubo model.
And QGBO stands for quadratic unconstrained binary optimization.
You got it. And that can also be framed in physics terms as an Ising Hamiltonian.
Okay. I really want to make sure we visualize this mapping for you listening because I think it’s brilliant.
It is.
In physics, an Ising model describes magnetic dipole moments. Basically, atomic particles that have a spin,
correct?
And the spin can either point up or point down. So, the researchers are l literally taking the binary financial choice of buy or don’t buy and mapping it to the physical up or down spin of a quantum particle.
Yes, they are translating a stock portfolio into the physical language of magnetism
which is just crazy to think about.
It’s beautiful. And by doing so, the problem stops being just, you know, a line of code processed sequentially. It becomes an energy landscape.
An energy landscape. Okay.
Right. And a quantum system naturally seeks its lowest energy state. In this mapped Hamiltonian, that lowest energy state mathematically corresponds to the absolute best risk-to-re ratio for your portfolio.
Wow.
So, the quantum computer isn’t calculating the answers one by one like a normal computer. The physical system itself is simply settling into the optimal solution,
which sounds like absolute magic. Honestly, it’s the native language of quantum mechanics.
It really is.
But this raises an important question, I think. If the physics align so perfectly, why hasn’t someone just, you know, mapped the entire S&P 500 onto an Isising Hamiltonian, plugged it into a quantum processor, and just solved the global stock market.
Well, because of the physical constraints of the hardware itself, we hit a strict physical ceiling known as the QAX.
Okay, let’s unpack this. QAX is the physical quibbit limit of the processor.
Exactly.
So, if you want to map 250 interacting socks, you fundamentally need 250 quibbits interacting simultaneously to hold the global structure of that Hamiltonian.
That’s the catch.
Yeah. And if the machine only has say 36 quibbits, the puzzle is just too big for the table. You are physically locked out of the computation.
Unless, and this is key, unless you change how you approach the puzzle.
Ah,
the core innovation of this paper is a pipeline they call hardware aware clustering.
Hardware aware clustering.
Right? If the global problem exceeds your QAX, you have to decompose the problem into hardware size subpros.
You chop it up.
You chop it up. But chopping up a highly correlated financial market is extremely danger. If you separate two deeply intertwined assets, the quantum computer never gets to evaluate their coariance.
Right. Because you’d be blinding the machine to the very risk factors you were trying to optimize in the first place. Exactly. So they can’t just like slice the 250 stocks alphabetically. That would be a disaster.
It would ruin the data.
They need a surgically precise way to group them.
Which brings us to the first phase of their classical pre-processing, which is RMT denoising,
random matrix theory.
Right? And this step is crucial, right? Because before you can cluster the assets, you have to know which relationships are actually real.
Yeah. Financial data is notoriously noisy. If you look at the correlation matrix of daily log returns for 250 stocks over, you know, several years, you generate this massive grid of interacting data points,
just a wall of numbers.
And a huge percentage of those apparent correlations are just statistical illusions. They’re just random market static. If you feed that raw noisy data data directly into a quantum processor. It will spend its incredibly limited coherence time perfectly optimizing for ghosts.
Optimizing for ghosts.
I love that.
So, how does random matrix theory exercise those ghosts?
It’s pretty clever.
I’m assuming they’re analyzing the iigen modes of the matrix, pulling apart the structural market signals from the random fluctuations.
That is exactly what they do. The algorithm analyzes the ID values of the correlation matrix and compares them against theoretical bounds.
Okay.
Specifically, Typically they use the marcheno pastor distribution. This distribution dictates what the igen values of a purely random matrix should look like.
So it’s a baseline for randomness.
Yes. And any value that falls within that random bound is classified as C noise just noise and it gets systematically discarded
just thrown out.
Yep. What remains are the informative structured IGEN modes which they label sea star.
T-R genuine systemic market movements. Like imagine an entire tech sector moving in t because of a real supply chain shift.
So they strip away the static and they’re left with this crystal clear map of the true economic relationships.
Precisely.
And based on that clean sea star data, they run community detection
which acts kind of like a gravitational pole.
Right. Grouping the 250 assets into highly correlated clusters. Energy stocks that move together form one community. Baking stocks form another.
Exactly.
But wait, we still have that hardware constraint hanging over our heads. What happens if the community detection organically groups say 80 highly intertwined assets into a single cluster. But our machine only has a QAX of 36.
That’s where the pipeline gets strict. It deploys a correlationguided greedy rule to enforce a size cap.
A greedy rule.
Yeah. It essentially identifies the most heavily connected asset within that oversized 80 asset cluster and anchors it.
Okay.
Then it grabs the absolute closest most correlated neighbors one by one until it hits exactly 36 assets. or whatever the physical QMax of the machine happens to be.
And then what about the rest?
Once the cap is reached, it ruthlessly severs the connections to the remaining assets in the cluster.
Wow. It just fractures the community to ensure obedience to the hardware.
It has to.
No matter how dense or chaotic the mark data is, this greedy algorithm guarantees that the resulting ingros will seamlessly fit into the quantum processor.
And that leads us to the physical execution.
Right? The subpros are ready. We need to load them into the quantum engines. And the specific hardware they used here is fascinating.
It really is.
They utilize trapped ion quantum processors, specifically the ionforte and Forte Enterprise systems.
Yeah. And the Forte systems use 36bium ions.
Yeah. Which are physically manipulated by 355 nanometer lasers. And alongside those, the team also gain access to an advanced 64bit barium development system. Wow. Which is operated with 532 nanometer lasers. varying wavelengths of lasers to manipulate suspended individual atomic ions just to pick a stock portfolio. I mean that is the definition of bleeding edge tech.
It sounds like sci-fi but it’s happening.
Now I know trapped ions generally have much longer coherence times than say the superconducting quibbit you see in other architecture.
We do. Yes.
Which means they hold their quantum state longer before collapsing. Is that why they chose this specific hardware for such a complex financial web?
Coherence time is incredibly valable. for sure. But the definitive advantage of trapped ions for this specific pipeline is their topology, their connectivity.
Oh, connectivity. How so?
Well, in a trapion system, the ions are suspended in a linear chain within a vacuum. And they communicate with each other through shared motion modes
like vibrations.
Exactly. Because they all share the same physical space and interact through these vibrational modes. Trapped ions offer near all to all connectivity.
Ah, meaning quibbit number one can entangle directly with quibbit number 36 without any intermediate steps.
Precisely.
That is a stark contrast to superconducting chips. On those, a quibbit might only be physically wired to its four immediate neighbors.
Right. It’s a grid.
Yeah. In a superconducting setup, if a stock on the left side of the chip needs to interact with the stock on the right side, you have to execute this long sequence of swap gates,
a bucket brigade essentially.
Exactly. Passing the quantum information down the line.
And every single time you execute a swap gate, you reduce noise, you burn through your coherence time
which is already limited,
right? And financial portfolios are fundamentally dense. The coariance matrix means almost every asset has some relationship with every other asset.
So if you attempted to run this on a processor with limited local connectivity,
the routing overhead, just the sheer number of swap circuits required just to make the variables talk to each other, would destroy the quantum state long before the optimization finished.
So trapped ions allow the financial web to be modeled natively with direct interactions.
Exactly.
Okay. So to actually drive the optimization on these ions, the researchers used an algorithm called BFDCQO,
right?
Which stands for bias field digitized counterdiabatic quantum optimization.
A very long acronym.
Very long. Yeah.
Now standard variational quantum algorithms usually rely on this massive feedback loop. Right.
They do.
The quantum machine runs a quick circuit, sends a result to a classical computer. The classical computer tweaks a parameter and sends it back for another run
and that can require thousands of iterations.
Yeah. But BFDCQO is non-variational. It avoids that classical quantum loop entirely.
That’s right.
But it’s the counterdiabetic part of the acronym that I find really interesting here.
The counterdiabatic mechanism is what allows the algorithm to run so efficiently. In a standard adiabatic process, the quantum system has to evolve incredibly slowly to ensure it stays in that lowest energy state we discussed earlier.
Okay,
imagine carrying a full cup of coffee across a large room.
Oh, we’ve been there.
Right. If you want to keep the surface of the coffee perfectly flat, you have to walk agonizingly slowly
because if you rush, the coffee slashes around.
Exactly.
Or in quantum terms, the system jumps out of the ground state into a higher non-optimal energy state.
Exactly. The counterdiabetic protocol applies precise calculated counter forces to the system.
Counterforces.
Yes. It mathematic ally suppresses the transitions that would cause the system to jump out of the ground state. Returning to the analogy, it’s as if you are dynamically tilting the coffee cup in real time to perfectly counteract your acceleration.
Oh wow.
Which allows you to sprint across the room while the liquid remains perfectly flat.
That is a great analogy.
The algorithm accelerates the computation driving the system to the optimal portfolio state in a fraction of the time which is critical when coherence time is your bottleneck.
Okay, I have to play the skeptic. here though.
Go for it.
Even with counterdiabetic driving and the elimination of swap gates, quantum hardware today is just inherently noisy, the laser pulses aren’t perfect. The environment introduces thermal static.
All true.
So if you are trying to compute every single tiny financial relationship in these subpros, doesn’t mapping that incredibly dense web of connections introduce a fatal amount of gate error?
It’s a great point and the researchers were acutely aware of the gate fidelity limitations. Every two quibbit interaction requires a physical laser pulse and every pulse carries an error rate. Right?
If you try to map every minute coariance value, the accumulated error will absolutely overwhelm the signal. So to mitigate this, they introduced a technique called pruning during the compilation phase.
Coding like trimming a tree.
Exactly. They analyze the required rotation angles for all the two kibbit gates which basically represent the strength of the financial correlation and establish a strict threat threshold known as theta cutff.
Theta cut off. So any interaction that falls below that rotation angle threshold is just forcefully dropped from the circuit.
Yes,
they intentionally delete data.
They do. And what’s fascinating here is that discarding these weak financial connections mathematically improves the final fidelity of the portfolio.
Really?
Yeah. By sacrificing the negligible coariance interactions, they drastically reduce the gate depth of the circuit.
Oh, I see.
They are intentionally spending their precious limited quantum coherence time solely on the heavy-hitting dominant structural relationships of the portfolio.
So, it’s a highly controlled approximation. Yes.
One that prevents the hardware from suffocating under its own error rates.
Exactly. Right.
Okay. So, the trapped ion processor uses counterdiabatic protocols and pruned circuits to work its magic on these hardware sized chunks and it skits out highly optimized subportfolios.
Right.
But we are far from the finish line here. We have a collection of fragmented optimized chunks. When we attempt to recombine these independent chunks back into one massive 250 asset global portfolio, the boundaries clash.
They absolutely clash,
which necessitates the final phase of the pipeline, the classical cleanup crew.
Right? Because the moment we recombine the subpros, we have to confront the central mandate of fixed cardality optimization,
the 125 limit.
Yes. The portfolio must contain exactly 125 assets.
But the quantum computer doesn’t give us a hard physical boundary.
No, it doesn’t.
Because we mapped the problem to a QBL model which enforces the 125 asset limit using soft penalties.
Right. Right. Instead of a physical wall preventing the machine from selecting asset number 126, it applies a massive mathematical penalty to the energy state.
But because we are dealing with quantum wave functions and sampling noise, the state smears out.
It does.
The quantum processor might hand you a highly optimized portfolio that contains 128 assets or maybe only 12. too.
Yeah, it navigates the inconceivably massive state space which is like 1.3 * 10^ the 74th power to find the optimal mathematical valley.
Massive.
But due to those soft penalties and sampling variations, it misses the exact cardality target. And close is unacceptable in rigid financial modeling.
You can’t tell a client, well, we bought a 128 instead of 125.
Exactly. So, the researchers deploy a two-stage classical algorithm to aggressively repair the quantum output.
Okay. The first stage is fast repair. Let’s say the quantum output handed us 28 active assets, we need to shed three. The classical algorithm calculates continuous gradients for every asset, instantly measuring how much each one is contributing to the overall cost function.
Yeah,
it identifies the three assets that are providing the least value relative to their risk, and it swiftly deactivates them.
It’s very fast.
And conversely, if the quantum machine only activated 122 assets, the gradient search identifies the three most beneficial inactive assets and turns them on. It essentially violently shves the portfolio until it hits exactly exactly 125.
That’s a good way to put it. And once mathematical compliance is achieved, the pipeline initiates swap local search.
Swap local search.
Yeah, this is a lightweight localized neighborhood search. The classical computer takes one active asset currently in the portfolio and test swapping it with one inactive asset sitting on the bench.
Okay.
If the swap improves the global objective value, meaning the risk-to-re ratio gets better, it makes a change. permanent.
Got it.
If the value degrades, it reverses the swap. It iterates this rapidly to polish the boundaries where the quantum clusters were stitched together.
I really love how this delineates the underlying philosophy of near-term quantum applications.
Yeah,
you know,
so
well, the quantum machine’s job is not to perfectly parallel park the car. Its job is to parachute you into the correct neighborhood.
That is exactly the philosophy.
It bypasses the combinatorial explosion to find the hidden deeply optimized region. of the mathematical landscape that classical computers would just never reach.
Right?
And once you have parachuted into that optimal valley, the classical algorithm takes the wheel to handle the final parallel parking.
It maximizes the strengths of both paradigms. Quantum physics handles the intractable global search and classical gradients handle the rigid deterministic constraints.
Okay, so we have the entire hybrid theory laid out from random matrix theory denoising to greedy hardware sized clustering into the counterdiabetic trap ion engines and finishing with classical gradient repair.
That’s the full pipeline.
But a pipeline is only as good as its real world results.
Very true.
The researchers fed this entire machine historical S&P 500 daily log returns spanning from January 2020 to August 2025. It is time for the showdown.
Let’s hear it.
The 36qit ion Q4 versus the 64bit barium system.
Right. And the physical QAX dictated the initial decomposition capped at 36 quibbits. The cluster algorithm was forced to aggressively fracture the 250 asset universe into 14 distinct sub problems.
Wow, 14. But the 64 kit barium system had far more breathing room.
Much more.
It only required the universe to be chopped into 11 clusters with the largest subpros retaining 41, 55, and 60 assets interacting simultaneously.
Right?
And the empirical data showed that the 64 cubit pipeline systematically dominated the final objective values. It provided demonstrabably better risk return trade-offs compared to the 36 equit setup.
It was a clear winner.
But here’s where it gets really interesting. Both runs utilized the exact same continuous gradient and swap local search at the end. The classical parallel parking was identical. Yes,
but the 64 quibbit initial quantum candidates were just fundamentally superior.
Because if we connect this to the bigger picture, the mechanism behind that superiority becomes really obvious.
Oh
yeah. Every single time the greedy algorithm has to forcefully split a cluster to accommodate the hardware, it takes a knife to the financial web.
It cuts those connections.
It completely severs the coariance relationships between the assets on either side of the cut. The quantum processor simply cannot optimize a relationship it cannot see.
Ah so by expanding the physical quibbit budget from 36 to 64, the computational volume didn’t just increase linearly. The state space grew exponentially.
Exactly.
You provided the quantum system with a vastly richer landscape to explore natively before forcing the knife into the web.
Yes,
the less you artificially fracture the problem, the deeper the quantum computer can see into the global economic structure and the more accurate the neighborhood it parachutes you into.
And that is the true triumph of this paper. It’s the scalability of the architecture.
Scalability, right?
They prove that as the underlying hardware evolves, as laboratories push QAX from 64 to 100 to 200, this exact decomposition pipeline will seamlessly adapt.
So, the forced severing of correlations will naturally shrink.
Exactly. The decomposition error will approach zero and the financial portfolios will continuously improve without requiring a fundamental rewrite of the algorithmic theory.
That is incredible. So, what does this all mean for you, the listener? The resounding takeaway here is that the era of waiting is over.
It really is.
We don’t need a pristine million quibbit error corrected sci-fi processor to extract profound value from quantum mechanics. Clever, highly engineered hybrid pipelines are unlocking that power today.
I know.
By isolating structural mode to strip away market noise, leveraging the alltoall connectivity of trapped ions, driving them with counter diabetic forces and finishing the job with classical gradient repairs.
Researchers are actively solving combinatorial nightmares that classical supercomputers simply cannot touch.
They have established a blueprint for dominating near-term noisy hardware. They aren’t waiting for the future. They are extracting the maximum possible utility from the physics available in the laboratory right now.
Which leaves us with a final provocative thought to mull over. This research proves that simply expanding the quibbit limit from 36 to 64 dramatically improves the final portfolio by reducing our need to aggressively chop up the problem.
Right?
So what happens when that QAX boundary vanishes entirely? Imagine a decade from now when we have machines capable of holding thousands of perfectly entangled quibbits natively. Will that classical cleanup phase, the continuous gradients and local swamps simply become a historical relic of the 2020s?
It’s a great question.
Or Will human ambition naturally scale to meet the new hardware? If we have 10,000 cubits, we won’t be satisfied optimizing 250 stocks. We will aim the machine at the entire global economy, integrating supply chain logistics, shifting climate patterns, and real-time geopolitical data all at once. We may find that no matter how large the quantum hardware grows, our desire to model the complexity of the universe will always exceed it, ensuring we will forever rely on this beautiful hybrid dance between quantum exploration and classical Engineering to bridge the final gap.”