Among different quantum algorithms, PQC for QML show promises on near-term devices. To facilitate the QML and PQC research, a recent python library called TorchQuantum has been released. It can construct, simulate, and train PQC for machine learning tasks with high speed and convenient debugging supports. Besides quantum for ML, we want to raise the community's attention on the reversed direction: ML for quantum. Specifically, the TorchQuantum library also supports using data-driven ML models to solve problems in quantum system research, such as predicting the impact of quantum noise on circuit fidelity and improving the quantum circuit compilation efficiency.
This paper presents a case study of the ML for quantum part. Since estimating the noise impact on circuit reliability is an essential step toward understanding and mitigating noise, we propose to leverage classical ML to predict noise impact on circuit fidelity. Inspired by the natural graph representation of quantum circuits, we propose to leverage a graph transformer model to predict the noisy circuit fidelity. We firstly collect a large dataset with a variety of quantum circuits and obtain their fidelity on noisy simulators and real machines. Then we embed each circuit into a graph with gate and noise properties as node features, and adopt a graph transformer to predict the fidelity.
Evaluated on 5 thousand random and algorithm circuits, the graph transformer predictor can provide accurate fidelity estimation with RMSE error 0.04 and outperform a simple neural network-based model by 0.02 on average. It can achieve 0.99 and 0.95 R$^2$ scores for random and algorithm circuits, respectively. Compared with circuit simulators, the predictor has over 200X speedup for estimating the fidelity.
Do Quantum Transformers Help? A Systematic VQC Architecture Comparison on Tabular Benchmarks
Beth Israel Deaconess Medical Center \& Harvard Medical School Boston, MA, USA;Department of Electrophysics National Yang Ming Chiao Tung University Hsinchu, Taiwan
Learning the expressibility of quantum circuit ansatz using transformer
College of Computer and Information Engineering, Henan Normal University(河南师范大学计算机与信息工程学院);Key Laboratory of Artificial Intelligence and Personalized Learning in Education of Henan Province(河南省教育人工智能与个性化学习重点实验室);School of Electronic and Information Engineering, Foshan University(佛山大学电子信息工程学院);College of Mathematics and Informatics, South China Agricultural University(华南农业大学数学与信息学院)
Vectorized Attention with Learnable Encoding for Quantum Transformer
Texas Tech University(德克萨斯理工大学);National Energy Research Scientific Computing Center, Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室国家能源研究科学计算中心);National Quantum Laboratory(国家量子实验室)
Predicting Multipartite Entanglement in Quantum Circuits using Transformer
Bandung Institute of Technology(万隆理工学院);National Research and Innovation Agency (BRIN)(国家研究与创新局(BRIN));Institut Teknologi Bandung(万隆理工学院);Indonesia Center for Theoretical and Mathematical Physics (ICTMP)(印尼理论与数学物理中心(ICTMP));City University of Hong Kong(香港城市大学)