It started with a Marvel question
In Marvel's VisionQuest, Vision appears to host several AI identities, with a quantum computer as the machine underneath. I wanted to know how much of that the mathematics would actually let you keep.
This was not my first time in Qiskit. I started in April 2023 with gates, Bell states and the Bloch sphere. That May I finished all five labs of the IBM Quantum Spring Challenge, and the last one sent a GHZ entanglement job to ibm_sherbrooke, IBM's real 127-qubit processor. Later that year I earned the Quantum Excellence badge at the Qiskit Global Summer School. The tools were familiar. VisionQuest gave me a question worth pointing them at.
So I asked it in the most literal form I could: can superposition let several distinguishable AI personas live in one physical machine, each with its own internal state? The answer splits in two. Superposition really can hold several computations at once. Nothing in physics says those computations are minds, that they experience anything, or that they live in separate worlds.
That still left something I could test. Suppose each branch of a quantum computer runs a different policy, meaning a small rule for making a decision. Does keeping them all in superposition beat the boring option of picking one at random?
Everything below is built from three ideas: a coin, two waves and a diary. One disclaimer before we start: everything in this project ran in a local simulator (Qiskit Aer, on a CPU). It was not validated on real quantum hardware, it claims no speedup, and it has nothing to say about consciousness.
Why Doctor Strange would make a terrible quantum computer
You have probably met Schrödinger's cat, the 1935 thought experiment about a cat that is, on paper, both alive and dead until someone opens the box. A qubit is a better-behaved version of that cat. An ordinary bit is a coin lying on the table: heads or tails. A qubit is more like a coin still spinning, described by how much heads and how much tails it carries at the same time. That is superposition. Slap your hand down and you get one face. That is measurement. Real qubits are not coins, but the picture will carry us a long way.
Now the misconception nearly every movie gets wrong. In Infinity War, Doctor Strange looks through 14,000,605 futures and reports back the one where they win. A quantum computer can hold many branches at once, but it cannot do the part where you look through them all. Measure it and you get one branch, at random. If that were the whole trick, you would have built an extraordinarily expensive random number generator.
The real trick is interference. Branches behave like waves, and waves can add up or cancel out. Noise-cancelling headphones do this every day: they play a copy of the engine hum, shifted so its peaks land on the hum's troughs, and you hear quiet. That shift is called the phase, written φ. A useful quantum algorithm is choreography: the wrong answers are arranged to cancel and the right ones to reinforce, so that the single answer you get to see is probably a good one.
Keep this one in your pocket for later: superposition alone gives you nothing a coin flip could not. Any advantage has to come from interference, and interference needs the branches to meet again.
- The two waves are
- Partly cancelling
- Chance of reading 0
- 21%
The diary problem
The idea this project hangs on is nearly a century old, and it began as an argument. At the 1927 Solvay conference, Einstein challenged Bohr with a thought experiment. Send a particle through two slits and it builds up wave-like stripes on a screen. But what if the slit recoiled slightly, so you could read off which path the particle took? Then you would know its path and still see the stripes. Bohr's reply: a slit light enough to feel that kick has a position too uncertain to keep the stripes sharp. You can have the path or the pattern, and any mix of the two costs you.
Decades later Feynman made it a lecture: shine a light to watch electrons at the slits and the stripes disappear; make your view vaguer and they gradually return. In 1996 Englert wrote down the exact exchange rate: D² + V² ≤ 1. D is how well you can tell the paths apart. V, for visibility, is how tall the stripes are. Whatever you gain in one, you pay for in the other.
Now bring Vision back. Picture two personas sharing one body and give each of them a diary. If the diaries are identical, nobody can tell which persona was in charge, so the two possibilities blend and can interfere. If the diaries are completely different, one peek tells you who it was, and the two possibilities stop interfering.
That is the tension I wanted to measure. Memory is what would make two personas different from each other, and memory is exactly what wears away interference.
An experiment that fits on a napkin
My first design decision was to go small. Running programs in superposition is known physics, so a big circuit with boxes labelled agent would have looked impressive and proved nothing. I wanted the smallest version that could still give a clear answer, and two qubits are enough.
The control qubit is the spinning coin: one face means persona A, the other means persona B. The memory qubit is the diary. A dial called θ sets how revealing the diary is: at 0 it stays blank, and at π it gives the answer away completely. Then I add a phase φ to one branch, let the two branches recombine, and measure the control. Repeat 8,192 times for each setting, count the outcomes, and you have a data point.
There is exactly one formula worth meeting. With the record kept, the chance of measuring zero is [1 + cos(θ/2) cos(φ)] / 2. Think of cos(θ/2) as the volume knob on the stripes. With a blank diary it is at 1 and you get the full wave. With a fully revealing diary it is at 0, and no phase shift can change anything.
The last piece is the strangest. Could you get interference back by destroying the diary? Burning it does not work, because the smoke, the ash and the warmed air still carry the secret. Once a record leaks into the world, the coherence is gone. What does work is uncomputing: running the writing operation exactly backwards, so the ink un-writes itself before any trace escapes. Scully and Drühl proposed the famous version of this, the quantum eraser, in 1982. In my circuit it is one optional gate, and the formula returns to [1 + cos(φ)] / 2 as if the diary had never been written.
First, make it get the known answers right
Before asking anything new, I made the simulator reproduce what physics already knows. If a setup cannot recover a textbook result, any exciting result it produces later is probably a bug.
Eight baseline circuits at 8,192 shots each landed within 0.005981 of theory, against an acceptance bound of 0.03. Exact uncomputation returned a probability of 1.000000 at every tested θ. The full sweep covers 4 values of θ and 17 phases in both memory modes, for 136 records, each with a binomial standard error.
Eight further seeds produced 544 stored-memory records for a likelihood fit. Fitted visibility was 0.999991, 0.868131, 0.503863 and 0.000010, against ideal values of 1, 0.866025, 0.5 and 0. In the figure below, the same diary dial takes the stripes from full height to a flat line.
One honest footnote on the eraser. It restores interference here only because this is a perfectly reversible simulation and nothing has leaked to an environment. It is not a way of undoing an ordinary, irreversible record.
P(control = 0): 8,192-shot simulator runs (dots) against theory (lines)
Then add some grime
Real quantum devices are messy, in the way cheap headphones hiss in the moments they should be silent. So I added an illustrative noise model: 0.5% one-qubit depolarizing error, 1% two-qubit depolarizing error and a 2% readout flip. The peak of the wave fell from 1.0 to 0.981934, and the valley no longer reached zero, sitting at 0.019043. I chose the model to show the mechanism. It is not calibrated to any real device.
θ = 0 fringe under the declared noise model
A choir in soundproof booths
With the physics behaving, I could ask the question I actually cared about. This is where I was strictest about the opponent, because a quantum method looks wonderful when it only has to beat something weak. Three and five controlled-rotation policies went into uniform superposition and tried to solve a two-input binary task, and they had to face every fair classical baseline: random choice, weighted choice, measuring first, and plain majority vote.
The quantum reward was about 0.94 for three policies and about 0.72 for five. Picking one policy at random scored 0.938 and 0.713. Weighted and measurement-first classical strategies matched too. Then simple voting walked past all of them: stochastic majority reached 0.990 and 0.927, and deterministic majority was correct on both designed inputs.
Why? Picture a choir with every singer in a soundproof booth. In principle their voices could combine into something no single singer could produce. But each booth keeps its label, and the judge scores only the final answer, so the voices never actually meet. Nothing interferes, and you might as well have opened one door at random. Formally: for these branch-diagonal policies, the reward depends only on the outcome marginals, and those are identical to a classical mixture's. That is an identity, so no amount of tuning could have rescued this design.
Majority voting wins for a slightly funny reason. A classical computer really can ask everyone and tally the answers. It gets to do the Doctor Strange move that the quantum circuit cannot.
Remember the diaries? Giving each branch a persistent marker qubit made things strictly worse. Circuit depth went from 19 to 23 for three policies and from 70 to 76 for five, with no reward benefit at all. The feature that was supposed to make the personas distinct was pure cost.
K = 3 policies · mean reward
K = 5 policies · mean reward
Why I stopped here
I had set the bar before any of this: go on only for an actual new theorem, algorithm, no-go bound or honestly costed advantage; otherwise pivot or stop. The tempting next move was more agents and longer circuits. That would have produced a bigger picture of the same identity, and an illusion of novelty. This construction is also conventional. Quantum ensembles of classifiers already exist, and Abbas, Schuld and Petruccione had already urged caution about them. So I stopped feature work on this design.
To be precise about the claim: the established physics reproduces, noise degrades it as expected, and this particular quantum arbitration design gives no reward advantage over fair classical baselines. It does not prove a general no-go result for all quantum multi-agent schemes. The diary trade-off limits the interference you can read directly from the label. It does not forbid agents with memory, on quantum computers or anywhere else.
All 216 records regenerate from a single command, and 13 automated tests guard the theory, circuits and simulation. The code and results are available on request.
The door I left open
The failure did point somewhere. My design asked the personas for an answer and combined them. What if the machine instead has to remember several things, and only later finds out which one you will ask about?
Think of an exam where you may bring one tiny cheat sheet covering two facts, and the examiner picks which fact to test after you have written it. With one classical bit, the best you can do is 75%. With one qubit, you can reach about 85.4%, because the two facts are stored along two directions and the examiner's choice decides which direction you read. This is a known result called a quantum random access code. It is not mine, and I have not tested it in this project.
Notice what it does not need: no voting, no personas, no free parallelism. Whether a version with several policies and changing memory contains anything new is an open question that would need a real literature review and a proof. If it reduces to known results, it stays in my notes.
So, can several minds share one quantum computer and gain from it? Not this way. The experiment did teach me where to look for a real gain: in what you can extract from a quantum state, and not in how many labels you can put on its branches.