QOPS: A Compiler Framework for Quantum Circuit Simulation Acceleration with Profile Guided Optimizations

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wu, Yu-Tsung, Huang, Po-Hsuan, Chang, Kai-Chieh, Tu, Chia-Heng, Hung, Shih-Hao
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909356319047680
author Wu, Yu-Tsung
Huang, Po-Hsuan
Chang, Kai-Chieh
Tu, Chia-Heng
Hung, Shih-Hao
author_facet Wu, Yu-Tsung
Huang, Po-Hsuan
Chang, Kai-Chieh
Tu, Chia-Heng
Hung, Shih-Hao
contents Quantum circuit simulation is important in the evolution of quantum software and hardware. Novel algorithms can be developed and evaluated by performing quantum circuit simulations on classical computers before physical quantum computers are available. Unfortunately, compared with a physical quantum computer, a prolonged simulation time hampers the rapid development of quantum algorithms. Inspired by the feedback-directed optimization scheme used by classical compilers to improve the generated code, this work proposes a quantum compiler framework QOPS to enable profile-guided optimization (PGO) for quantum circuit simulation acceleration. The QOPS compiler instruments a quantum simulator to collect performance data during the circuit simulation and it then generates the optimized version of the quantum circuit based on the collected data. Experimental results show the PGO can effectively shorten the simulation time on our tested benchmark programs. Especially, the simulator-specific PGO (virtual swap) can be applied to the benchmarks to accelerate the simulation speed by a factor of 1.19. As for the hardware-independent PGO, compared with the brute force mechanism (turning on all available compilation flags), which achieves 21% performance improvement against the non-optimized version, the PGO can achieve 16% speedup with a factor of 63 less compilation time than the brute force approach.
format Preprint
id arxiv_https___arxiv_org_abs_2410_09326
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle QOPS: A Compiler Framework for Quantum Circuit Simulation Acceleration with Profile Guided Optimizations
Wu, Yu-Tsung
Huang, Po-Hsuan
Chang, Kai-Chieh
Tu, Chia-Heng
Hung, Shih-Hao
Quantum Physics
Performance
Software Engineering
Quantum circuit simulation is important in the evolution of quantum software and hardware. Novel algorithms can be developed and evaluated by performing quantum circuit simulations on classical computers before physical quantum computers are available. Unfortunately, compared with a physical quantum computer, a prolonged simulation time hampers the rapid development of quantum algorithms. Inspired by the feedback-directed optimization scheme used by classical compilers to improve the generated code, this work proposes a quantum compiler framework QOPS to enable profile-guided optimization (PGO) for quantum circuit simulation acceleration. The QOPS compiler instruments a quantum simulator to collect performance data during the circuit simulation and it then generates the optimized version of the quantum circuit based on the collected data. Experimental results show the PGO can effectively shorten the simulation time on our tested benchmark programs. Especially, the simulator-specific PGO (virtual swap) can be applied to the benchmarks to accelerate the simulation speed by a factor of 1.19. As for the hardware-independent PGO, compared with the brute force mechanism (turning on all available compilation flags), which achieves 21% performance improvement against the non-optimized version, the PGO can achieve 16% speedup with a factor of 63 less compilation time than the brute force approach.
title QOPS: A Compiler Framework for Quantum Circuit Simulation Acceleration with Profile Guided Optimizations
topic Quantum Physics
Performance
Software Engineering
url https://arxiv.org/abs/2410.09326