In this paper we propose QContext, a new compiler structure that incorporates context-aware and topology-aware decompositions. Because of circuit equivalence rules and resynthesis, variants of a gate-decomposition template may exist. QContext exploits the circuit information and the hardware topology to select the gate variant that increases circuit optimization opportunities. We study the basis-gate-level context-aware decomposition for Toffoli gates and the native-gate-level context-aware decomposition for CNOT gates. Our experiments show that QContext reduces the number of gates as compared with the state-of-the-art approach, Orchestrated Trios.
@article{arxiv.2302.02003,
title = {QContext: Context-Aware Decomposition for Quantum Gates},
author = {Ji Liu and Max Bowman and Pranav Gokhale and Siddharth Dangwal and Jeffrey Larson and Frederic T. Chong and Paul D. Hovland},
journal= {arXiv preprint arXiv:2302.02003},
year = {2023}
}