QuantumNAT:结合噪声注入、量化与归一化的量子噪声感知训练
QuantumNAT: Quantum Noise-Aware Training with Noise Injection, Quantization and Normalization
AI总结:
针对参数化量子电路在真实量子设备上因噪声导致性能严重退化的问题,提出PQC专用框架QuantumNAT,通过测量后归一化、噪声注入和测量后量化提升鲁棒性,在8项分类任务中最高提升43%准确率。
摘要:
参数化量子电路(PQC)在近期量子硬件上实现量子优势方面具有前景。然而,由于巨大的量子噪声(错误),PQC模型在真实量子设备上的性能严重退化。以量子神经网络(QNN)为例,在IBMQ-Yorktown上进行MNIST-4分类时,无噪声模拟与含噪结果之间的准确率差距超过60%。现有的噪声缓解方法是通用方法,未利用PQC的独特特性;另一方面,现有的PQC工作未考虑噪声影响。为此,我们提出QuantumNAT,一个PQC专用框架,在训练和推理阶段执行噪声感知优化以提高鲁棒性。我们通过实验观察到,量子噪声对PQC测量结果的影响是从无噪声结果经过缩放和偏移因子的线性映射。受此启发,我们提出测量后归一化以缓解无噪声和含噪场景之间的特征分布差异。此外,为提高对噪声的鲁棒性,我们根据量子硬件的真实噪声模型,通过向PQC插入量子错误门,提出在训练过程中注入噪声。最后,引入测量后量化将测量结果量化为离散值,实现去噪效果。在6台量子设备上的8项分类任务的大量实验表明,QuantumNAT将准确率提高了高达43%,并在真实量子计算机上实现了超过94%的2分类、80%的4分类和34%的10分类准确率。PQC的构建和噪声感知训练代码可在TorchQuantum库中获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。