Skip to main content
QUICK REVIEW

[Paper Review] Randomized Reversible Gate-Based Obfuscation for Secured Compilation of Quantum Circuit

Subrata K. Das, Swaroop Ghosh|arXiv (Cornell University)|May 2, 2023
Quantum Computing Algorithms and ArchitectureComputer Science3 citations
TL;DR

This paper proposes a randomized reversible gate-based obfuscation technique to protect quantum circuit intellectual property during compilation by untrusted third-party compilers. By inserting a random reversible circuit into the original design and later inverting it post-compilation, the method preserves functionality while achieving high obfuscation security—demonstrated by a maximum Total Variation Distance (TVD) of 1.92 and resilience against reverse engineering attacks with minimal fidelity loss (1–3%).

ABSTRACT

The success of quantum circuits in providing reliable outcomes for a given problem depends on the gate count and depth in near-term noisy quantum computers. Quantum circuit compilers that decompose high-level gates to native gates of the hardware and optimize the circuit play a key role in quantum computing. However, the quality and time complexity of the optimization process can vary significantly especially for practically relevant large-scale quantum circuits. As a result, third-party (often less-trusted/untrusted) compilers have emerged, claiming to provide better and faster optimization of complex quantum circuits than so-called trusted compilers. However, untrusted compilers can pose severe security risks, such as the theft of sensitive intellectual property (IP) embedded within the quantum circuit. We propose an obfuscation technique for quantum circuits using randomized reversible gates to protect them from such attacks during compilation. The idea is to insert a small random circuit into the original circuit and send it to the untrusted compiler. Since the circuit function is corrupted, the adversary may get incorrect IP. However, the user may also get incorrect output post-compilation. To circumvent this issue, we concatenate the inverse of the random circuit in the compiled circuit to recover the original functionality. We demonstrate the practicality of our method by conducting exhaustive experiments on a set of benchmark circuits and measuring the quality of obfuscation by calculating the Total Variation Distance (TVD) metric. Our method achieves TVD of up to 1.92 and performs at least 2X better than a previously reported obfuscation method. We also propose a novel adversarial reverse engineering (RE) approach and show that the proposed obfuscation is resilient against RE attacks. The proposed technique introduces minimal degradation in fidelity (~1% to ~3% on average).

Motivation & Objective

  • Address the growing security risk of third-party quantum circuit compilers stealing proprietary quantum algorithms or IP.
  • Mitigate the threat of untrusted compilers by obscuring the true functionality of quantum circuits during compilation.
  • Develop a practical obfuscation method that maintains circuit correctness post-compilation through reversible gate insertion and inversion.
  • Ensure resistance against reverse engineering attacks by eliminating identifiable markers and increasing the search space for adversaries.
  • Minimize performance overhead and fidelity degradation while achieving strong obfuscation metrics on real benchmark circuits.

Proposed method

  • Insert a random reversible quantum circuit into the original quantum circuit before sending it to an untrusted compiler.
  • Use only reversible gates (e.g., CNOT, Toffoli) to ensure the inserted circuit is unitary and can be inverted later.
  • Apply the inverse of the random circuit after compilation to restore the original functionality of the quantum circuit.
  • Leverage the absence of markers or barriers to prevent adversaries from identifying the obfuscation boundary.
  • Measure obfuscation quality using Total Variation Distance (TVD) between the obfuscated and original circuit outputs.
  • Conduct adversarial reverse engineering (RE) simulations by systematically pruning gates from both ends of the obfuscated circuit to test recovery difficulty.

Experimental results

Research questions

  • RQ1Can randomized reversible gate insertion effectively obscure the true functionality of a quantum circuit from untrusted compilers?
  • RQ2To what extent does the proposed obfuscation resist reverse engineering attempts by adversaries without access to a golden model?
  • RQ3How does the obfuscation technique affect the fidelity and gate count of the final compiled quantum circuit?
  • RQ4What is the impact of obfuscation on the number of viable reverse engineering configurations an adversary must explore?
  • RQ5How does the proposed method compare in obfuscation strength (measured by TVD) to prior obfuscation techniques in the literature?

Key findings

  • The proposed obfuscation achieves a maximum Total Variation Distance (TVD) of 1.92 across benchmark circuits, significantly outperforming prior methods that achieved at most 0.92.
  • The method introduces minimal fidelity degradation, with average loss below 1% for small-scale circuits and under 3% for large, complex circuits.
  • Reverse engineering attempts via systematic gate pruning were largely ineffective, as the number of potential configurations remained prohibitively high even after pruning.
  • High TVD values did not always correlate with correct outputs, indicating that obfuscated circuits can mislead adversaries even when statistical similarity is low.
  • The absence of markers or barriers in the obfuscation design increases the reverse engineering search space to 2*(n-1) configurations when obfuscation is applied at both ends.
  • Even under a pessimistic assumption where the adversary knows the obfuscation technique, the computational effort required to recover the original circuit remains infeasible.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.