HiQ-ProjectQ: Towards user-friendly and high-performance quantum computing on GPUs

Damien Nguyen1,a, Dmitry Mikushin1,b and Yung Man-Hong2
1Zurich Research Center Data Center Technology Laboratory 2012 Laboratories, Huawei Zurich, Switzerland
adamien1@huawei.com
bdmitry.mikushin@huawei.com
2Central Research Institute Data Center Technology Laboratory 2012 Laboratories, Huawei Shenzhen, China
yung.manhong@huawei.com

ABSTRACT


In this work, we present some of the latest efforts made at Huawei Research in order to improve the overall performance of ProjectQ, the quantum computing framework used as the foundation of our quantum research. Since a few years, performance assessment of the framework using profiling tools has shown that a significant portion of the compilation time is spent in doing memory management linked to the lifetime and access of Python objects. The main purpose of this work is therefore aimed at addressing some of these limitations by introducing a new C++ processing backend for ProjectQ, as well as starting a complete rewrite of the simulator code already written in C++.
The core of this work is centered around on a new C++ API for ProjectQ that moves most of the compiler processing into natively compiled code. We achieve this by providing a new compiler engine to perform the conversion from Python to C++, which ensures that we retain maximum compatibility with existing user code while providing significant speed-ups.We also introduce some of our work aimed at porting the existing C++ code to offload the more demanding calculations onto GPUs for better performance.
We then investigate the performance of this new API by comparing it with the original ProjectQ implementation, as well as some other existing quantum computing frameworks. The preliminary results show that the C++ API is able to considerably reduce the cost of compilation, to the point that the compilation process becomes mostly limited by the performance of the simulator.
Unfortunately, due to the some last minutes developments and the time frame required for the submission of the present manuscript, we are unable to provide conclusive benchmark results for the GPU-capable implementation of the simulator. These will most likely be presented during the keynote presentation at the DATE conference in 2021.

Keywords: Quantum Computing, Compilation, Projectq, Hiq.



Full Text (PDF)