WorksPhysics and Astronomy
Spacetime Sentinels: a Qiskit game that exposes the competition between spacetime checks and magic in low-overhead quantum error detection
Abstract
We present Spacetime Sentinels, a game in which the player protects a noisy circuit with spacetime Pauli checks and is scored on the post-selected fidelity and the fraction of shots that survive, with every number computed in Qiskit. The player spends a budget of ancilla qubits on checks found by the qiskit-paulice add-on, must inject a quota of gates into the protected circuit, and chooses whether to place them where they commute with every check or to ignore the checks. Each move is evaluated exactly with Qiskit Aer density-matrix simulation against a stabilizer or statevector reference, and the evaluation agrees with 50,000-shot runs of the SamplerV2 primitive. We score moves with a fidelity rate , whose inverse square is the sampling overhead of detection followed by rescaling. Exhaustive evaluation of all 5,412 legal moves under two noise models, together with sweeps over five random payloads, reveals three trade-offs that are not obvious before playing. Checks pay for themselves only above a break-even depth: at depth 6 adding checks lowers , while at depth 18 the best number of checks raises it by a factor of 1.103 and lifts the fidelity from 0.629 to 0.886. gates add no noise on hardware, yet each check removes spacetime locations where a gate can be placed safely, from all 90 at depth 18 with no checks to about 14 with four, so the optimal number of checks falls as the magic quota grows. Finally, a check broken by a gate is worse than no check: with sixteen gates at depth 18, blind placement lowers the post-selected fidelity to 0.158, and retiring the broken checks lowers it further to 0.102, below the 0.628 of the unprotected circuit. The game runs in the browser and in the terminal, and all code and data are open source.
Introduction
Students usually meet quantum error correction as a list of facts: a code is a subspace, a stabilizer is a Pauli operator, a syndrome is a bit string, and a decoder turns the bit string into a correction. The facts are correct, but they hide the part that makes fault tolerance hard in practice, namely that every protective measure is itself built out of noisy gates and has to pay for itself. The question posed by the Qiskit Fall Fest 2026 challenge [1] is how to let a student feel that tension directly. Our answer is a game in which every move is a design decision about a real error-detection scheme and every score is the outcome of a Qiskit simulation of that scheme.
The scheme is low-overhead error detection with spacetime codes [2], available in Qiskit as the qiskit-paulice add-on [3, 4]. A spacetime check is a single ancilla qubit that touches one target qubit of a Clifford circuit at several moments, applying a controlled Pauli each time, and is then measured. Combined with the parity of some output bits, the ancilla outcome is deterministic on an ideal run. A non-trivial outcome therefore flags an error, and the shot is discarded. The construction descends from coherent Pauli checks [5] and coherent parity check codes [6, 7, 8], but it spreads each check over time instead of measuring a heavy operator at one instant, which keeps it compatible with sparse hardware connectivity. IBM has used the same idea to sample from a 64-qubit, depth-73 Clifford circuit doped with 314 gates while certifying a lower bound on fidelity [9, 10].
Where does such a scheme sit? Following the distinction drawn in the challenge text and in Ref. [11], error detection flags the errors its checks can see and throws those shots away. It does not repair the state, and errors that the checks cannot see go through untouched. Error mitigation leaves the hardware as it is and corrects the estimate of an observable in post-processing, at the cost of extra circuits and shots [12]. Error correction encodes logical qubits in many physical qubits, measures stabilizers repeatedly and uses a decoder to undo errors while the computation runs [13, 14, 15, 16]. Our game lives entirely in the first category. The player never corrects anything; the only currency is the fraction of shots that survive post-selection.
Design goal. The challenge asks for a game whose rules correspond to the decisions of the error-detection workflow and whose score comes from computed numbers, not from hand-set values. We add two requirements of our own. First, the game should contain at least one trade-off that a strong student would not guess before playing. Second, the numbers behind the game should be good enough to stand as a small research study: exact where possible, validated against shot-based sampling, and averaged over several random circuits.
Contributions.
A game whose rules are the physics. Spacetime Sentinels asks the player to spend an ancilla budget on spacetime checks, to inject a quota of gates, and to choose how the gates are placed relative to the checks. The rule-to-physics map is given in Table I. The game runs in the browser and in the terminal.
Every score from Qiskit. Checks are found with
add_pauli_checks, ideal states come from stabilizer or statevector simulation, and noisy post-selected states come from exact Qiskit Aer density-matrix simulation. We evaluated all 5,412 legal moves of the game under two noise models, one taken from the challenge text and one derived
from the calibration data of a Heron backend.
A principled score. We combine post-selected fidelity and kept fraction into a fidelity rate . For this is the signal-to-noise ratio per square root of a raw shot, and is the sampling overhead of detection followed by rescaling.
Three non-obvious findings, backed by numbers. (i) Checks do not pay for themselves on shallow circuits; there is a break-even depth. (ii) gates are free on the hardware but expensive for the code: every check removes the spacetime locations where a gate can be placed without breaking a check, so protection and magic compete for the same wires. (iii) A check broken by a gate is worse than no check at all, and it keeps hurting even after the player stops listening to it.
Related games. Litinski’s A Game of Surface Codes [17, 18] turns lattice surgery into a board game with explicit space and time costs, and was the template for our spacetime board. Quantum Poker [19] uses a game to benchmark error mitigation, Decodoku and its genetic-algorithm solver [20, 21] turn decoding into a puzzle, and Ref. [22] uses game theory to search for codes. To our knowledge no existing game is built on error detection with spacetime codes, nor on the interplay between check placement and non-Clifford doping.
Background
Stabilizers, syndromes and post-selection
An -qubit Clifford circuit applied to prepares a stabilizer state , the unique joint eigenstate of the abelian group of Pauli operators [23]. Such states can be simulated efficiently [24], which is why Clifford circuits are the natural playground for error detection: we know, at every point in the circuit, which Pauli operators should have a definite value. Measuring one of them and finding the wrong value reveals that an error occurred. A collection of such measurements produces a syndrome bit string ; error detection keeps a shot only if . If is the noisy state of the data and the ancillas and the projector onto a trivial syndrome, the kept fraction and the post-selected state are
Detection improves the fidelity of with the ideal state at the price of a smaller . A post-selected fidelity is meaningless without its kept fraction, and we never report one without the other.
Spacetime Pauli checks
A spacetime check [2] uses one ancilla, prepared in , which applies controlled Pauli gates to a single target qubit at wires (moments) of the payload, after which the ancilla is rotated back with a Hadamard and measured. Let denote propagated backwards from wire to the start of the circuit. The check is valid if belongs to the stabilizer group of the input, up to a Pauli on output qubits that it is read out classically: the syndrome bit is then the parity of the ancilla outcome and of the output bits in the support . Equivalently, one can follow the flow of the check forward through the circuit. Between two consecutive controlled gates the ancilla is entangled with a Pauli operator on the data, and a fault at spacetime location flips the syndrome exactly when anticommutes with . Wires where is the identity are not monitored at all; wires where acts as on a qubit catch and errors there, and so on. The art is to find checks that are valid, use few entangling gates, and cover the faults that matter. qiskit-paulice [3] searches for such checks one target at a time and scores candidate check sets by , the sampling overhead of inverting the noise channel left uncovered by the checks. A value means all modelled noise is detectable.
Coherent Pauli checks [5] measure a single, generally high-weight operator at one time. On hardware with limited connectivity this costs many SWAP gates. Spreading the check over time, as above, needs only couplings between the ancilla and one neighbouring target, which is what makes the scheme low overhead [2, 4].
Magic, and why gates are special
Clifford circuits are classically simulable, so a useful quantum computation needs a non-Clifford resource, conventionally the gate [25]. add_pauli_checks only accepts Clifford circuits, so gates must be added after the checks are found. Because is diagonal, , while is not a Pauli operator. This gives the rule stated in the challenge and used by Martiel et al. [9]:
Lemma 1 (Doping rule). Let a set of checks be valid for a Clifford circuit, and insert a gate on qubit at spacetime location . If, for every check, the flow operator acts on as or , all checks remain valid. If some check has acting on as or , that check is in general no longer valid.
Proof. If acts as or on then , so the flow of the check after , and therefore the deterministic ideal value of its syndrome, is unchanged. If acts as or , then is a superposition of two Pauli operators that differ on , so the flow does not close onto a stabilizer and the ancilla outcome becomes random on the ideal circuit.
A convenient way to find the safe locations is to ask where a single error would be invisible to every check: those are exactly the locations where every flow acts as or . qiskit-paulice reports them through CheckedCircuit.uncovered_paulis. We call them -safe sites. A second hardware fact matters here. On IBM processors rotations, and therefore gates, are implemented as virtual frame changes and add no error [26]. The count of a circuit thus costs nothing in noise, but, by Lemma 1, it can cost a great deal in detection power. This asymmetry drives the central trade-off of our game.
Toward fault tolerance
The guiding question of the challenge is what fault tolerance is and what it needs [27]. A fault-tolerant computer must keep the error rate of every logical operation below a target while the computation runs, which requires codes with growing distance, repeated syndrome extraction, fast decoding, and a supply of high-fidelity magic states [14, 16, 25, 28]. Spacetime detection gives up on the first three and asks a more modest question: how much of today’s noise can a handful of ancillas catch in one shot? It is a stepping stone that already exposes two of the hard parts of fault tolerance, namely that protection costs qubits, gates and time, and that non-Clifford resources do not sit comfortably inside a stabilizer code.
The game
Board and moves
The board (Figure 1) is the spacetime diagram of the payload: six horizontal wires for the data qubits and one column per layer of CZ gates. A level fixes the depth (6, 12 or 18 layers), the magic quota (0, 1, 2, 4, 8 or 16 gates) and the noise model. The player then makes three decisions, which are precisely the decisions of steps 3 and 6 of the challenge workflow:

