Homomorphic Encryption Experiments on IBM's Cloud Quantum Computing Platform

He-Liang Huang, Youwei Zhao, Tan Li, Feng‐Guang Li, Yutao Du, Xiang-Qun Fu, Shuo Zhang, Xiang Wang, Wan‐Su Bao

Abstract: Quantum computing has undergone rapid development in recent years. Owing to limitations on scalability, personal quantum computers still seem slightly unrealistic in the near future. The first practical quantum computer for ordinary users is likely to be on the cloud. However, the adoption of cloud computing is possible only if security is ensured. Homomorphic encryption is a cryptographic protocol that allows computation to be performed on encrypted data without decrypting them, so it is well suited to cloud computing. Here, we first applied homomorphic encryption on IBM's cloud quantum computer platform. In our experiments, we successfully implemented a quantum algorithm for linear equations while protecting our privacy. This demonstration opens a feasible path to the next stage of development of cloud quantum information technology.

Introduction

As quantum hardware advances, the "Quantum-as-a-Service" model is emerging as the most viable path for widespread access. However, delegating sensitive computations to third-party cloud providers like IBM or Google introduces significant privacy risks. While "Blind Quantum Computing" offers a theoretical solution, its current resource requirements exceed the capabilities of Noisy Intermediate-Scale Quantum (NISQ) devices.

This study presents the first experimental demonstration of homomorphic encryption (HE) on a public quantum cloud platform. By implementing a privacy-preserving version of the Harrow-Hassidim-Lloyd (HHL) algorithm on IBM’s 5-qubit Quantum Experience, the researchers demonstrated that users can perform complex quantum tasks without exposing their private input data to the server.

Methodology

Homomorphic Encryption Protocol

The researchers employed a mathematical substitution method to achieve data privacy. To solve a linear system $Ax = b$, the user selects a private key $a_i \in \{0, 1\}$ and defines a transformation $x_i = y_i + a_i$. The original equation is rewritten as $A(y + a) = b$, which simplifies to $Ay = b - Aa$. The user then sends the modified vector $b' = (b - Aa)$ and the matrix $A$ to the cloud server. The server computes the solution $y$ for the modified system, and the user decrypts the result locally using their private key ($x = y + a$).

Quantum Algorithm for Linear Equations

The core of the computation is the HHL algorithm, which solves systems of linear equations with exponential speedup over classical methods under certain conditions. The implemented circuit consists of three primary stages: phase estimation, a controlled rotation ($R_y$), and inverse phase estimation.

The quantum circuit for the HHL algorithm, including phase estimation, controlled rotation, and measurement stages.

Hardware Constraints and Gate Approximation

A significant challenge was the discrete gate set of the IBM 5-qubit processor, which primarily supports Clifford gates and the $T$ gate. The HHL algorithm requires precise arbitrary rotations ($R_y$) that are not natively available. To overcome this, the authors used a sequence of seven $T$ gates and seven Hadamard gates to approximate the required rotations with high fidelity.

Bloch sphere representations showing how increasing the number of discrete gates (T and H) allows for a denser coverage of the sphere, enabling high-fidelity approximation of arbitrary rotations.

Results

The protocol was benchmarked using two $2 \times 2$ systems of linear equations. The experimental results demonstrated high accuracy and fidelity:

  • State Fidelity: The researchers achieved state fidelities of 0.992(1) and 0.920(7) for the test systems.
  • Numerical Accuracy: Upon decryption, the final values for the variables $x_1$ and $x_2$ were within 2% of their theoretical counterparts.

These results confirm that the homomorphic encryption scheme successfully protected the user's input while allowing the cloud server to produce a correct, decryptable result.

Discussion and Conclusion

This experiment serves as a critical proof-of-concept for secure cloud quantum computing. By prioritizing practical mathematical transformations over more complex, resource-heavy encryption schemes, the authors showed that privacy-preserving quantum computation is possible on current-generation hardware.

However, several challenges remain for scaling this approach. The current demonstration was limited to small $2 \times 2$ matrices on a 5-qubit system. Scaling to larger, more complex problems will require significant improvements in qubit coherence times and gate error rates. Furthermore, while the substitution-based HE used here is effective for linear systems, future research must develop more robust quantum homomorphic encryption schemes capable of supporting a broader range of algorithms without prohibitive increases in circuit depth.

Summary updated

BibTeX
@inproceedings{huang2016homomorphic,
  author = {He-Liang Huang and Youwei Zhao and Tan Li and Feng‐Guang Li and Yutao Du and Xiang-Qun Fu and Shuo Zhang and Xiang Wang and Wan‐Su Bao},
  title = {{Homomorphic Encryption Experiments on IBM's Cloud Quantum Computing Platform}},
  booktitle = {Frontiers of Physics},
  year = {2016},
}
Figure