A key challenge of quantum programming is uncomputation: the reversible deallocation of qubits. And while there has been much recent progress on automating uncomputation, state-of-the-art methods are insufficient for handling today's expressive quantum programming languages. A core reason is that they operate on primitive quantum circuits, while quantum programs express computations beyond circuits, for instance, they can capture families of circuits defined recursively in terms of uncomputation and adjoints. In this paper, we introduce the first modular automatic approach to synthesize correct and efficient uncomputation for expressive quantum programs. Our method is based on two core technical contributions: (i) an intermediate representation (IR) that can capture expressive quantum programs and comes with support for uncomputation, and (ii) modular algorithms over that IR for synthesizing uncomputation and adjoints. We have built a complete end-to-end implementation of our method, including an implementation of the IR and the synthesis algorithms, as well as a translation from an expressive fragment of the Silq programming language to our IR and circuit generation from the IR. Our experimental evaluation demonstrates that we can handle programs beyond the capabilities of existing uncomputation approaches, while being competitive on the benchmarks they can handle. More broadly, we show that it is possible to benefit from the greater expressivity and safety offered by high-level quantum languages without sacrificing efficiency.
机构:
Univ Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, JapanUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
Takeda, Shuntaro
Endo, Mamoru
论文数: 0引用数: 0
h-index: 0
机构:
Univ Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, JapanUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
Endo, Mamoru
Asavanant, Warit
论文数: 0引用数: 0
h-index: 0
机构:
Univ Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, JapanUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
Asavanant, Warit
Yoshikawa, Jun-ichi
论文数: 0引用数: 0
h-index: 0
机构:
Univ Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, JapanUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
Yoshikawa, Jun-ichi
van Loock, Peter
论文数: 0引用数: 0
h-index: 0
机构:
Johannes Gutenberg Univ Mainz, Inst Phys, Staudingerweg 7, D-55128 Mainz, GermanyUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
van Loock, Peter
Furusawa, Akira
论文数: 0引用数: 0
h-index: 0
机构:
Univ Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
RIKEN, Ctr Quantum Comp, Opt Quantum Comp Res Team, 2-1 Hirosawa, Wako, Saitama 3510198, JapanUniv Tokyo, Dept Appl Phys, Sch Engn, Bunkyo Ku, 7-3-1 Hongo, Tokyo 1138656, Japan
机构:
Hong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R ChinaHong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R China
Yuan, Haidong
Wei, Daxiu
论文数: 0引用数: 0
h-index: 0
机构:
E China Normal Univ, Dept Phys, Shanghai 200062, Peoples R China
E China Normal Univ, Shanghai Key Lab Magnet Resonance, Shanghai 200062, Peoples R ChinaHong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R China
Wei, Daxiu
Zhang, Yajuan
论文数: 0引用数: 0
h-index: 0
机构:
E China Normal Univ, Dept Phys, Shanghai 200062, Peoples R China
E China Normal Univ, Shanghai Key Lab Magnet Resonance, Shanghai 200062, Peoples R ChinaHong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R China
Zhang, Yajuan
Glaser, Steffen
论文数: 0引用数: 0
h-index: 0
机构:
Tech Univ Munich, Dept Chem, D-85747 Garching, GermanyHong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R China
Glaser, Steffen
Khaneja, Navin
论文数: 0引用数: 0
h-index: 0
机构:
Harvard Univ, Sch Engn & Appl Sci, Cambridge, MA 02138 USAHong Kong Polytech Univ, Dept Appl Math, Hong Kong, Hong Kong, Peoples R China
机构:
Arizona State Univ, Beyond Ctr Fundamental Concepts Sci, 650 Tyler Mall, Tempe, AZ 85287 USA
Arizona State Univ, Dept Phys, 550 Tyler Mall, Tempe, AZ 85287 USAArizona State Univ, Beyond Ctr Fundamental Concepts Sci, 650 Tyler Mall, Tempe, AZ 85287 USA
Aalsma, Lars
Keeler, Cynthia
论文数: 0引用数: 0
h-index: 0
机构:
Arizona State Univ, Dept Phys, 550 Tyler Mall, Tempe, AZ 85287 USAArizona State Univ, Beyond Ctr Fundamental Concepts Sci, 650 Tyler Mall, Tempe, AZ 85287 USA
Keeler, Cynthia
Zukowski, Claire
论文数: 0引用数: 0
h-index: 0
机构:
Univ Minnesota Duluth, Dept Phys & Astron, 1023 Univ Dr, Duluth, MN 55812 USAArizona State Univ, Beyond Ctr Fundamental Concepts Sci, 650 Tyler Mall, Tempe, AZ 85287 USA
机构:
Univ Colima, Fac Ciencias, Villa San Sebastian 28045, Colima, MexicoUniv Colima, Fac Ciencias, Villa San Sebastian 28045, Colima, Mexico
Castano-Bernard, C.
Gendron, T. M.
论文数: 0引用数: 0
h-index: 0
机构:
Univ Nacl Autonoma Mexico, Inst Matemat, Unidad Cuernavaca, Cuernavaca 62210, Morelos, MexicoUniv Colima, Fac Ciencias, Villa San Sebastian 28045, Colima, Mexico