TL;DR
This paper introduces QUESO, an automated system that synthesizes quantum-circuit optimizers tailored to specific quantum hardware. By leveraging path-sum semantics and probabilistic polynomial identity testing, QUESO can generate highly efficient optimizers that outperform existing state-of-the-art tools, significantly reducing the complexity of quantum computations.
What Problem Does This Paper Address?
Quantum computers, especially those in the Noisy Intermediate-Scale Quantum (NISQ) era, are prone to errors. To mitigate these errors and obtain reliable results, quantum circuits need to be optimized to minimize the number of noisy operations. However, the rapid evolution of quantum hardware means that optimizers often need to be rewritten or heavily modified for each new device or architecture. This process is tedious, iterative, and error-prone, creating a bottleneck for quantum computing research and development. The authors aim to automate this process by synthesizing quantum-circuit optimizers directly from a specification of the quantum architecture.
Methods
QUESO employs a four-pronged approach:
- Path-Sum-Based Circuit Semantics: This novel algebraic approach allows for the representation and reasoning about complex symbolic rewrite rules, including those involving unknown parameters or subcircuits. It compactly captures the semantics of quantum systems as transition relations.
- Probabilistic Equivalence Verification: The paper reduces the problem of checking quantum circuit equivalence to a constrained form of polynomial identity testing (PIT). This is efficiently solved using the Schwartz-Zippel randomized algorithm, which is significantly faster than traditional verification methods.
- Polynomial Identity Filter (PIF): This probabilistic data structure efficiently synthesizes equivalent pairs of circuits without the quadratic explosion of pairwise comparisons. It groups circuits into equivalence classes with high probability.
- Beam-Search-Based Optimizer: A beam-search algorithm is used to efficiently apply the synthesized rewrite rules to optimize quantum circuits, aiming to minimize a cost function (typically the number of gates).
Datasets
The paper evaluates QUESO on a set of 33 benchmark circuits. These include circuits from prior optimization work, arithmetic circuits, Toffoli gate networks, and a new class of quantum approximate optimization algorithm (QAOA) circuits.
Key Insights and Ideas
- Automating Optimizer Synthesis: The core insight is that quantum-circuit optimizers themselves can be automatically synthesized, adapting to new hardware without manual intervention.
- Symbolic Rules are Crucial: The ability to handle "symbolic" gates (gates with unknown parameters or behaviors) is critical for discovering sophisticated, long-range optimizations that are essential for effective circuit reduction.
- PIT as a Powerful Equivalence Checker: Reducing circuit equivalence to polynomial identity testing provides a highly efficient and scalable method for verifying the correctness of rewrite rules.
- PIF for Scalable Synthesis: The PIF data structure is key to overcoming the combinatorial explosion in synthesizing a large number of rewrite rules.
Key Results
- QUESO can synthesize optimizers for four different quantum architectures in approximately 2 minutes.
- For IBM computers, QUESO-based optimizers outperform leading compilers like Qiskit and TKET on 85% of benchmark circuits.
- QUESO synthesizes rules an order of magnitude faster than the Quartz superoptimizer and outperforms Quartz on 97% of benchmarks when comparing synthesized rules.
- A small subset of synthesized rules (35 out of 701 for IBM) is sufficient for achieving near-optimal circuit reduction, leading to runtime speedups of up to 225x.
- Symbolic rules significantly contribute to QUESO's performance.
Limitations and Future Work
- Limitations: The paper notes that some optimizations, like those found in the Cross et al. [2019] work (resynthesizing arbitrary two-qubit circuits), are not fully captured by QUESO and are left as an avenue for future work. The current approach also has limitations in handling complex parameter expressions in rules.
- Future Work: The authors suggest exploring (1) learning-based techniques for scheduling rewrite rules to further speed up optimization and (2) enhancing symbolic rules to capture more sophisticated optimizations.
Summary updated