Skip to main content
QUICK REVIEW

[Paper Review] Verified Optimization in a Quantum Intermediate Representation

Kesha Hietala, Robert W. Rand|arXiv (Cornell University)|Apr 12, 2019
Quantum Computing Algorithms and ArchitectureComputer Science25 references7 citations
TL;DR

This paper introduces s qir e, a low-level quantum intermediate representation embedded in Coq that enables formal verification of quantum program optimizations and correctness. By using a global qubit register and leveraging Coq's proof assistant, the authors verify key quantum optimizations and prove the correctness of the Deutsch-Jozsa algorithm, demonstrating the first verified optimizations for a realistic low-level quantum language.

ABSTRACT

We present sqire, a low-level language for quantum computing and verification. sqire uses a global register of quantum bits, allowing easy compilation to and from existing `quantum assembly' languages and simplifying the verification process. We demonstrate the power of sqire as an intermediate representation of quantum programs by verifying a number of useful optimizations, and we demonstrate sqire's use as a tool for general verification by proving several quantum programs correct.

Motivation & Objective

  • To address the challenge of verifying quantum program optimizations due to the high cost and indeterminacy of quantum execution.
  • To develop a practical, low-level quantum intermediate representation (IR) that supports formal verification and compilation to real quantum hardware.
  • To enable verification of both optimizations and quantum algorithms in a single formal framework using Coq.
  • To bridge the gap between high-level quantum programming and verified compilation to near-term quantum devices.
  • To lay the foundation for a certified quantum compiler stack from high-level languages to optimized, correct quantum circuits.

Proposed method

  • s qir e is a Coq-embedded, low-level quantum language that uses concrete qubit indices in a global register, simplifying compilation and verification.
  • The language supports unitary operations, measurements, and controlled gates, with formal semantics based on density matrices.
  • Optimizations such as gate fusion and identity removal are formally verified using Coq’s dependent types and proof checker.
  • The correctness of the Deutsch-Jozsa algorithm is proven via a key lemma showing the acceptance probability depends on the number of 1-valued inputs.
  • A proof by induction on Boolean functions is used to establish the success probability of the Deutsch-Jozsa circuit.
  • The framework supports verification of both circuit transformations and full quantum programs using quantum Hoare logic principles.

Experimental results

Research questions

  • RQ1Can a low-level quantum intermediate representation be formally verified to support correct optimization of quantum circuits?
  • RQ2How can formal methods be applied to verify quantum algorithms like Deutsch-Jozsa in a machine-checked way?
  • RQ3What are the key design trade-offs in choosing a low-level IR for verified quantum compilation?
  • RQ4Can verified optimizations in a low-level language be expressed and proven correct using Coq’s dependent type system?
  • RQ5How can formal verification techniques be extended to support realistic constraints of near-term quantum hardware?

Key findings

  • The authors successfully verified multiple optimizations in s qir e, including gate fusion and identity removal, ensuring they preserve quantum semantics.
  • The Deutsch-Jozsa algorithm was formally proven correct using a key lemma that relates the acceptance probability to the number of inputs evaluating to 1.
  • The success probability of the Deutsch-Jozsa circuit is mathematically shown to be (1 - 2 * count P / 2^dim), which depends on the function’s balance.
  • The proof of correctness relies on structural induction over Boolean functions, with base cases for identity and bit-flip operations.
  • The framework demonstrates that verified compilation from high-level quantum programs to low-level, optimized s qir e code is feasible and practical.
  • s qir e is shown to be suitable for pedagogy and as a foundation for future certified quantum compilation stacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.