Figure 1. The web game during a deep level (18 CZ layers, quota of 4 gates). Sentinels are posted on three qubits; teal probes show where each check touches its target, green and red squares mark Z-safe and covered sites, gold diamonds are the placed gates, and the right panel shows the Qiskit result of the move. The lower panel plots every legal move of the level.
Post sentinels.: Clicking a qubit label posts a sentinel there: one ancilla that will carry one spacetime check targeting that qubit. The ancilla budget is four. add_pauli_checks then decides the Pauli types and the moments at which the check touches its target, and the board draws them as teal probes.
Inject magic.: The quota of gates must be placed. After sentinels are posted, every candidate site is painted green (Z-safe for all checks) or red (covered by an X or Y part of some check flow).
Choose a placement policy.: Safe zones puts the gates on green sites only, following a fixed random order; if fewer green sites exist than the quota, the move is illegal. Blind places them on the first sites of the same order, ignoring the checks. Blind and retire uses blind placement but stops post-selecting on any check that the gates have broken.
Pressing Run reveals the four stages of the pipeline required by the challenge (payload, spacetime checks, ancilla readout, post-selection filter) together with the fidelity without checks , the post-selected fidelity , the kept fraction , the cost of the checks (ancillas, extra two-qubit gates, two-qubit depth) and which checks, if any, were broken.
Score
The score is with the fidelity rate
The exponent is the price of a discarded shot and is a slider in the game. Its default value has an operational meaning. Suppose the error left after post-selection damps a traceless observable by the factor , as a depolarizing residual channel would, and suppose we run shots and keep . The estimate of obtained by rescaling the post-selected mean by has a standard error of roughly , so reaching a precision requires
Hence is the signal-to-noise ratio per square root of a raw shot, and is the total sampling overhead of detection followed by a rescaling step, which is the detection-plus-mitigation workflow suggested in the qiskit-paulice documentation [3]. Without checks the same argument gives , so the ratio tells the player whether the sentinels beat doing nothing. The two extremes are also meaningful: rewards purity regardless of cost and rewards the yield , which, for valid checks, can never exceed the fidelity of the unpost-selected checked circuit. A move earns one star if it beats the unprotected circuit, two if it wins 2% of the best legal move of the level, and three if it is the best.
Rule to physics
Table 1 lists every rule and the physics it stands for. Two design choices deserve comment. We let qiskit-paulice choose the internal structure of each check rather than letting the player draw controlled-Pauli gates by hand, because a hand-drawn check is almost always invalid and the resulting game would be about bookkeeping rather than about trade-offs. The spatial choice (which qubits carry an ancilla) and the interaction with the gates remain with the player, and those are the choices that matter. Second, the game keeps the bad options. Blind placement and retiring broken checks are legal because players should discover for themselves, with real numbers, why they are bad.
| Game element | Physics | Computed by |
| Qubit wire, CZ column | Data qubit, layer of a brickwork Clifford payload | QuantumCircuit |
| Sentinel post (budget 4) | One ancilla and one spacetime check targeting that data qubit | add_pauli_checks (gamma, windowed) |
| Teal probes on a wire | Moments at which the check applies a controlled Pauli to its target | checked circuit |
| Syndrome parities at readout | Output bits XORed with the ancilla bit to form the syndrome | check_support |
| Green / red site | Every check flow acts as there ( is safe) / some flow acts as | uncovered_paulis |
| Magic quota | Number of non-Clifford gates in the payload | inserted after check search |
| Safe zones / Blind / Retire | Doping policy; a on a red site breaks a check (Lemma 1) | noiseless Statevector test |
| Run | Noisy execution with ancilla readout and post-selection | Aer density matrix, exact |
| , , | Fidelity with the ideal state, without and with post-selection; kept fraction | stabilizer or statevector reference |
| Score , stars | Fidelity rate, Eq. (2); comparison with every legal move | sentinels.scoring |
Table 1. Game rules and the physics they represent. All quantities are computed with Qiskit; none is hand-set.
Implementations
The web version, published with GitHub Pages at https://sumitchongder.github.io/spacetime-sentinels/, is a static page that plays back the Qiskit results for every legal move of every level, so it runs instantly on any device. Each level also shows the full trade-off map of the level, every legal move plotted as against with curves of constant , and reveals the optimum after the player has committed.
The terminal version, sentinels play, computes the chosen move live with qiskit-paulice and Qiskit Aer, and a notebook walks through the six steps of the challenge.
Methods
The numbered paragraphs below follow the six required steps of the challenge.
Step 1: payloads. The Clifford payload is the one-dimensional brickwork used in the IBM tutorial [4]: a layer of Hadamards on qubits followed by layers, each made of CZ gates on alternating nearest-neighbour pairs and a random choice of , , on every qubit. We use , 12 and 18, giving 15, 30 and 45 CZ gates, a width of six qubits and a two-qubit depth equal to (Table II). Every CZ gate defines two candidate sites, one on each of its qubits immediately after the gate, so the three payloads offer 30, 60 and 90 sites. The -doped family places gates on these sites. The game uses payload seed 7; the study in Sec. V repeats every experiment for five seeds (7, 11, 13, 17, 19).
Step 2: reference and fidelity measure. For the Clifford payload the ideal output is obtained by stabilizer simulation (StabilizerState); for -doped payloads by statevector simulation (Statevector), which is exact and cheap at six qubits. We use the state fidelity of the post-selected data register,
because it is sensitive to every error, including phase errors that any computational-basis distance misses. This matters here: the brickwork payloads have nearly flat output distributions, and for the deep Clifford payload of the game the classical (Hellinger) fidelity of the noisy output is 1.000 while its state fidelity is only 0.637. For Clifford states we evaluate through the identity , which is the direct fidelity estimation measures [29, 30], and check that it agrees with the statevector overlap to machine precision.
One technical point needs care. A syndrome bit is the parity of an ancilla outcome and of some output bits. In an experiment the parity is computed classically after all qubits are measured, so the post-selected object is a distribution, not a state. In simulation we obtain the corresponding state by computing the parity coherently: after the readout channel we apply noiseless CNOT gates from the output qubits in the support onto the ancilla, so that the ancilla holds the syndrome. These gates act after all noise and are diagonal on the data, so every computational-basis statistic, including and the post-selected distribution, is identical to the experiment. The data state of Eq. (1) is then well defined, and on an ideal run with valid checks exactly. Simply tracing out the ancillas without this step would dephase the data in the eigenbasis of and make even a perfect run look unfaithful.
Step 3: checks. Checks are found with qiskit-paulice 0.2.1, add_pauli_checks with cost="gamma", method="windowed" and seed=1, the deterministic setting recommended by its documentation. The payload, terminated by measurements, is passed with the chosen target qubits in increasing order; each target receives its own ancilla. The function returns one circuit per number of checks, which we use in Sec. V; for the game each target set is a separate call. The checked circuit is re-synthesised by the add-on and may reorder commuting CZ gates, so we match payload gates by their position along each wire, and we
| shallow | medium | deep | |
| CZ layers | 6 | 12 | 18 |
| Width (data qubits) | 6 | 6 | 6 |
| CZ gates | 15 | 30 | 45 |
| Candidate sites | 30 | 60 | 90 |
| , Clifford, QFF noise | 0.828 | 0.722 | 0.637 |
Table 2. Payloads. The two-qubit depth of the checked circuit depends on the checks and is reported with every result.
obtain the unprotected reference circuit by deleting all ancilla gates, which leaves data gates that compose to the original payload (verified in the test suite). For -doped payloads the add-on cannot be called. We use the checks found on the Clifford skeleton and apply Lemma 1: a site is Z-safe if uncovered_paulis lists a Z error there. Independently of that list, we test every doped circuit by statevector simulation without noise, and declare a check broken if its syndrome is non-zero with probability above . All safe-zone moves pass this test with false-alarm rates that vanish to numerical precision.
Step 4: noise. The challenge suggests the synthetic model NoiseModel(gate_noise=0.01). Our main profile, QFF synthetic, is exactly that for the check search, and the same channel for simulation: a two-qubit depolarizing channel with after every CZ, payload or check, and a symmetric readout flip with on every qubit. Single-qubit Cliffords and gates are noiseless, the latter because they are virtual on IBM hardware [26]. A second profile, FakeFez, follows the tutorial and derives a uniform model from backend calibration data, NoiseModel.from_backend(FakeFez(), layout, uniform_gate_noise=True), giving and . Idling noise is ignored in both, as it is in the current check picker. Using the same channel for picking and for simulating matches the tutorial, so the checks are tuned to the noise they face. If the organisers announce a different model, the whole pipeline is re-run with one command.
Step 5: measurement. For every configuration we run two exact Qiskit Aer density-matrix simulations: the checked circuit with its ancillas, which gives and , and the unprotected circuit with the same gates, which gives . We record the ancilla count, the number of extra two-qubit gates and the two-qubit depth with and without checks, the cost, the number of Z-safe sites, the broken checks and the classical fidelity. Exact simulation removes shot noise, so two moves that differ by a fraction of a percent can be ranked reliably. During testing we found that noiseless density-matrix runs disagreed with Statevector by up to when Aer’s gate fusion was on; with fusion off the agreement is , so fusion is disabled throughout.
Validation. Exact numbers are only useful if they describe what an experiment would see. We therefore re-ran twenty configurations, covering both noise models, all three depths, Clifford and doped payloads and all three placement policies, through the Qiskit Aer SamplerV2 primitive with 50,000 shots each, computing syndromes from the measured bits exactly as one would on hardware. The largest deviation of the kept fraction from the exact value is 1.4 standard errors and the largest deviation of the classical fidelity is 0.011 (Figure 2).
Figure 2. Exact density-matrix numbers against 50,000-shot runs of the Aer SamplerV2 primitive, for twenty configurations and both noise models. Error bars are two standard errors.
Step 6: comparison and search. The decision space of the game is small enough to enumerate: 57 target sets with at most four checks, five non-zero quotas with three policies each, three depths and two noise models, 5,412 moves in total. We evaluated all of them. The research experiments add check-count sweeps with up to six checks (E1), -count sweeps up to 16 gates (E2), magic capacity for all 64 target sets at four depths (E3), a sweep of the noise strength from to (E5) and an ablation with noisy gates (E7), each over several payload seeds. Error bars show the standard deviation over seeds.
Software and compute. Qiskit 2.5.2, Qiskit Aer 0.17.2, qiskit-paulice 0.2.1, qiskit-ibm-runtime 0.50.0 (fake backends only) and Python 3.13. Every number in this report was produced on a two-core laptop-class machine; the full sweep of the game took about 53 minutes per noise model. The configuration-level parallelism is exposed through a process pool and through Slurm array scripts, and Aer can be switched to GPU execution for larger studies.
Results
Unless stated otherwise, results use the QFF synthetic noise model and are averaged over five random payloads; error bars are standard deviations over payloads. Numbers quoted for “the game” refer to the single payload (seed 7) that the game uses.
Validation
Figure 2 compares the exact evaluation with 50,000-shot SamplerV2 runs for twenty configurations. The kept fractions agree within 1.4 standard errors in the worst case, and the classical fidelities of the post-selected distributions agree to within 0.011. Noiseless runs confirm that every check found by qiskit-paulice, and every check after safe-zone doping, has a false-alarm rate that is numerically zero (below in all 5,412 moves), while each check broken by blind doping fires on perfect runs with probability between 0.15 and 0.69 (median 0.25). For Clifford payloads the stabilizer-group identity and the statevector overlap give the same to within .
How many checks? A break-even depth
Figure 3 follows one call of add_pauli_checks that commits checks on qubits 0 to 5 one at a time. More checks always raise the post-selected fidelity and always lower the kept fraction, as expected. The interesting quantity is the gain in fidelity rate, . At depth 18 the fidelity rises from 0.629 without checks to 0.886 with the best number of checks () while 0.612 of the shots survive, a gain of 1.103. At depth 12 the best gain is 1.037 (). At depth 6 no number of checks beats the unprotected circuit in this sweep: one check already gives , and every further check lowers the rate. Choosing the targets carefully helps only a little; the best move in the game’s shallow Clifford level, checks on q0,q4, gains a factor of 1.018 (Table III).
| checks, placement | () | ||||
| 6 | 0 | , Clifford | 0.828 | 0.914 (0.851) | 1.018 |
| 6 | 1 | , safe | 0.828 | 0.914 (0.851) | 1.018 |
| 6 | 2 | , safe | 0.828 | 0.914 (0.851) | 1.018 |
| 6 | 4 | , safe | 0.832 | 0.914 (0.851) | 1.013 |
| 6 | 8 | , safe | 0.831 | 0.911 (0.851) | 1.011 |
| 6 | 16 | , safe | 0.833 | 0.911 (0.851) | 1.009 |
| 12 | 0 | , Clifford | 0.722 | 0.896 (0.750) | 1.074 |
| 12 | 1 | , safe | 0.722 | 0.896 (0.750) | 1.074 |
| 12 | 2 | , safe | 0.722 | 0.896 (0.750) | 1.074 |
| 12 | 4 | , safe | 0.722 | 0.894 (0.750) | 1.072 |
| 12 | 8 | , safe | 0.722 | 0.894 (0.750) | 1.073 |
| 12 | 16 | , safe | 0.722 | 0.895 (0.750) | 1.074 |
| 18 | 0 | , Clifford | 0.637 | 0.910 (0.615) | 1.119 |
| 18 | 1 | , safe | 0.637 | 0.909 (0.615) | 1.119 |
| 18 | 2 | , safe | 0.634 | 0.910 (0.615) | 1.126 |
| 18 | 4 | , safe | 0.632 | 0.910 (0.615) | 1.130 |
| 18 | 8 | , safe | 0.629 | 0.910 (0.615) | 1.135 |
| 18 | 16 | , safe | 0.629 | 0.863 (0.666) | 1.120 |
Table III. Best move of each level of the game (payload seed 7, QFF synthetic noise, ). .
The reason is a budget argument. A check adds two to five CZ gates, each of which can fail with probability , and it can only catch errors that occur on the wires its flow monitors. On a shallow circuit there are few errors to catch, so the check’s own gates are a large fraction of the total noise, and most of what the extra checks catch are errors that the checks themselves introduced. As the circuit gets deeper the payload contributes more and more of the noise, and the same ancilla becomes a better investment. The game makes this visible: in the shallow levels the best possible score is barely above the score of posting no sentinel at all, and most moves score below it.
T count against check placement
Figure 4 is the central result. A fixed set of three checks (on qubits 0, 2 and 4) protects payloads doped with up to 16 gates, placed with each of the three policies. Without checks, the gates barely change the fidelity: at depth 18 moves from 0.629 with no gate to 0.628 with sixteen, because the gates themselves are noiseless and only slightly change how the existing errors propagate. With safe-zone doping, the post-selected fidelity and the kept fraction are flat as well: the checks see exactly the same faults whether or not the gates are present, which is the invariance exploited in Ref. [9]. The largest drop in between the Clifford circuit and its 16- safe-zone version is 0.004, the footprint of errors that were harmless before doping and are harmful after it.
Blind doping tells a different story. Each that lands on a wire where some check flow acts as or breaks that check. With only four gates at depth 18, blind placement breaks on average 2.4 of the three checks. A broken check fires on perfect runs, so post-selecting on it throws away good shots: at depth 18 with 16 gates, the kept fraction falls to 0.174 and the post-selected fidelity to 0.158, against 0.604 and 0.892 with safe-zone doping. Post-selecting on a broken check is a projection onto one eigenspace of an operator that no longer stabilizes the ideal state, and that projection rotates the state away from the target.
The third policy is the one most players reach for: if a check is broken, stop listening to it. This is worse still. With 16 gates at depth 18 the fidelity of blind doping with retirement is 0.102, below the 0.628 of the circuit with no checks at all. The ancilla of a retired check is still entangled with the data through a flow that no longer closes, so discarding its outcome amounts to measuring a non-stabilizer Pauli operator and forgetting the result. That is a dephasing channel on the data, and it destroys exactly the coherence that the gates were meant to create. A broken check cannot be switched off after the fact; it has to be removed from the circuit or never broken in the first place.
Magic capacity: protection and magic compete
If safe-zone doping is free, why not always use it? Because the safe zones shrink as checks are added. Figure 5 counts the -safe sites for every one of the 64 target sets at four depths. At depth 18 all 90 sites are safe without checks; with two checks 29.4 remain on average, with four 14.3, and with six only 7.4. A check is useful precisely because its flow acts as or on many wires, where it catches errors, and those are exactly the wires where a gate would break it. Protection against phase errors and room for magic are two uses of the same spacetime, and one can only be bought at the expense of the other.
Figure 5. Magic capacity. Left: number of Z-safe sites against the number of checks, averaged over all target sets of that size and five payloads (log scale; dashed lines mark demands of 4, 8 and 16). Right: the same as a fraction of all sites.
In the game this shows up as illegal moves. Across all levels 25 moves are illegal because there are fewer safe sites than gates to place, all of them in the levels with 16 gates. The optimum moves accordingly. In the game’s deep level, the best move with up to eight gates uses three checks (q0,q3,q4), while with sixteen gates the best move drops to q2,q3: one fewer check, to free enough safe sites for the magic. The gain falls from 1.135 to 1.120. This is the non-obvious trade-off asked for by the challenge in its plainest form: the right number of checks depends on how much magic the circuit carries.
The best trade-off, and why it wins
Table III lists the best move of every level of the game under the default shot price . Three features stand out. First, the winning moves never use blind doping when the quota is four or more: as soon as a check can be broken, protecting it pays more than any extra coverage. Second, the winning moves use two or three checks, never four. The fourth check adds gates for little extra coverage, the same diminishing return seen in the cost and in Figure 3. Third, which qubits are guarded matters almost as much as how many. With two checks on the deep payload the gain ranges from 1.062 to 1.106 depending on the targets (Figure 7). The cost used by qiskit-paulice ranks checks for a fixed target, but it does not choose the targets; the player does, and a poor choice of targets can waste most of the benefit.
Figure 3. Post-selected fidelity, kept fraction and fidelity-rate gain against the number of checks committed by add_pauli_checks (targets 0 to 5 in order), for three depths. Five payloads; error bars are standard deviations. The dotted line marks break-even.
Figure 7. Check location. Fidelity-rate gain of every target set with checks on the Clifford payloads of the game.
Why does the deep, four- winner (q0,q3,q4, safe zones) win? It raises the fidelity from 0.632 to 0.910 while keeping 0.615 of the shots. Its three checks sit on qubits whose flows overlap little, so together they cover a large share of the two-qubit faults, and the rejection rate is close to the probability that a fault occurred at all. Adding a fourth check would catch fewer new faults than its own gates create, and any extra check would also remove safe sites. The move sits on the Pareto front of the level (Figure 6), at the point where the curve of constant touches it.
Figure 6. Left: every legal move of the game’s deep level with four gates. Lines are curves of constant through the best move (star) and at 90% and 80% of it. Right: number of checks in the winning move against the shot price , for Clifford payloads (solid) and 16 gates (dashed).
The shot price changes the answer (Figure 6, right). At , where only purity counts, the best move uses all four checks at every depth; at , where every discarded shot counts fully, it uses none. The default is the only one of the three with an operational meaning (Sec. III B), and it is the one in which spacetime detection is worth something on deep circuits and nothing on shallow ones.
Noise strength, noise model and noisy gates
Figure 8 sweeps the two-qubit and readout error together from to , re-picking the checks at every point. With four checks at depth 18 the gain grows from 1.009 at to 1.177 at . At depth 6 it stays below one at every noise level and even falls, from 0.997 to 0.906, because the checks’ own gates get noisier along with everything else. Detection is most useful exactly when the circuit is too noisy to run well without it, and only when the circuit is deep enough for the payload to dominate the noise budget.
Figure 8. Fidelity-rate gain against the two-qubit (and readout) error rate, for two and four checks at three depths. Checks are re-picked at every noise level.
Figure 4. count against check placement. Top: post-selected fidelity (or without checks); bottom: kept fraction; columns: depth 6, 12, 18. Checks on qubits 0, 2, 4. Safe-zone doping (teal) is flat; blind doping (red) breaks checks; retiring broken checks (purple) is worse than having no checks (grey).
With the noise model derived from FakeFez calibration data, whose two-qubit error is about half that of the synthetic model, the same picture holds at smaller scale (Figure 9): the best gain is 1.060 at depth 18 with and 1.015 at depth 6. Finally, if gates were not virtual but carried a depolarizing error of 1%, the count would also lower the raw fidelity, from 0.721 to 0.640 at depth 12 (Figure 10). A gate sits on a Z-safe site, where every check flow acts as or , so the part of its error is invisible to all checks and, wherever no flow passes, so is the rest. The post-selected fidelity therefore falls as well, from 0.890 to 0.837. Safe sites are safe for the checks, not for the gates.
Figure 9. Best gain per number of checks for the two noise models (Clifford payloads of the game).
Figure 10. Ablation with noisy gates (depth 12, safe-zone doping). Dotted: no checks; solid: three checks.
Discussion
What the game teaches
The challenge lists four learning outcomes. The first, telling detection, mitigation and correction apart, is built into the rules: nothing in the game repairs a state, the only lever is which shots to keep, and the score itself (Sec. III B) is the overhead of detection followed by a mitigation-style rescaling, so the player sees where one ends and the other begins. The second, stabilizers and syndromes, appears in the probes and the syndrome parities drawn on the board and, more usefully, in the consequences of breaking them. The third, what makes practical quantum computing hard, is the content of our three findings: protection is made of the same noisy gates it protects against, it only pays above a break-even depth, and it collides with the non-Clifford resources that make a computation worth doing. The fourth, building on existing methods, is what the game asks of the player when choosing between safe and blind doping, which is the construction behind a recent fidelity-certified sampling experiment [9].
We find it useful that the bad options remain legal. A student who retires a broken check expects to recover the unprotected fidelity and instead lands below it. That surprise is the quickest route we know to the idea that an ancilla is not a passive observer: once it has interacted with the data, ignoring it is a choice with physical consequences.
Relation to fault tolerance
The guiding question asks what fault tolerance is and what it needs. Our results give a small-scale view of two of its requirements. The break-even depth is the detection analogue of a threshold: protection pays only when the errors it can catch outnumber the errors it introduces. The magic capacity is a toy version of a central difficulty of fault-tolerant architectures, where codes that protect Clifford operations transversally cannot do the same for gates, which must instead be supplied through costly magic-state factories [25]. Here the conflict appears in its simplest form, as competition for wires, but the lesson carries over: the non-Clifford part of a computation does not fit comfortably inside a stabilizer code, and the cost of fitting it has to be planned for.
Limitations
We list the limitations we are aware of, because they bound what the numbers can be used for.
Size. Six data qubits and at most four checks per move (six in the check-count study) keep every move exactly simulable. The qualitative trends were stable across five payloads and two noise models, but the absolute gains are specific to this size; the tutorial and Ref. [9] work at 12 to 76 qubits.
Noise model. Uniform depolarizing gate noise and symmetric readout flips, with no idling noise, crosstalk or leakage. Idling noise is also ignored by the current check picker, so the checks are optimal only for the model they were picked with.
Coherent parity. The parity of output bits is computed coherently in simulation to define a post-selected state. It reproduces all computational-basis statistics of the experiment, but the state fidelity it defines is not directly measurable on hardware without per-stabilizer checks as in the tutorial [4].
Scope of the player’s choices. The player chooses where checks go and how gates are placed, not the internal structure of each check, which
qiskit-paulicdecides. A version in which players draw their own controlled-Pauli gates would teach more about validity and less about trade-offs.
Playback. The web version plays back results computed in advance with Qiskit for every legal move. This is a deliberate choice that lets the game run on any device; the terminal version computes moves live.
No hardware run. Everything runs on Qiskit Aer, as the challenge allows. The pipeline accepts any backend noise model and the shot-based path uses the same primitives interface as hardware execution.
Future work
Three extensions follow directly. A check-aware doping optimiser could choose positions that keep the most coverage for a given magic budget, turning the capacity curve of Figure 5 into a design tool. A multiplayer mode in which one player places checks and another places gates would make the competition between protection and magic explicit, in the spirit of the game-theoretic approach of Ref. [22]. Finally, the same scoring can be applied on hardware with NoiseLearner-based noise models and larger payloads, where the absolute gains reported by Ref. [2] are much larger than ours.
Conclusion
Spacetime Sentinels turns low-overhead error detection with spacetime codes into a game whose every rule is a decision of the real workflow and whose every score is a Qiskit result. Playing it, and the study behind it, show three things that are easy to state and hard to guess: spacetime checks only pay above a break-even depth; gates cost nothing in noise but compete with checks for the same spacetime, so the right number of checks depends on the amount of magic; and a check broken by a gate is worse than no check, even when ignored. The code, data, notebook and game are open source, and every figure in this paper can be regenerated with one command.
Acknowledgments
We thank the organisers of the Qiskit Fall Fest 2026 at IIT Jodhpur, Wenyu Sun for the challenge prompt, and IBM Quantum for qiskit-paulice, Qiskit and Qiskit Aer, and for the tutorials and Qiskit Global Summer School material [31, 32] that the challenge builds on.
Author contributions
S. T. C. and A. K. contributed equally. Both authors designed the game, developed the software, ran the experiments, analysed the results and wrote the report.
Use of AI tools
In line with the hackathon rules, we disclose that an AI assistant (Claude, by Anthropic) was used during this project to help write and refactor code, generate plotting and documentation boilerplate, and edit the wording of the report. The authors chose the problem framing and game design, verified the physical arguments, ran and inspected all experiments, and checked every number reported here against the generated data. All responsibility for the content rests with the authors.
Code and data availability
All source code, raw and processed data (every evaluated move, as JSON and CSV), the scripts that regenerate every figure and number in this paper, a reproducible notebook, and the report and slides are openly available at https://github.com/Sumitchongder/spacetime-sentinels under the Apache 2.0 licence. The game can be played in any web browser at https://sumitchongder.github.io/spacetime-sentinels/. Open-source software used: Qiskit, Qiskit Aer, qiskit-paulice and qiskit-ibm-runtime (Apache 2.0), NumPy and Matplotlib.
References
- [1]W. Sun, QTF 2026 hackathon: Gamifying error detection and correction, Qiskit Fall Fest 2026, provided by IBM Quantum (2026).
- [2]S. Martiel and A. Javadi-Abhari, Low-overhead error detection with spacetime codes (2025), arXiv:2504.15725 [quant-ph].arxiv.org/abs/2504.15725
- [3]IBM Quantum, qiskit-pauliice: spacetime Pauli checks for Clifford circuits, version 0.2.1, https://quantum.cloud.ibm.com/docs/en/addons/qiskit-addon-pauliice (2026).
- [4]IBM Quantum, Low-overhead error detection with spacetime codes (tutorial), https://quantum.cloud.ibm.com/docs/en/tutorials/spacetime-codes (2026).
- [5]E. van den Berg, S. Bravyi, J. M. Gambetta, P. Jurcevic, D. Maslov, and K. Temme, Single-shot error mitigation by coherent Pauli checks, Physical Review Research 5, 033193 (2023).arxiv.org/abs/2212.03937
- [6]J. Roffe, D. Headley, N. Chancellor, D. Horsman, and V. Kendon, Protecting quantum memories using coherent parity check codes, Quantum Science and Technology 3, 035010 (2018).
- [7]N. Chancellor, A. Kissinger, S. Z. de Roos, J. Roffe, and D. Horsman, Graphical structures for design and verification of quantum error correction, Quantum Science and Technology 8, 045028 (2023).
- [8]Error Correction Zoo, Coherent-parity-check (CPC) code, https://errorcorrectionzoo.org/c/cpc (2026).
- [9]S. Martiel, J.-U. Chung, A. Seif, S. Ghosh, I. Hincks, A. Deshpande, H. Manabe, H. Gu, F. Pan, B. Fefferman, J. M. Gambetta, and A. Javadi-Abhari, Sampling hard circuits with verifiably high fidelity (2026), arXiv:2607.25941 [quant-ph].arxiv.org/abs/2607.25941
- [10]A. Kandala, A. Javadi-Abhari, and J. Gambetta, Researchers demonstrate quantum advantage through trusted quantum computation, IBM Quantum Computing Blog, 30 July 2026 (2026).
- [11]M. Steffen, What’s the difference between error suppression, error mitigation, and error correction?, IBM Quantum Computing Blog, 20 October 2022 (2022).
- [12]K. Temme, S. Bravyi, and J. M. Gambetta, Error mitigation for short-depth quantum circuits, Physical Review Letters 119, 180509 (2017).DOI
- [13]P. W. Shor, Scheme for reducing decoherence in quantum computer memory, Physical Review A 52, R2493 (1995).pubmed.ncbi.nlm.nih.gov/9912632
- [14]A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Surface codes: Towards practical large-scale quantum computation, Physical Review A 86, 032324 (2012).DOI
- [15]S. Krinner et al., Realizing repeated quantum error correction in a distance-three surface code, Nature 605, 669 (2022).DOI
- [16]Google Quantum AI and Collaborators, Quantum error correction below the surface code threshold, Nature 638, 920 (2025).
- [17]D. Litinski, A game of surface codes: Large-scale quantum computing with lattice surgery, Quantum 3, 128 (2019).
- [18]Xanadu, A game of surface codes: large-scale quantum computing with lattice surgery (PennyLane demo), https://pennylane.ai/qml/demos (2025).
- [19]F. G. Fuchs, V. Falch, and C. Johnsen, Quantum poker: A game for quantum computers suitable for benchmarking error mitigation techniques on NISQ devices (2019), arXiv:1908.00044.DOI
- [20]J. R. Wootton, A proposal for a minimal surface code experiment (2016), arXiv:1608.05053.DOI
- [21]sneakyweasel, genetic-quantum-correction: solving Decodoku puzzles with a genetic algorithm, https://github.com/sneakyweasel/genetic-quantum-correction (2017).
- [22]R. D. Guerrero, Game-theoretic discovery of quantum error-correcting codes through Nash equilibria (2025), arXiv:2510.15223.arxiv.org/abs/2510.15223
- [23]D. Gottesman, Stabilizer Codes and Quantum Error Correction, Ph.D. thesis, California Institute of Technology (1997), arXiv:quant-ph/9705052.DOI
- [24]S. Aaronson and D. Gottesman, Improved simulation of stabilizer circuits, Physical Review A 70, 052328 (2004).DOI
- [25]S. Bravyi and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Physical Review A 71, 022316 (2005).DOI
- [26]D. C. McKay, C. J. Wood, S. Sheldon, J. M. Chow, and J. M. Gambetta, Efficient Z gates for quantum computing, Physical Review A 96, 022330 (2017).DOI
- [27]R. Davis, O. Lanes, and J. Watrous, What is fault-tolerant quantum computing?, IBM Quantum Computing Blog, 30 May 2025 (2025).
- [28]S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, and T. J. Yoder, High-threshold and low-overhead fault-tolerant quantum memory, Nature 627, 778 (2024).DOI
- [29]S. T. Flammia and Y.-K. Liu, Direct fidelity estimation from few Pauli measurements, Physical Review Letters 106, 230501 (2011).DOI
- [30]M. P. da Silva, O. Landon-Cardinal, and D. Poulin, Practical characterization of quantum devices without tomography, Physical Review Letters 107, 210404 (2011).
- [31]IBM Quantum, Qiskit global summer school 2025, lab 4: Quantum error correction, from core concepts to the road to fault-tolerant quantum computing (2025).
- [32]IBM Quantum, Qiskit global summer school 2026, lab 3: Your new tool for quantum advantage (2026).








