Enabling Quantum Computer Simulations on AMD GPUs: a HIP Backend for Google's qsim
2023 (English)In: Proceedings of 2023 SC Workshops of the International Conference on High Performance Computing, Network, Storage, and Analysis, SC Workshops 2023, Association for Computing Machinery (ACM) , 2023, p. 1478-1486Conference paper, Published paper (Refereed)
Abstract [en]
Quantum computer simulators play a critical role in supporting the development and validation of quantum algorithms and hardware. This study focuses on porting Google's qsim, a quantum computer simulator, to AMD Graphics Processing Units (GPUs). We leverage the existing qsim CUDA backend and harness the HIPIFY tool to provide a qsim HIP backend tailored for AMD GPUs. Our performance analysis centers on evaluating the HIP backend's capabilities, executed on a computing node equipped with the AMD MI250X GPU and the AMD EPYC Trento CPU. We use the Random Quantum Circuit (RQC) sampling benchmark, employing a circuit featuring 30 qubits. The qsim HIP backend on AMD GPU outperforms the CPU version by a remarkable margin, achieving seven to nine times faster speeds. Our investigation also compares qsim's performance on the Nvidia A100 and AMD MI250X GPUs. The Nvidia A100 consistently outperforms the AMD MI250x counterpart, and this performance gap further widens with optimal gate fusion configurations. For instance, a two-gate fusion configuration exhibits a 5% difference, whereas a four-gate fusion setup reveals a large 44% performance gap. Our work highlights the substantial performance advantage of GPU-based quantum simulation over traditional CPU approaches. Despite a performance lag compared to the qsim CUDA backend, the AMD HIP qsim backend emerges as a competitive alternative poised for further optimization.
Place, publisher, year, edition, pages
Association for Computing Machinery (ACM) , 2023. p. 1478-1486
Keywords [en]
AMD GPUs, HIP, MI250x, qsim, quantum computer simulator, state vector simulator
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:kth:diva-341469DOI: 10.1145/3624062.3624223Scopus ID: 2-s2.0-85178136529OAI: oai:DiVA.org:kth-341469DiVA, id: diva2:1824912
Conference
2023 International Conference on High Performance Computing, Network, Storage, and Analysis, SC Workshops 2023, Denver, United States of America, Nov 12 2023 - Nov 17 2023
Note
QC 20240108
Part of ISBN 979-840070785-8
2024-01-082024-01-082024-01-08Bibliographically approved