Quantum Trojan Insertion: Controlled Activation for Covert Circuit Manipulation

Jayden John, Lakshman Golla, Qian WangarXiv 2025 · DOI

Introduction: The Vulnerability in the Quantum Pipeline

In the current quantum computing landscape, users typically lack direct access to physical hardware. Instead, they rely on a complex execution flow where high-level code (e.g., OpenQASM) is processed by a quantum compiler or transpiler. This software layer translates abstract gates into hardware-specific instructions and pulse-level signals. This reliance on third-party or open-source compilers creates a significant "man-in-the-middle" vulnerability.

Previous research into quantum Trojans often focused on static modifications, such as permanent bit-flip gates. However, these are relatively easy to detect through standard security audits or optimization passes that flag unexpected depth increases. This work addresses the need for covert manipulation—Trojans that stay hidden during normal operation but activate under specific conditions.

Methodology: Stealth through "Empty Slots"

The proposed attack utilizes a two-phase insertion process designed to maximize stealth by exploiting the inherent sparsity of quantum circuits.

1. Empty Slot Identification

The algorithm first converts the target quantum circuit into a Directed Acyclic Graph (DAG). It then analyzes each time step (layer) of the circuit to identify "idling" qubits—qubits that are not participating in any gate operation during that specific interval. These intervals are designated as "empty slots."

Identification of empty slots (dashed red boxes) within a quantum circuit's execution schedule.

2. Controlled Insertion and Payload

Once empty slots are identified, the adversary inserts the Trojan components:

  • The Switch: A designated control qubit is modified with an X-gate (bit-flip) at a specific position to act as the "on/off" trigger.
  • The Payload: Malicious Controlled-NOT (CX) gates are placed into the identified empty slots, using the control qubit as the trigger.

When the switch is "off," the CX gates act as identity operations, and the circuit functions normally. When the switch is "on," the Trojan gates activate, flipping bits and corrupting the final output. Crucially, because these gates only occupy previously idle time slots, the overall circuit depth remains unchanged, bypassing a primary red flag in hardware security.

Experimental Evaluation

The researchers evaluated the method using the RevLib benchmark set, covering arithmetic units (e.g., mini_ALU), logic functions (rd53, sym6), and general logic circuits. Simulations were conducted using IBM Qiskit’s FakeValencia backend to account for realistic hardware noise.

Key Results

  • Zero-Depth Overhead: Across all benchmarks, the Trojan insertion resulted in a 0% increase in circuit depth, maintaining the original timing signature.
  • High Fidelity when Dormant: In the deactivated state, circuit accuracy remained virtually identical to the original (e.g., rd84 maintained 0.992 accuracy vs 0.993 original).
  • Effective Corruption: The impact was measured using Total Variation Distance (TVD), which quantifies the difference between the original and corrupted output distributions. Upon activation, the TVD reached approximately 0.9 for many circuits, indicating near-total failure of the intended computation.
Total Variation Distance (TVD) across various benchmark circuits, showing significant output corruption when the Trojan is activated.

Discussion and Future Work

The most significant insight is that the "white space" in quantum schedules provides a perfect hiding spot for malicious logic. While the total gate count increases (by an average of 20%), the lack of depth overhead makes these Trojans invisible to many current optimization tools.

Future research will focus on more complex, multi-qubit trigger conditions to further decrease the likelihood of accidental activation during testing. Additionally, the development of defense strategies specifically tailored to identify conditional logic—rather than just static gate overhead—is essential for securing the quantum supply chain.

Summary updated

BibTeX
@misc{john2025quantum,
  author = {Jayden John and Lakshman Golla and Qian Wang},
  title = {{Quantum Trojan Insertion: Controlled Activation for Covert Circuit Manipulation}},
  year = {2025},
  eprint = {2502.08880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08880},
}
Figure