Experimental quantum adversarial learning with programmable superconducting qubits

Wenhui Ren, Weikang Li, Shibo Xu, Ke Wang, Wenjie Jiang, Feitong Jin, Xuhao Zhu, Jiachen Chen, Zixuan Song, Pengfei Zhang, Hang Dong, Xu Zhang, Jinfeng Deng, Yu Gao, Chuanyu Zhang, Yaozu Wu, Bing Zhang, Qiujiang Guo, Hekang Li, Zhen Wang, Jacob D. Biamonte, Chao Song, Dong-Ling Deng, Haohua Wang · DOI

Introduction

The rise of deep learning in the classical domain has been accompanied by the discovery of a significant security flaw: adversarial vulnerability. Small, often imperceptible perturbations to input data—known as adversarial attacks—can lead highly accurate neural networks to make confident yet incorrect predictions. As quantum machine learning (QML) emerges as a potential successor for specific high-dimensional tasks, a fundamental question arises: Is quantum AI inherently more robust, or does it share the vulnerabilities of its classical predecessors?

This research provides the first experimental demonstration of quantum adversarial learning using a programmable superconducting processor. By evaluating quantum classifiers on both classical and quantum datasets, the study shows that QML models are indeed susceptible to adversarial attacks but can be effectively defended through adversarial training.

Experimental Architecture and Methodology

The experiments were conducted on a 10-qubit superconducting processor featuring transmon qubits with average lifetimes ($T_1$) of 150 $\mu$s and gate fidelities exceeding 99.4%. To overcome the limitations of standard Noisy Intermediate-Scale Quantum (NISQ) devices, the team implemented several technical innovations.

Interleaved Block-Encoding

A central challenge in QML is the efficient encoding of high-dimensional data. Traditional "encoding-first" methods often limit the model's expressivity. The researchers utilized an interleaved block-encoding architecture, where data-encoding layers are interspersed with trainable variational layers. This approach allowed the 10-qubit system to process 256-dimensional input vectors, effectively optimizing the "quantum kernel" during the training process rather than relying on a fixed mapping.

Variational Quantum Circuits (VQCs)

The classifiers were constructed using deep VQCs, reaching up to 60 layers and incorporating over 250 trainable parameters. To ensure precise optimization, the team employed the parameter shift rule. This technique allows for the calculation of exact analytical gradients directly from the quantum hardware, bypassing the approximation errors typically associated with finite-difference methods.

Adversarial Attacks and Datasets

The study employed "white-box" attacks, where the attacker possesses full knowledge of the model's parameters. Using gradient ascent, the researchers identified the minimal perturbations required to maximize the classifier's prediction error. These attacks were tested across three diverse datasets:

  1. Medical Imaging: Binary classification of MRI scans (e.g., distinguishing between "Hand" and "Breast" categories).
  2. Handwritten Digits: The MNIST benchmark, specifically distinguishing between the digits "0" and "1".
  3. Quantum Many-Body States: Distinguishing between thermal and localized phases in the Aubry-André (AA) model, a task native to quantum processors.

Results: Vulnerability and Defense

The experimental results confirmed that quantum classifiers, despite their high initial performance, are highly vulnerable to adversarial noise.

The Impact of Attacks

Initially, the quantum models achieved state-of-the-art performance for NISQ hardware, with accuracies reaching up to 99%. However, when subjected to adversarial perturbations, accuracy plummeted. In several instances, the models were deceived into misclassifying every single adversarial example. Notably, these perturbations were "imperceptible"—invisible to the human eye in MRI scans and statistically minute in quantum state distributions—yet they successfully exploited the "concentration of measure" phenomenon inherent in high-dimensional Hilbert spaces.

Adversarial Training as a Defense

To counter these vulnerabilities, the researchers implemented adversarial training. By augmenting the training set with adversarial examples, the model learns to recognize and ignore the malicious noise. The results were definitive: the retrained "immunized" models regained near-unity accuracy on both clean and attacked data, demonstrating a robust path forward for secure quantum AI.

Conclusion and Future Outlook

This work establishes that adversarial vulnerability is a universal trait of high-dimensional learning systems, whether classical or quantum. However, it also provides a blueprint for defense. While this study was limited to 10 qubits and binary classification, it sets the stage for scaling QML to more complex, multi-class problems. Future research will likely explore more sophisticated "black-box" attacks and advanced defense mechanisms, such as Quantum Generative Adversarial Networks (qGANs), to ensure the reliability of quantum artificial intelligence in critical applications.

Summary updated

BibTeX
@article{ren2022experimental,
  author = {Wenhui Ren and Weikang Li and Shibo Xu and Ke Wang and Wenjie Jiang and Feitong Jin and Xuhao Zhu and Jiachen Chen and Zixuan Song and Pengfei Zhang and Hang Dong and Xu Zhang and Jinfeng Deng and Yu Gao and Chuanyu Zhang and Yaozu Wu and Bing Zhang and Qiujiang Guo and Hekang Li and Zhen Wang and Jacob D. Biamonte and Chao Song and Dong-Ling Deng and Haohua Wang},
  title = {{Experimental quantum adversarial learning with programmable superconducting qubits}},
  journal = {Nat. Comput. Sci.},
  year = {2022},
  doi = {10.1038/s43588-022-00351-9},
}
Figure