Research
Secure Information Flow in Quantum Programs
Gives equivalent noninterference and attacker-simulation definitions plus proof rules for quantum program information flow, a foundation for verifying secrecy in quantum software.

- arXiv
- 2611.14147 · Preprint · not peer-reviewed
- Published
- 2026-11-10
- Authors
- Zhicheng Zhang, Mingsheng Ying, Lirong Xia
In plain words
Classical information-flow security asks whether a program can leak confidential ("High") data to an attacker who only sees "Low" data.
AI summary
Overview
Research area: Quantum programming languages and formal methods, specifically information-flow security (confidentiality) for quantum programs, sitting at the intersection of quantum computation theory, formal security models, logic and verification, and information flow control (the paper's own CCS categories).
Technical level: Advanced. The paper assumes familiarity with density operators, unitary semantics, quantum Hoare logic, and classical noninterference/self-composition.
Scope (one sentence): The paper defines two notions of secure information flow for a loop-free quantum programming language, proves them equivalent, and develops a quantum Hoare logic verification framework built on a new "self-conjugation" technique, illustrated on the quantum one-time pad, quantum error correction, and anonymous entanglement generation.
What This Paper Is About
Classical information-flow security asks whether a program can leak confidential ("High") data to an attacker who only sees "Low" data. The paper asks how to define and verify this guarantee when programs manipulate quantum data, where states can be superposed and entangled, and where classical and quantum variables interact in both directions (measurement moves quantum information to classical bits; classical conditionals control quantum gates). The goal is a formal security definition with a clear operational meaning, plus a proof system that reduces security claims about new quantum programs to checkable proof obligations rather than case-by-case informal reasoning.
Key Contributions
-
Two security definitions and an equivalence theorem. The paper introduces NI, a noninterference-based notion that generalizes the classical definition, and SIM, a simulation-based notion that explicitly models an attacker. It proves that NI and SIM are equivalent, giving NI an operational interpretation: the attacker's observable Low behavior can be simulated from the Low input alone.
-
Self-conjugation, a replacement for self-composition. Classical verification of noninterference typically uses self-composition, composing a program with a renamed copy of itself. The paper shows that a direct quantum analogue fails because of an obstruction analogous to the no-cloning theorem, and introduces self-conjugation, which composes a program with its reverse rather than a renamed copy. The technique exploits the deferred measurement principle and properties of unitary operations.
-
A quantum Hoare logic verification framework. Using self-conjugation, the paper reduces verification of information-flow security for a program P to proof obligations in quantum Hoare logic for a self-conjugated program derived by following P's syntax.
-
Worked verification examples. The framework is demonstrated on the single-qubit quantum one-time pad, and on examples drawn from quantum error correction and anonymous entanglement generation.
Main Findings
- NI and SIM coincide: The noninterference-based definition and the attacker-simulation definition are proven equivalent, so a proof of NI yields the operational guarantee captured by SIM.
- Low equivalence is defined by tracing out High variables: Two states are Low-equivalent exactly when their reduced density operators after tracing out the High part are equal, which is precisely what a Low attacker can access.
- A no-cloning-style barrier to self-composition: The paper identifies that the standard classical self-composition assertion comparing Low variables with their renamed copies has no direct quantum counterpart, because of an obstruction analogous to the no-cloning theorem.
- Self-conjugation circumvents the barrier: Composing a program with its reverse, combined with deferred measurement and unitary properties, produces a self-conjugated program whose Hoare-logic proof obligations establish security.
- High-controlled operations can still be secure: In the one-time pad, the statement
if x=1 then X[q]lets a High classical variable control an operation on the Low quantum variable q, yet the composed programKeyGen; Encis secure. This is the paper's core motivation for whole-program semantic reasoning rather than local syntactic checks. - Security labeling for the one-time pad: The paper classifies m, r_x, r_z, x, and z as High and q as Low. For
KeyGen, Hvar = {x, z, r_x, r_z} and Lvar is empty; forEnc, Hvar = {m, x, z} and Lvar = {q}. - Explicit denotational computation for the example: Starting from a joint state with message |ψ⟩ = (1/√3)|0⟩ + (√2/√3)|1⟩, the paper computes ⟦KeyGen; Enc⟧(s) as a uniform 1/4 sum over key values a, b, leaving the message qubit in |0⟩⟨0| and the ciphertext qubit q in |ψ^{a,b}⟩ = (1/√3)|a⟩ + (−1)^b (√2/√3)|a⊕1⟩.
- Global phase is discarded by circuit execution: The rule lifting circuit semantics to mixed states moves from pure to mixed states and discards global phase information; the paper notes this subtlety is reflected in the later verification framework.
qifis a quantum multiplexor: The semantics of the quantum conditional is stated to be equivalent to a quantum multiplexor with the control qubit q.- No empirical evaluation: The paper reports no benchmarks, datasets, model names, or experimental comparisons; its results are formal definitions, proofs, and worked examples.
Methodology in Plain English
The authors start by fixing a small but expressive language. It has classical variables (bits, bounded integers) and quantum variables (qubits, qudits), sequential composition, unitary gates, classical assignment and conditionals, mid-circuit measurement, qubit reset, and a quantum conditional qif that runs two branches in superposition. This language covers dynamic quantum circuits of the kind run on current hardware; loops with a fixed bound can be unrolled, so the core language is loop-free.
They give the language two semantics. An operational semantics describes execution step by step, tracking a classical state and a quantum mixed state, with measurement producing the usual branch-by-outcome behavior. A denotational semantics maps each program to a linear map on joint classical-quantum states, where a joint state is a density operator of the form Σ_j |σ_j⟩⟨σ_j| ⊗ ρ_j. Treating classical and quantum data in one density operator is a deliberate choice that simplifies stating the security definitions; the semantics can be viewed as a hybrid classical-quantum channel.
Security is then defined relative to a two-level High/Low labeling. The key primitive is Low equivalence: two states look the same to a Low attacker if tracing out the High variables gives identical density operators. NI says that any two Low-equivalent inputs produce Low-equivalent outputs, so changes in High data cannot be detected through program execution. SIM says, in effect, that whatever a Low attacker observes can be reproduced from the Low input alone. The authors prove the two coincide.
For verification, the naive route would copy the program, as in classical self-composition. That route is blocked by the quantum no-cloning-style obstruction. Instead, the authors follow the program's syntax to build a self-conjugated program, composing P with its reverse, and show that ordinary quantum Hoare logic proof obligations on that derived program establish NI for P. They then carry out the proofs for the one-time pad and the more complex protocol examples.
Why This Matters
Impact on research: Prior work extended noninterference to a quantum automata model (Ying et al., 2013), but that formulation is tied to automata and does not account for program structure, and it does not by itself supply an operational reading. This paper supplies definitions phrased directly over program states and semantics, an equivalence theorem connecting the specification to attacker behavior, and a Hoare-style proof method. That gives the quantum verification community a reusable foundation rather than ad hoc per-protocol arguments, and it identifies a concrete technical obstacle (the failure of self-composition) that future work must reckon with.
Real-world applications (drawn from the paper's examples):
- Quantum one-time pad and quantum encryption protocols, including cases where the pad is embedded inside a larger security protocol and the ciphertext may be entangled with outside systems.
- Quantum error correction, used as a verification case study.
- Anonymous entanglement generation, used as a verification case study.
- Dynamic quantum circuits with mid-circuit measurements, the class of programs the language is designed to describe and the kind executable on current quantum hardware.
Industry relevance: Quantum cloud providers and hardware vendors that expose mid-circuit measurement and conditional control need ways to certify that compiled or hosted circuits do not leak secrets through their Low-visible outputs. As quantum software stacks mature, security arguments stated in a Hoare logic are the kind of artifact that can be checked, audited, and integrated into compiler and verification toolchains, rather than relying on informal protocol-by-protocol reasoning.
Future Directions
- Loops and recursion: The core language is loop-free; the paper notes that loops with a fixed bound can be unrolled. Native reasoning principles for unbounded loops and recursive quantum programs remain open.
- Automation and tooling: Turning the self-conjugation proof obligations into an implemented verifier or a machine-checked formalization is a natural engineering step the paper's framework enables but does not itself provide.
- Broader security notions: The paper focuses on confidentiality via High-to-Low flow. Integrity, declassification, and quantitative notions of leakage are not developed here and are logical extensions.
- Alternative enforcement mechanisms: The paper intentionally takes the program-logical route. Type-based enforcement and static analysis, which are standard in the classical setting, are left as parallel directions for the quantum setting.
- Scaling the case studies: The demonstrated examples are small and protocol-specific. Whether the framework scales to larger multi-qubit protocols and to richer measurement patterns is not established in the reported results.
Target Audience
Researchers and graduate students in quantum programming languages, formal verification, and programming-languages security; designers of quantum cryptographic protocols who need formal confidentiality guarantees; and developers of quantum verification and compiler toolchains who want a logic-based specification of secure information flow. Readers should be comfortable with density operators and Hoare logic, since the paper's core machinery is proof-theoretic rather than experimental.
Authors’ abstract
Information-flow security aims to prevent the leakage of confidential information through program execution. This problem becomes fundamentally subtler for quantum programs, because their states may involve superposition and entanglement, and their executions may involve intricate interactions between classical and quantum variables. This paper develops semantic foundations and verification methods for secure information flow in quantum programs. We formulate two notions of…
The full abstract on arXivRelated papers
- QEDIA: Quantum Program Verification in Lean 2026-10-13 · quant-ph · Also by Mingsheng Ying, Zhicheng Zhang
- Quantisation of Abstract Data Types 2026-09-03 · quant-ph · Also by Mingsheng Ying, Zhicheng Zhang
- Resource Estimation for Fault-Tolerant Quantum Programs 2026-08-05 · quant-ph · Also by Mingsheng Ying
- Fast Template Matching for Quantum Circuits Using Hypergraph 2026-10-21 · quant-ph · Also by Mingsheng Ying
- Normalizing Flows for Classical Simulation of Quantum Circuits in Phase Space 2026-11-10 · quant-ph · Key terms of the title in common