Delegated variational quantum algorithms based on quantum homomorphic encryption

Qin Li, Junyu Quan, Jinjing Shi, Shichao Zhang, Xuelong LiarXiv 2023 · DOI

Abstract

As we navigate the Noisy Intermediate-Scale Quantum (NISQ) era, the "Quantum Cloud" model has emerged as a primary means of accessing quantum computational power. However, this model introduces significant privacy concerns regarding sensitive client data. This paper proposes a novel framework for Delegated Variational Quantum Algorithms (VQAs) based on a "client-friendly" Quantum Homomorphic Encryption (QHE) scheme, $QHE_{CC}$. This scheme allows a client with minimal quantum hardware to securely outsource complex VQA tasks to a remote server. We demonstrate the efficacy of this approach by training a quantum classifier on the MNIST dataset, achieving 94% accuracy while maintaining data confidentiality.

Introduction

The current NISQ era is characterized by quantum devices that are powerful but resource-intensive, leading to a centralized cloud-based service model. In this scenario, a client (Alice) delegates computations to a powerful server (Bob). The primary challenge is ensuring the privacy of Alice's data. While Blind Quantum Computation (BQC) offers a solution, it often imposes high communication overheads and requires the client to possess sophisticated quantum hardware. Quantum Homomorphic Encryption (QHE) offers a more efficient alternative by allowing the server to perform computations directly on encrypted data.

The $QHE_{CC}$ Framework

The authors introduce $QHE_{CC}$, a QHE scheme designed specifically for clients with limited quantum capabilities. Unlike previous protocols that might require Bell measurements or complex state preparation, $QHE_{CC}$ only requires the client to generate simple input qubits and apply basic X and Z gates to implement a quantum one-time pad.

Encryption and decryption of basic quantum gates (X, Z, H, P, CNOT) within the $QHE_{CC}$ framework.

As shown in Figure 3, the scheme handles Clifford gates (H, P) and the CNOT gate by updating the encryption keys ($a, b$) based on the gate applied. This ensures that the state remains encrypted throughout the computation.

Handling Non-Clifford Gates via Gadgets

A significant hurdle in QHE is the implementation of non-Clifford gates, such as the T-gate, which do not commute simply with the quantum one-time pad. To address this, the paper introduces a novel gadget generation algorithm (GenGadget). This algorithm allows the server to assist in creating "gadgets" that correct the encryption on-the-fly after a T-gate is applied. Crucially, this process is "blind," meaning the server performs the correction without gaining information about the underlying data.

Delegated VQA Workflow

The VQA process is implemented as a hybrid delegated protocol. The workflow is split between the quantum server and the classical client:

  1. Encryption: Alice encrypts her input data $|\psi(x_i)\rangle$ using the quantum one-time pad.
  2. Execution: Bob executes the quantum ansatz (the model) on the encrypted states, utilizing gadgets for T-gates.
  3. Measurement: Bob measures the output and sends the encrypted results back to Alice.
  4. Optimization: Alice decrypts the results and uses a classical optimizer to update the model parameters ($\theta$).
  5. Iteration: The updated parameters are sent back to Bob for the next training round.
Overview of the delegated VQA framework, illustrating the interaction between the client (Alice) and the server (Bob).

This interaction, depicted in Figure 5, minimizes quantum communication to a single round per iteration, significantly improving efficiency over BQC-based methods.

Experimental Results

The framework was evaluated using a binary classification task on the MNIST dataset (digits "0" and "1"). The delegated variational classifier achieved a peak accuracy of 94%. The training loss showed steady convergence over 20 iterations, demonstrating that the encryption does not hinder the optimization process.

Furthermore, the researchers utilized the Solovay-Kitaev algorithm to decompose complex rotation gates into the supported gate set (X, Z, H, P, T). A test decomposition of a rotation gate into 87 gates (including 35 T-gates) resulted in a trace distance error of only 0.0024, confirming the high precision of the gate-set approach.

Conclusion

The $QHE_{CC}$ framework provides a secure and efficient path for delegating quantum machine learning tasks. By reducing client-side requirements and optimizing the handling of non-Clifford gates, it makes secure quantum cloud computing more accessible. Future work includes extending this framework to multi-client scenarios and exploring its application in Quantum Federated Learning.

Summary updated

BibTeX
@misc{li2023delegated,
  author = {Qin Li and Junyu Quan and Jinjing Shi and Shichao Zhang and Xuelong Li},
  title = {{Delegated variational quantum algorithms based on quantum homomorphic encryption}},
  year = {2023},
  eprint = {2301.10433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.10433},
}
Figure