Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Giallar: push-button verification for the qiskit Quantum compiler

Conference · · Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation
 [1];  [2];  [3];  [3];  [4];  [4];  [5];  [3]
  1. Columbia University, New York, NY (United States); The University of Chicago
  2. Amazon, New York, NY (United States)
  3. Columbia University, New York, NY (United States)
  4. IBM Research, Yorktown Heights, NY (United States)
  5. University of Chicago, IL (United States)
This paper presents Giallar, a fully-automated verification toolkit for quantum compilers. Giallar requires no manual specifications, invariants, or proofs, and can automatically verify that a compiler pass preserves the semantics of quantum circuits. To deal with unbounded loops in quantum compilers, Giallar abstracts three loop templates, whose loop invariants can be automatically inferred. To efficiently check the equivalence of arbitrary input and output circuits that have complicated matrix semantics representation, Giallar introduces a symbolic representation for quantum circuits and a set of rewrite rules for showing the equivalence of symbolic quantum circuits. With Giallar, we implemented and verified 44 (out of 56) compiler passes in 13 versions of the Qiskit compiler, the open-source quantum compiler standard, during which three bugs were detected in and confirmed by Qiskit. Furthermore, our evaluation shows that most of Qiskit compiler passes can be automatically verified in seconds and verification imposes only a modest overhead to compilation performance.
Research Organization:
University of Chicago, IL (United States)
Sponsoring Organization:
USDOE Office of Science (SC), Advanced Scientific Computing Research (ASCR); National Science Foundation (NSF)
DOE Contract Number:
SC0020289
OSTI ID:
1986256
Conference Information:
Journal Name: Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation
Country of Publication:
United States
Language:
English

References (30)

A verified optimizer for Quantum circuits journal January 2021
Checking equivalence of quantum circuits and states conference November 2007
Z3: An Efficient SMT Solver book January 2008
Black-Box Equivalence Checking Across Compiler Optimizations book January 2017
Counterexample-guided correlation algorithm for translation validation journal November 2020
Quantum Circuit Simplification and Level Compaction journal March 2008
Going Beyond Bell’s Theorem book January 1989
An axiomatic basis for computer programming journal October 1969
Formal verification of a realistic compiler journal July 2009
Quantum Computation and Quantum Information book January 2011
Translation validation for an optimizing compiler conference May 2000
An Automated Deductive Verification Framework for Circuit-building Quantum Programs book March 2021
Noise-Adaptive Compiler Mappings for Noisy Intermediate-Scale Quantum Computers
  • Murali, Prakash; Baker, Jonathan M.; Javadi-Abhari, Ali
  • ASPLOS '19: Architectural Support for Programming Languages and Operating Systems, Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems https://doi.org/10.1145/3297858.3304075
conference April 2019
QWIRE: a core language for quantum circuits conference January 2017
Tackling the Qubit Mapping Problem for NISQ-Era Quantum Devices
  • Li, Gushu; Ding, Yufei; Xie, Yuan
  • ASPLOS '19: Architectural Support for Programming Languages and Operating Systems, Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems https://doi.org/10.1145/3297858.3304023
conference April 2019
Software Mitigation of Crosstalk on Noisy Intermediate-Scale Quantum Computers
  • Murali, Prakash; Mckay, David C.; Martonosi, Margaret
  • ASPLOS '20: Architectural Support for Programming Languages and Operating Systems, Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems https://doi.org/10.1145/3373376.3378477
conference March 2020
QASMBench: A Low-Level Quantum Benchmark Suite for NISQ Evaluation and Simulation journal February 2023
Optimized Compilation of Aggregated Instructions for Realistic Quantum Computers
  • Shi, Yunong; Leung, Nelson; Gokhale, Pranav
  • ASPLOS '19: Architectural Support for Programming Languages and Operating Systems, Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems https://doi.org/10.1145/3297858.3304018
conference April 2019
Scaling symbolic evaluation for automated verification of systems code with Serval conference October 2019
Towards Large-scale Functional Verification of Universal Quantum Circuits journal January 2019
ReQWIRE: Reasoning about Reversible Quantum Circuits journal January 2019
Hyperkernel conference October 2017
Provably correct peephole optimizations with alive conference June 2015
Certified concurrent abstraction layers journal June 2018
Bugs4Q: A Benchmark of Real Bugs for Quantum Programs conference November 2021
Programming quantum computers: a primer with IBM Q and D-Wave exercises
  • Mueller, Frank; Byrd, Greg; Dreher, Patrick
  • PPoPP '19: 24th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Proceedings of the 24th Symposium on Principles and Practice of Parallel Programming https://doi.org/10.1145/3293883.3302578
conference February 2019
Learning nonlinear loop invariants with gated continuous logic networks conference June 2020
Gleipnir: toward practical error analysis for Quantum programs conference June 2021
Quantitative robustness analysis of quantum programs journal January 2019
Deep Specifications and Certified Abstraction Layers journal January 2015

Similar Records

Correct Compilation of Concurrent C Code
Technical Report · Tue Feb 28 23:00:00 EST 2023 · OSTI ID:2480189

Orchestrated trios: compiling for efficient communication in Quantum programs with 3-Qubit gates
Conference · Sat Apr 17 00:00:00 EDT 2021 · OSTI ID:1865297

C2QA - Bosonic Qiskit
Conference · Tue Nov 01 00:00:00 EDT 2022 · OSTI ID:1903300