Skip to main content
QUICK REVIEW

[Paper Review] Quanto: Optimizing Quantum Circuits with Automatic Generation of Circuit Identities

Jessica Pointing, Oded Padon|arXiv (Cornell University)|Nov 22, 2021
Quantum Computing Algorithms and ArchitectureComputer Science13 citations
TL;DR

Quanto is the first quantum circuit optimizer that automatically generates provably correct circuit identities for arbitrary gate sets using symbolic enumeration and matrix equivalence checking. It applies these identities to reduce circuit depth beyond existing compilers like Qiskit and Tket, achieving significant optimizations through cost-based search and substitution on logical circuits.

ABSTRACT

Existing quantum compilers focus on mapping a logical quantum circuit to a quantum device and its native quantum gates. Only simple circuit identities are used to optimize the quantum circuit during the compilation process. This approach misses more complex circuit identities, which could be used to optimize the quantum circuit further. We propose Quanto, the first quantum optimizer that automatically generates circuit identities. Quanto takes as input a gate set and generates provably correct circuit identities for the gate set. Quanto's automatic generation of circuit identities includes single-qubit and two-qubit gates, which leads to a new database of circuit identities, some of which are novel to the best of our knowledge. In addition to the generation of new circuit identities, Quanto's optimizer applies such circuit identities to quantum circuits and finds optimized quantum circuits that have not been discovered by other quantum compilers, including IBM Qiskit and Cambridge Quantum Computing Tket. Quanto's database of circuit identities could be applied to improve existing quantum compilers and Quanto can be used to generate identity databases for new gate sets.

Motivation & Objective

  • To address the limitation of existing quantum compilers that rely on hard-coded, simple optimization rules.
  • To enable automatic discovery of complex, provably correct circuit identities for arbitrary gate sets.
  • To reduce quantum circuit depth and noise by applying newly generated identities during compilation.
  • To create a reusable database of circuit identities for improving existing and future quantum compilers.

Proposed method

  • Uses symbolic enumeration to generate all possible quantum circuits up to a fixed depth and number of qubits over a given gate set.
  • Employs matrix equivalence checking (within floating-point precision) to identify equivalent circuits and extract identities.
  • Builds a cost-based search algorithm to select and apply the most effective identities for circuit optimization.
  • Supports modular integration via QASM input and outputs optimized circuits in QASM or Qiskit format.
  • Applies substitutions tile-by-tile, with transformations to maintain gate consistency and connectivity.
  • Uses a two-phase pipeline: offline identity generation followed by online circuit optimization using the identity database.

Experimental results

Research questions

  • RQ1Can automatic generation of circuit identities lead to deeper quantum circuit optimizations than rule-based compilers?
  • RQ2What is the impact of discovering novel, non-trivial circuit identities on circuit depth reduction?
  • RQ3How does the cost-based search strategy compare to handcrafted rule sequences in optimization effectiveness?
  • RQ4Can the generated identity database be reused across different compilers and gate sets?
  • RQ5To what extent can automatic identity generation outperform existing tools like Qiskit and Tket in depth reduction?

Key findings

  • Quanto automatically generates a new database of provably correct circuit identities, including novel identities not previously known.
  • The optimizer reduces circuit depth beyond what is achievable with Qiskit and Tket, demonstrating superior optimization capability.
  • The system successfully identifies and applies complex identities that are not captured by existing rule-based optimizers.
  • Optimization is achieved through a cost-based search that selects the most effective identity substitutions.
  • The approach is generalizable, enabling identity database generation for any gate set, including custom or emerging ones.
  • The implementation supports standard formats like QASM and Qiskit, ensuring compatibility with existing quantum software 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.