arXiv:2611.05722quant-phNov 2026

Manuscript Offprint

arXiv:2611.05722

Trinetra.Q: Statistical and Behavioral Detection of Attacks on the Quantum-Error-Correction Layer and Classical Control Stack of Quantum Computing Systems

Garrv Sipani

Abstract

Security research on quantum computers has concentrated on physical-layer attacks against qubits, while two surfaces remain inadequately defended: the quantum-error-correction (QEC) syndrome-and-decoder pipeline, and the classical control and software stack that compiles, schedules, executes, and returns the results of a quantum computation. Tampering on these surfaces can corrupt a computation while the physical error rate appears normal, and can remain within the tolerance of a single-circuit integrity check. We present Trinetra.Q, a detection layer comprising cooperating detectors, each of which monitors a statistical or behavioral property of quantum-domain data, compares it against an envelope calibrated from honest operation, and raises an attack indication only on a statistically significant deviation. The layer comprises (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 that flags crosstalk-class and novel attacks by their effect on a victim's measurement-output distribution relative to a matched control; (D) a control-stack tamper detector that interleaves known-answer canary circuits, constructed to be indistinguishable to a resident implant, and aggregates their deviations with a cross-job consistency statistic; and (E) a compilation/execution-integrity detector that compares the output divergence of a reference execution against a candidate. Each detector calibrates on honest operation and gates its indication on a statistical-significance threshold, so honest operation raises no alarm. We evaluate the detectors in faithful simulation and on three production IBM Heron quantum processors. We further bound the physical attack surface with a systematic negative map on three devices—most physical-layer attacks return statistically null, with one exception, an implemented and measured within-job feed-forward covert-channel primitive—and we evaluate every detector against an adaptive attacker with full knowledge of the defense. To our knowledge this is the first unified statistical-and-behavioral detection layer for the QEC layer and the classical control stack of a quantum computing system, demonstrated on production quantum hardware. We state the limitations plainly.

1 Introduction

Quantum processing units (QPUs) are increasingly offered as cloud services and are becoming central to error-corrected computation. Most quantum-computer security work to date concerns physical-layer attacks on the qubits themselves—crosstalk, reset-reuse leakage, and readout side channels—and modern superconducting hardware increasingly suppresses these vectors at the device level, for example through tunable couplers that reduce residual coupling.

Two classes of threat remain inadequately addressed. First, the QEC pipeline: stabilizer measurements produce a syndrome that a classical decoder uses to infer and correct errors, and a syndrome or decoder path that is tampered with can induce logical errors while the physical error rate appears normal. Second, the classical control and software stack surrounding a QPU—the transpiler, the calibration pipeline, the scheduler, the real-time decoder, and the result-return path—is ordinary classical software and firmware; a persistent compromise of that stack can silently corrupt the computations of every user, including by tampering with outputs by an amount small enough to stay within the tolerance of a single-circuit integrity check.

Existing defenses are predominantly preventive—dynamical decoupling, allocation policies, padding—and several have been reported ineffective against specific attacks; existing integrity frameworks verify per-circuit outputs against a calibrated tolerance and, by construction, do not detect tampering that remains within that tolerance, nor a persistent implant resident in the control stack. There is a need for detection methods that operate on the signals characteristic of quantum computation—stabilizer syndromes, decoder behavior, and quantum measurement statistics—that are calibrated on honest operation and gated by statistical significance so as not to raise false alarms on genuine hardware, and that detect stealthy, within-tolerance, and persistent tampering that per-circuit checks miss.