TL;DR
This paper introduces E-LoQ, a novel method for protecting intellectual property (IP) in quantum circuits. By condensing multiple key bits into a single key qubit and strategically inserting controlled gates, E-LoQ effectively obfuscates quantum circuit functionality, making it resilient to attacks and ensuring that only authorized users with the correct key can access the intended computations.
What Problem Does This Paper Address?
Quantum computing promises revolutionary advancements, but its reliance on complex quantum circuits raises concerns about intellectual property (IP) theft. As users submit their quantum circuits to third-party compilers for optimization and execution on quantum hardware, these compilers could potentially steal or misuse the original designs. This is analogous to the problem of IP theft in classical integrated circuits (ICs), where logic locking techniques are used to protect designs. However, applying these techniques to quantum circuits is challenging due to the probabilistic nature of quantum computation and the unique properties of qubits and quantum gates. Existing methods for securing quantum circuits often involve adding extra qubits for each key bit, which is inefficient and impractical given the limited number of qubits available in current quantum computers. This paper addresses the need for a more efficient and robust quantum circuit IP protection mechanism.
Methods
The proposed E-LoQ (Enhanced Locking for Quantum Circuits) method introduces a novel approach to logic locking for quantum circuits. Its core innovations include:
- Key Qubit Condensation: Instead of using a separate qubit for each key bit, E-LoQ consolidates multiple key bits into a single key qubit ($q_k$). This significantly reduces the qubit overhead.
- Controlled Gate Insertion: The method strategically inserts controlled gates within the original quantum circuit. These gates are controlled by the key qubit ($q_k$).
- Key-controlled gates: A subset of original quantum gates are modified to be controlled by the $|1\rangle$ state of the key qubit. When the correct key is applied, these gates function as intended.
- Dummy gates: New, controlled "dummy" gates are inserted, controlled by the $|0\rangle$ state of the key qubit. These gates act as identity operations when the correct key is applied, ensuring the overall circuit functionality remains unchanged.
- H-Masking: To further obfuscate the key and prevent compilers from simplifying the controlled gates, a Hadamard gate (H) is placed on the key qubit ($q_k$) before each quantum gate that is controlled by the correct key. These H-gates are later removed and partially replaced with Pauli-X gates during the decryption process to represent the correct key.
- Encryption and Decryption Process:
- Encryption (Enc): The original circuit is transformed into a locked circuit by adding the key qubit and inserting the modified and dummy controlled gates.
- Decryption (Dec): After compilation, the locked circuit is unlocked using the correct key. This process involves removing the H-gates, inserting Pauli-X gates on the key qubit as needed to represent the key, and then removing the key qubit and simplifying the circuit. The goal is to restore the original circuit's functionality.
Datasets
The authors evaluated their E-LoQ method using benchmark circuits from the RevLib benchmarks [32]. These benchmarks include a variety of gate operations and range in size from 5 to 50 gates and 4 to 12 qubits. They encompass both 1-qubit and multi-qubit outputs to simulate different functional locking scenarios.
Key Insights and Ideas
- Efficiency through Key Qubit Condensation: The most significant insight is that a single qubit can effectively represent multiple key bits, drastically reducing the overhead compared to previous methods that used one qubit per key bit. This is crucial for near-term quantum computers with limited qubit counts.
- Strategic Obfuscation: The combination of controlled original gates and dummy gates, controlled by the key qubit, creates a functional dependency on the key. This ensures that without the correct key, the circuit's output is significantly corrupted, making it difficult to infer the original functionality.
- Resilience to Compiler Optimizations: The "H-masking" technique, along with the strategic placement of controlled gates, is designed to prevent compilers from easily simplifying or removing the locking mechanisms, thus preserving the obfuscation even after compilation.
- Probabilistic Nature as an Advantage: While the probabilistic nature of quantum circuits poses challenges for logic locking, E-LoQ leverages this by ensuring that incorrect keys lead to drastically different output distributions, making it hard for attackers to distinguish the correct output.
Key Results
- High Functional Corruption with Incorrect Keys: Experiments showed that using an incorrect key results in significant functional corruption, making it difficult for an attacker to deduce the original circuit's functionality. Metrics like Total Variation Distance (TVD) and Hamming Variation Distance (HVD) showed substantial divergence between the original and incorrectly unlocked circuits.
- Minimal Performance Impact: The E-LoQ method demonstrated minimal impact on the circuit's performance. The average fidelity degradation after locking and unlocking was less than 1%, indicating that the original circuit's functionality is largely preserved when the correct key is used.
- Reduced Structural Leakage: Compared to some existing methods, E-LoQ offers lower structural information leakage because the controlled gates can be either real or dummy, making it harder for attackers to discern the circuit's topology.
- Low Overhead: The key qubit and dummy gates are temporary and removed during the decryption process, resulting in minimal overhead for the final unlocked circuit.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while the method is effective, it relies on simulations. Demonstrating its efficacy on real quantum hardware, which is subject to noise, is a future step.
- The current work focuses on the compilation phase as the primary threat model. Other potential threats might require further investigation.
- Future Work:
- Develop a quantitative metric for structural leakage to better assess the security against structural attacks.
- Conduct experiments on real quantum hardware to evaluate the impact of E-LoQ under noisy conditions.
- Further explore the application of E-LoQ to more complex quantum algorithms and larger quantum circuits.
Summary updated