QuantumNAT: Quantum Noise-Aware Training with Noise Injection, Quantization and Normalization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Hanrui, Gu, Jiaqi, Ding, Yongshan, Li, Zirui, Chong, Frederic T., Pan, David Z., Han, Song
Formato: Preprint
Publicado: 2021
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912205733101568
author Wang, Hanrui
Gu, Jiaqi
Ding, Yongshan
Li, Zirui
Chong, Frederic T.
Pan, David Z.
Han, Song
author_facet Wang, Hanrui
Gu, Jiaqi
Ding, Yongshan
Li, Zirui
Chong, Frederic T.
Pan, David Z.
Han, Song
contents Parameterized Quantum Circuits (PQC) are promising towards quantum advantage on near-term quantum hardware. However, due to the large quantum noises (errors), the performance of PQC models has a severe degradation on real quantum devices. Take Quantum Neural Network (QNN) as an example, the accuracy gap between noise-free simulation and noisy results on IBMQ-Yorktown for MNIST-4 classification is over 60%. Existing noise mitigation methods are general ones without leveraging unique characteristics of PQC; on the other hand, existing PQC work does not consider noise effect. To this end, we present QuantumNAT, a PQC-specific framework to perform noise-aware optimizations in both training and inference stages to improve robustness. We experimentally observe that the effect of quantum noise to PQC measurement outcome is a linear map from noise-free outcome with a scaling and a shift factor. Motivated by that, we propose post-measurement normalization to mitigate the feature distribution differences between noise-free and noisy scenarios. Furthermore, to improve the robustness against noise, we propose noise injection to the training process by inserting quantum error gates to PQC according to realistic noise models of quantum hardware. Finally, post-measurement quantization is introduced to quantize the measurement outcomes to discrete values, achieving the denoising effect. Extensive experiments on 8 classification tasks using 6 quantum devices demonstrate that QuantumNAT improves accuracy by up to 43%, and achieves over 94% 2-class, 80% 4-class, and 34% 10-class classification accuracy measured on real quantum computers. The code for construction and noise-aware training of PQC is available in the TorchQuantum library.
format Preprint
id arxiv_https___arxiv_org_abs_2110_11331
institution arXiv
publishDate 2021
record_format arxiv
spellingShingle QuantumNAT: Quantum Noise-Aware Training with Noise Injection, Quantization and Normalization
Wang, Hanrui
Gu, Jiaqi
Ding, Yongshan
Li, Zirui
Chong, Frederic T.
Pan, David Z.
Han, Song
Machine Learning
Artificial Intelligence
Quantum Physics
Parameterized Quantum Circuits (PQC) are promising towards quantum advantage on near-term quantum hardware. However, due to the large quantum noises (errors), the performance of PQC models has a severe degradation on real quantum devices. Take Quantum Neural Network (QNN) as an example, the accuracy gap between noise-free simulation and noisy results on IBMQ-Yorktown for MNIST-4 classification is over 60%. Existing noise mitigation methods are general ones without leveraging unique characteristics of PQC; on the other hand, existing PQC work does not consider noise effect. To this end, we present QuantumNAT, a PQC-specific framework to perform noise-aware optimizations in both training and inference stages to improve robustness. We experimentally observe that the effect of quantum noise to PQC measurement outcome is a linear map from noise-free outcome with a scaling and a shift factor. Motivated by that, we propose post-measurement normalization to mitigate the feature distribution differences between noise-free and noisy scenarios. Furthermore, to improve the robustness against noise, we propose noise injection to the training process by inserting quantum error gates to PQC according to realistic noise models of quantum hardware. Finally, post-measurement quantization is introduced to quantize the measurement outcomes to discrete values, achieving the denoising effect. Extensive experiments on 8 classification tasks using 6 quantum devices demonstrate that QuantumNAT improves accuracy by up to 43%, and achieves over 94% 2-class, 80% 4-class, and 34% 10-class classification accuracy measured on real quantum computers. The code for construction and noise-aware training of PQC is available in the TorchQuantum library.
title QuantumNAT: Quantum Noise-Aware Training with Noise Injection, Quantization and Normalization
topic Machine Learning
Artificial Intelligence
Quantum Physics
url https://arxiv.org/abs/2110.11331