Quantum rotations: A case study in static and dynamic machine-code generation for quantum computers

Conference Paper

Work in quantum computer architecture has focused on communication, layout and fault tolerance, largely driven by Shor's factorization algorithm. For the first time, we study a larger range of benchmarks and find that another critical issue is the generation of code sequences for quantum rotation operations. Specifically, quantum algorithms require arbitrary rotation angles, while quantum technologies and error correction codes provide only for discrete angles and operators. A sequence of quantum machine instructions must be generated to approximate the arbitrary rotation to the required precision. While previous work has focused exclusively on static compilation, we find that some applications require dynamic code generation and explore the advantages and disadvantages of static and dynamic approaches. We find that static code generation can, in some cases, lead to a terabyte of machine code to support required rotations. We also find that some rotation angles are unknown until run time, requiring dynamic code generation. Dynamic code generation, however, exhibits significant trade-offs in terms of time overhead versus code size. Furthermore, dynamic code generation will be performed on classical (non-quantum) computing resources, which may or may not have a clock speed advantage over the target quantum technology. For example, operations on trapped ions run at kilohertz speeds, but superconducting qubits run at gigahertz speeds. We introduce a new method for compiling arbitrary rotations dynamically, designed to minimize compilation time. The new method reduces compilation time by up to five orders of magnitude while increasing code size by one order of magnitude. We explore the design space formed by these trade-offs of dynamic versus static code generation, code quality, and quantum technology. We introduce several techniques to provide smoother trade-offs for dynamic code generation and evaluate the viability of options in the design space. Copyright 2013 ACM.

Full Text

Duke Authors

Cited Authors

  • Kudrow, D; Bier, K; Deng, Z; Franklin, D; Tomita, Y; Brown, KR; Chong, FT

Published Date

  • August 12, 2013

Published In

Start / End Page

  • 166 - 176

International Standard Serial Number (ISSN)

  • 1063-6897

International Standard Book Number 13 (ISBN-13)

  • 9781450320795

Digital Object Identifier (DOI)

  • 10.1145/2485922.2485937

Citation Source

  • Scopus