Secure Quantum Circuit Compilation Methodology for Untrusted Compilers
Authors:
Preprint
- 11 January 2024
- preprint
- Published by Springer Nature in Research Square
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. A circuit (that implements a given function) with a low gate count and short depth is more likely to give a correct solution than the circuit variant with a higher gate count and depth. As such, 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/unreliable) compilers have emerged, claiming to provide better and faster optimization of complex quantum circuits than so-called trusted compilers. However, untrusted compilers, with their varying adversarial motives ranging from semi-honest to malicious 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 (i.e., an untrusted compiler) may get incorrect IP. However, the user may also get incorrect output post-compilation (even though highly optimized). 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) and Degree of Functional Corruption (DFC) metrics. Our method achieves TVD of up to 1.92, indicating substantial functional corruption, and performs at least 2x better than a previously reported obfuscation method. We also attained a DFC as low as -0.75, approaching the -1 score that represents maximal functional corruption, further ensuring the robustness of our proposed method against IP theft. We also propose a novel adversarial reverse engineering (RE) approach to extract the IP and show that the proposed obfuscation is resilient against RE attacks. The proposed technique introduces minimal degradation in fidelity ( ~ 1% to ~ 3% on average).Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- Challenges and Opportunities of Near-Term Quantum Computing SystemsProceedings of the IEEE, 2020
- An open-source, industrial-strength optimizing compiler for quantum programsQuantum Science and Technology, 2020
- MUQUT: Multi-Constraint Quantum Circuit Mapping on NISQ Computers: Invited Paper2019
- A Hybrid Approach for Solving Optimization Problems on Small Quantum ComputersComputer, 2019
- Mapping Quantum Circuits to IBM QX Architectures Using the Minimal Number of SWAP and H Operations2019
- Tackling the Qubit Mapping Problem for NISQ-Era Quantum Devices2019
- The business of quantum computingCommunications of the ACM, 2018
- RevLib: An Online Resource for Reversible Functions and Reversible Circuits37th International Symposium on Multiple-Valued Logic (SMVLL'07), 2008
- Quantum Computation and Quantum InformationAmerican Journal of Physics, 2002
- Quantum ComputationScience, 1995