Research
Trinetra.Q: Statistical and Behavioral Detection of Attacks on the Quantum-Error-Correction Layer and Classical Control Stack of Quantum Computing Systems
Most security research on quantum computers targets the qubits themselves — crosstalk, readout side channels, reset-reuse leakage. This paper argues that two other surfaces are inadequately defended…

- arXiv
- 2611.05722 · Preprint · not peer-reviewed
- Published
- 2026-11-03
- Authors
- Garrv Sipani
In plain words
Most security research on quantum computers targets the qubits themselves — crosstalk, readout side channels, reset-reuse leakage. This paper argues that two other surfaces are inadequately defended: the QEC syndrome-and-decoder pipeline, and the ordinary classical software and firmware stack that compiles, schedules, executes, and returns results.
AI summary
Overview
Research area: Quantum computing security — specifically detection of attacks on the quantum-error-correction (QEC) syndrome/decoder pipeline and the classical control and software stack surrounding a quantum processor, rather than on the qubits themselves.
Technical level: Intermediate. The paper is written for readers who understand basic quantum computing concepts (qubits, stabilizer measurements, syndromes, decoders) and basic statistics (z-scores, significance thresholds), but it defines its detectors plainly enough for a security-oriented reader without a physics background to follow.
Scope (one sentence): The paper presents Trinetra.Q, a layer of five cooperating, statistically calibrated detectors for tampering with the QEC pipeline and classical control stack of a quantum computer, evaluated in simulation and on three production IBM Heron QPUs, together with a systematic map of which physical-layer attacks work on current hardware and an analysis against an attacker who knows the defense.
What This Paper Is About
Most security research on quantum computers targets the qubits themselves — crosstalk, readout side channels, reset-reuse leakage. This paper argues that two other surfaces are inadequately defended: the QEC syndrome-and-decoder pipeline, and the ordinary classical software and firmware stack that compiles, schedules, executes, and returns results. Tampering on these surfaces can corrupt a computation while the physical error rate looks normal and while the corruption stays inside the tolerance of a single-circuit integrity check, so the goal is a detection layer that notices such tampering without raising false alarms on honest hardware.
Key Contributions
-
A reframing of the problem. QEC-layer and control-stack tampering is formulated as a problem of detecting statistically significant deviation from an "honest envelope" of quantum-domain statistics, calibrated on genuine device noise.
-
Five cooperating detectors (A–E). (A) a QEC-integrity detector over per-stabilizer firing rates, syndrome defect-count, and repeated-syndrome rate; (B) a decoder-confidence detector over the margin between minimum-weight error explanations in distinct logical classes; (C) a behavioral output-divergence detector compared against a matched control; (D) a control-stack tamper detector built on known-answer canary circuits plus a cross-job consistency statistic; and (E) a compilation/execution-integrity detector comparing a candidate execution against a reference.
-
An honest-envelope, significance-gated methodology calibrated on real device noise, with the stated property that honest operation raises no indication (e.g., z-scores of at least three as a threshold).
-
An evaluation on production hardware plus a negative map and adaptive-attacker analysis. Results come from faithful simulation (means over five fixed seeds) and from three production IBM Heron QPUs — ibm_fez, ibm_kingston, and ibm_marrakesh — at 4096–8192 shots, alongside a systematic physical-layer attack battery and an evaluation of detectors against an attacker with full knowledge of the defense.
Main Findings
-
QEC-integrity detector works on real syndromes: Across all three QPUs (8192 shots), the detector achieved 100% coverage, with targeted, random, replay, and suppression tampering each detected by its own characteristic statistic. It stayed stable under calibration drift, where the baseline logical error rate drifted 0.128 → 0.205 on one device while all four classes remained detected.
-
A stated caveat on logical-error amplification: On single-round, readout-limited hardware only random multi-bit tampering produces large logical-error amplification; a single injected syndrome bit drives the logical error rate to ≈0.44 on all three machines (0.118 → 0.440, 0.141 → 0.453, 0.252 → 0.437). The authors therefore report detector coverage, not amplification, as the result.
-
Decoder-confidence detection depends on the stream, not the shot: The margin-stream detector flags adversarial selection at z = 5.8 for a 5% injection rate on an 8192-shot stream, rising to z = 11.6 at 10% and z = 58 at 50%; at 2% it is sub-threshold at z = 2.3. Per shot the margin signal reaches 98.3% detection at a 36.5% false-positive rate, so the deployable detector is the stream aggregate. These are simulation results.
-
Canary detector catches a stealthy, within-tolerance implant that a per-circuit check misses: In simulation (5-qubit canaries, 40 canaries × 4096 shots, per-circuit tolerance ε = 0.10), a tamper at δ = 3% is missed by a per-circuit tolerance check (max total-variation distance 0.095 < 0.10) but caught by the canary detector at z = 48.9 and the cross-job statistic at z = 40.9. With no implant the detector is quiet (z ≈ 0). The implant attack itself is simulated; the detector is validated on real device-noise data.
-
Canary detector on real device noise: On the two low-noise machines, genuine canary outputs with offline-applied tampering produced z = 25.7–142.8 for tampering of 1–5%, while the per-circuit check was blind at all strengths, and honest hardware raised no alarm (z ≈ 0). On the noisy machine, whose honest canary error rate already sits near ε, the per-circuit check false-alarms on honest noise whereas the calibrated canary detector still separates tampering.
-
Behavioral detector flags attacks by effect, not signature: Against a matched benign-neighbor control, a double-sided crosstalk attack raises victim corruption from 0.0025 (benign) to 0.189 — an excess of 0.187 — and is detected; a pulse-based flip attack produces an excess of 0.5 and is detected. These are simulation results and are described as a claim about output effects, not a pulse-level reproduction.
-
The physical attack surface is largely closed on current hardware: Idle and worst-case double/triple-sided active gate crosstalk, readout/measurement crosstalk, mid-circuit-measurement back-action and feed-forward control-flow side channels, and reset/state-reuse leakage all returned statistically null (all z < 3 at ≥ 8192 shots), stable on repeat. The authors present this as a rigorous bound, consistent with tunable-coupler isolation, and as the reason the control stack and QEC pipeline are the surfaces that matter.
-
One physical channel was not null: An in-circuit covert-channel primitive, in which an attacker register transmits to a victim register sharing no two-qubit gate with it via mid-circuit measurement and classical feed-forward, was measured end-to-end at approximately 0.8-bit mutual-information capacity across the three devices (0.69–0.90 bits), with matched controls at approximately zero, and did not decay with attacker–victim distance. It is a within-job primitive on single-tenant hardware, not a demonstrated cross-tenant exploit.
-
Adaptive attacker results: Across 60 adaptive decoder-path policies (targeted/balanced/spread flips × rate × target stabilizer), no policy raised the logical error rate while keeping per-stabilizer rate, defect count, and replay rate all within envelope — balancing one statistic moves another. For the canary detector, the only evasion is identifying and skipping canaries: detection holds (z > 20 at δ = 3%) for canary-identification accuracy up to ≈ 0.9 and fails only as that accuracy approaches 0.99; at accuracy 0.5 the attacker must tamper canaries at full rate and is caught. For the margin detector, only 1.7% of logical-error-causing inputs are high-margin, confining the adaptive attacker to 1.7% of the attack space.
Methodology in Plain English
The approach is to watch the by-products of a quantum computation rather than the qubits. During a calibration phase, the defender records what a monitored quantity normally looks like on honest hardware — for example, how often each stabilizer fires, how large the syndrome defect count is, how often consecutive syndromes repeat, or how far a circuit's output distribution strays from a clean baseline. During monitoring, the same quantity is measured again and its deviation is expressed in standard-error units; an alarm is raised only when that deviation clears a significance threshold, so ordinary noise does not trip it.
Different detectors watch different quantities. One watches the syndrome statistics themselves, with the reasoning that targeted tampering shifts one stabilizer's firing rate, random tampering inflates or deflates the defect count, and replay pushes up the repeated-syndrome rate — so multiple signals make it hard to hide one change by balancing another. Another watches how close the decoder is to a decision boundary between two logical classes, aggregated over a stream because single shots are unreliable. A third compares a victim circuit's output distribution to a matched control that lacks the attacker's activity, which catches attacks by their effect rather than their signature. A fourth hides known-answer canary circuits among real workloads, built so a resident implant cannot tell them apart, and pools their deviations across many shots and jobs. A fifth compares a candidate execution's output divergence against a reference execution.
For attacks that could not ethically be deployed on infrastructure the authors do not own — a provider-side control-stack implant, decoder injection — the tampering is applied offline to genuine device-noise data collected from the real QPUs, or run in simulation. The paper states this hardware-versus-simulation status per result.
Why This Matters
Quantum computers are becoming cloud services, and a compromise of the software stack beneath a QPU could silently corrupt every user's results while the hardware's error rate looks perfectly healthy. Per-circuit integrity checks cannot see tampering that stays within their tolerance, and preventive mitigations do not detect a persistent implant. This paper shifts the discussion toward detection calibrated on real hardware noise, and it demonstrates that such detection can work on production machines — which is rare in a literature where attacks are frequently shown on real hardware and defenses almost never are.
Real-world applications:
- Cloud quantum computing providers could run these detectors provider-side to monitor the QEC and control stack continuously, or to offer integrity attestation to customers.
- Users of cloud QPUs can run client-side detectors, including the canary approach, without privileged access to or modification of the hardware.
- Error-correction and decoder developers get a concrete set of monitored statistics (firing rates, defect counts, replay rates, decoder margins) for checking that a syndrome or decoder path has not been tampered with.
- Hardware security teams gain a certification-grade negative map showing which physical-layer vectors are suppressed on current superconducting devices, which directs effort toward the classical stack instead.
Industry relevance: The work speaks directly to trust in quantum-as-a-service: it offers a way to bound and monitor the surfaces that remain exposed after device-level hardening, and it flags a measured feed-forward covert-channel primitive that would become a live concern under future multi-tenant or shared-execution scheduling.
Future Directions
-
Moving from offline tampering to live attacks. The control-stack implant and decoder-injection attacks were applied offline to real device data or in simulation; testing against a real provider-side implant (once authorized) would bound attack realism beyond the current modeling.
-
Hardening canary indistinguishability. The adaptive analysis reduces canary security to whether an implant can tell canaries from real circuits, and detection fails as identification accuracy approaches 0.99; better canary constructions are the natural next lever, and the property is one the defender controls.
-
Re-running the negative map on future hardware. The bound on physical-layer attacks is specific to current IBM Heron devices; a different or future generation may expose different vectors, which would change where defense effort belongs.
-
Extending beyond single-tenant execution. The covert channel is a within-job primitive at modest capacity (~0.8 bit); whether it becomes a cross-tenant channel under multi-tenant or shared-execution scheduling is an open question, and the behavioral and control-stack detectors are presented as the response.
-
Turning indications into action. Detection is not prevention, and a raised indication must be acted on by a human or downstream process; how to integrate these signals into operational response, and how to protect the calibration phase itself from compromise, remain practical questions.
Target Audience
Quantum-computing security researchers and practitioners will get the most from this paper, particularly those working on QEC, decoder design, or cloud-QPU trust. It also suits cloud quantum providers and their security engineers, hardware security teams interested in what remains of the physical attack surface on superconducting devices, and graduate students or technically fluent readers who want a concrete, hardware-grounded example of statistical detection applied to quantum systems. Readers without any background in stabilizer codes or significance testing should expect to consult references for the underlying concepts.
Authors’ abstract
Most quantum-computer security work targets physical-layer attacks on qubits, while two surfaces remain inadequately defended: the quantum-error-correction (QEC) syndrome-and-decoder pipeline, and the classical control and software stack that runs it. Tampering on these surfaces can corrupt a computation while the physical error rate appears normal, and can stay within a single-circuit integrity tolerance. We present Trinetra.Q, a detection layer of cooperating detectors,…
The full abstract on arXivRelated papers
- Scaling classical hardware for accurate real-time quantum error correction 2026-11-19 · quant-ph · Key terms of the title in common
- Error-Corrected Quantum Optimization via Rydberg Atom Array Embeddings 2026-10-29 · quant-ph · Key terms of the title in common
- Grow, Compress, and Perturb: A Hybrid Quantum-Classical Pathway to Scalable Quantum Chemistry on Quantum Computers 2026-10-29 · quant-ph · Key terms of the title in common
- GARI++: A General-Purpose Decoder for Quantum Error Correction 2026-11-09 · quant-ph · Key terms of the title in common
- Circuit-Level Analysis of Quantum Error Correction in Second-Generation Quantum Repeaters 2026-11-12 · quant-ph · Key terms of the title in common