Introduction
In the current Noisy Intermediate-Scale Quantum (NISQ) era, quantum computers are highly susceptible to noise. Every gate operation introduces errors, meaning that deeper circuits—those with more sequential operations—are more likely to produce incorrect results. To mitigate this, quantum compilers are used to optimize circuits by reducing their depth. However, traditional compilers often rely on manually curated sets of optimization rules, which can miss complex identities, especially for custom or hardware-specific gate sets.
Methodology: The Quanto Framework
Quanto addresses these limitations by introducing a two-phase optimization process that automatically discovers and applies circuit identities.
1. Automatic Identity Generation (Offline)
Instead of relying on human intuition, Quanto uses a brute-force approach to discover identities. Given a specific gate set (e.g., X, H, CNOT), it enumerates all possible small circuits up to a defined depth. For each circuit, it calculates the corresponding unitary matrix and stores it in a database indexed by a "fingerprint" (a hash of the matrix). When multiple circuits map to the same matrix, they are identified as equivalent, forming a library of circuit identities.
2. Tile-Based Optimization (Online)
To optimize a large input circuit, Quanto employs a "tiling" strategy. The circuit is partitioned into smaller sub-circuits, or "tiles," of a specific width and height.
For each tile, Quanto queries its pre-generated database for an equivalent circuit with a lower cost, typically measured by circuit depth. If a shallower equivalent is found, the tile is replaced. This process is repeated iteratively across the entire circuit to achieve global depth reduction.
Evaluation and Results
The performance of Quanto was evaluated against industry-standard compilers, including IBM's Qiskit and Cambridge Quantum's Tket, across various benchmarks.
Performance Comparison
Quanto consistently matched or outperformed existing compilers. In several test cases, it successfully reduced circuit depth where other compilers failed. For instance, in circuits where Qiskit and Tket maintained a depth of 3 or 5, Quanto was able to reduce the depth to 1 by discovering non-obvious identities.
Flexibility with Custom Gate Sets
A key advantage of Quanto is its ability to handle custom gate sets, such as those involving the iSwap gate. While standard compilers often lack pre-defined rules for specialized hardware gates, Quanto’s automatic generation phase allows it to adapt to any gate set, finding optimizations that human-curated libraries miss.
Conclusion and Future Work
Quanto demonstrates that automatic identity generation combined with local tiling is a powerful approach for quantum circuit optimization. By moving beyond human-defined rules, it uncovers novel simplifications that significantly reduce circuit depth and noise. Future research will focus on improving the scalability of the identity generation phase and extending the framework to handle parameterized gates through symbolic identity generation.
Summary updated