Back to Search Start Over

QIRO: A Static Single Assignment-based Quantum Program Representation for Optimization

Authors :
David Ittah
Thomas Häner
Vadym Kliuchnikov
Torsten Hoefler
Source :
ACM Transactions on Quantum Computing. 3:1-32
Publication Year :
2022
Publisher :
Association for Computing Machinery (ACM), 2022.

Abstract

We propose an IR for quantum computing that directly exposes quantum and classical data dependencies for the purpose of optimization. The Quantum Intermediate Representation for Optimization (QIRO) consists of two dialects, one input dialect and one that is specifically tailored to enable quantum-classical co-optimization. While the first employs a perhaps more intuitive memory-semantics (quantum operations act on qubits via side-effects), the latter uses value-semantics (operations consume and produce states) to integrate quantum dataflow in the IR’s Static Single Assignment (SSA) graph. Crucially, this allows for a host of optimizations that leverage dataflow analysis. We discuss how to map existing quantum programming languages to the input dialect and how to lower the resulting IR to the optimization dialect. We present a prototype implementation based on MLIR that includes several quantum-specific optimization passes. Our benchmarks show that significant improvements in resource requirements are possible even through static optimization. In contrast to circuit optimization at run time, this is achieved while incurring only a small constant overhead in compilation time, making this a compelling approach for quantum program optimization at application scale.

Details

ISSN :
26436817 and 26436809
Volume :
3
Database :
OpenAIRE
Journal :
ACM Transactions on Quantum Computing
Accession number :
edsair.doi...........8f246d431e702ee6177581022c1f35fe
Full Text :
https://doi.org/10.1145/3491247