Optimizing Noisy-Intermediate Scale Quantum Circuits: A Block-Based Synthesis

The current phase of quantum computing is in the Noisy Intermediate-Scale Quantum (NISQ) era. On NISQ devices, two-qubit gates such as CNOTs are much noisier than single-qubit gates, so it is essential to minimize their count. Quantum circuit synthesis is a process of decomposing an arbitrary unitary into a sequence of quantum gates, and can be used as an optimization tool to produce shorter circuits to improve overall circuit fidelity. However, the time-to-solution of synthesis grows exponentially with the number of qubits. As a result, synthesis is intractable for circuits on a large qubit scale. In this paper, we propose a hierarchical, block-by-block optimization framework, QGo, for quantum circuit optimization. Our approach allows an exponential cost optimization to scale to large circuits. QGo uses a combination of partitioning and synthesis: 1) partition the circuit into a sequence of independent circuit blocks; 2) re-generate and optimize each block using quantum synthesis; and 3) re-compose the final circuit by stitching all the blocks together. We perform our analysis and show the fidelity improvements in three different regimes: small-size circuits on real devices, medium-size circuits on noise simulations, and large-size circuits on analytical models. Using a set of NISQ benchmarks, we show that QGo can reduce the number of CNOT gates by 29.9% on average and up to 50% when compared with industrial compilers such as t|ket>. When executed on the IBM Athens system, shorter depth leads to higher circuit fidelity. We also demonstrate the scalability of our QGo technique to optimize circuits of 60+ qubits. Our technique is the first demonstration of successfully employing and scaling synthesis in the compilation toolchain for large circuits. Overall, our approach is robust for direct incorporation in production compiler toolchains.

[1]  Henry Hoffmann,et al.  Optimized Compilation of Aggregated Instructions for Realistic Quantum Computers , 2019, ASPLOS.

[2]  Attila B. Nagy On an implementation of the Solovay-Kitaev algorithm , 2006 .

[3]  Robert Wille,et al.  Improved synthesis of Clifford+T quantum functionality , 2018, 2018 Design, Automation & Test in Europe Conference & Exhibition (DATE).

[4]  Ryan O'Donnell,et al.  Quantum state certification , 2017, STOC.

[5]  Robert R. Tucci An Introduction to Cartan's KAK Decomposition for QC Programmers , 2005, quant-ph/0507171.

[6]  Robert Wille,et al.  Optimal SWAP gate insertion for nearest neighbor quantum circuits , 2014, 2014 19th Asia and South Pacific Design Automation Conference (ASP-DAC).

[7]  Xuehai Qian,et al.  AccQOC: Accelerating Quantum Optimal Control Based Pulse Generation , 2020, 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA).

[8]  Gushu Li,et al.  Tackling the Qubit Mapping Problem for NISQ-Era Quantum Devices , 2018, ASPLOS.

[9]  Ross Duncan,et al.  Phase Gadget Synthesis for Shallow Circuits , 2019, QPL.

[10]  E. Farhi,et al.  A Quantum Approximate Optimization Algorithm , 2014, 1411.4028.

[11]  Naser MohammadZadeh,et al.  An MINLP Model for Scheduling and Placement of Quantum Circuits with a Heuristic Solution Approach , 2015, ACM J. Emerg. Technol. Comput. Syst..

[12]  Robert Wille,et al.  Post Synthesis-Optimization of Reversible Circuit using Template Matching , 2020, 2020 24th International Symposium on VLSI Design and Test (VDAT).

[13]  Angel Rubio,et al.  Phonon-driven spin-Floquet magneto-valleytronics in MoS2 , 2017, Nature Communications.

[14]  Michele Mosca,et al.  Parallelizing quantum circuit synthesis , 2016, 1606.07413.

[15]  Robert Wille,et al.  Advanced exact synthesis of Clifford+T circuits , 2020, Quantum Information Processing.

[16]  Costin Iancu,et al.  Towards Optimal Topology Aware Quantum Circuit Synthesis , 2020, 2020 IEEE International Conference on Quantum Computing and Engineering (QCE).

[17]  Christiane P. Koch,et al.  Training Schrödinger’s cat: quantum optimal control , 2015, 1508.00442.

[18]  Daniel Nigg,et al.  Compiling quantum algorithms for architectures with multi-qubit gates , 2016, 1601.06819.

[19]  Kamalika Datta,et al.  A Heuristic for Linear Nearest Neighbor Realization of Quantum Circuits by SWAP Gate Insertion Using $N$-Gate Lookahead , 2016, IEEE Journal on Emerging and Selected Topics in Circuits and Systems.

[20]  Ola Al-Ta’ani,et al.  Quantum circuit synthesis using Solovay-Kitaev algorithm and optimization techniques , 2015 .

[21]  Robert Wille,et al.  Towards HDL-based Synthesis of Reversible Circuits with No Additional Lines , 2019, 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD).

[22]  Peter Selinger,et al.  Exact synthesis of multi-qubit Clifford+T circuits , 2012, ArXiv.

[23]  Peter W. Shor,et al.  Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer , 1995, SIAM Rev..

[24]  Robert Wille,et al.  Exact Multiple-Control Toffoli Network Synthesis With SAT Techniques , 2009, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems.

[25]  Fernando Magno Quintão Pereira,et al.  Qubit allocation , 2018, CGO.

[26]  Henry Hoffmann,et al.  Partial Compilation of Variational Algorithms for Noisy Intermediate-Scale Quantum Machines , 2019, MICRO.

[27]  Alexis De Vos,et al.  Block-Z X Z synthesis of an arbitrary quantum circuit , 2015, 1512.07240.

[28]  M. Heyl,et al.  Dynamical quantum phase transitions in the transverse-field Ising model. , 2012, Physical review letters.

[29]  Robert Wille,et al.  Synthesis of quantum circuits for linear nearest neighbor architectures , 2011, Quantum Inf. Process..

[30]  Travis S. Humble,et al.  Quantum supremacy using a programmable superconducting processor , 2019, Nature.

[31]  Ievgeniia Oshurko Quantum Machine Learning , 2020, Quantum Computing.

[32]  Susmita Sur-Kolay,et al.  Linear Nearest Neighbor Synthesis of Reversible Circuits by Graph Partitioning , 2011, ArXiv.

[33]  Richard Jozsa,et al.  Quantum factoring, discrete logarithms, and the hidden subgroup problem , 1996, Comput. Sci. Eng..

[34]  Frederic T. Chong,et al.  TILT: Achieving Higher Fidelity on a Trapped-Ion Linear-Tape Quantum Computing Architecture , 2020, 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA).

[35]  Katherine Yelick,et al.  QFAST: Quantum Synthesis Using a Hierarchical Continuous Circuit Space , 2020, 2003.04462.

[36]  Robert Wille,et al.  Efficient mapping of quantum circuits to the IBM QX architectures , 2017, 2018 Design, Automation & Test in Europe Conference & Exhibition (DATE).

[37]  Margaret Martonosi,et al.  ScaffCC: Scalable compilation and analysis of quantum programs , 2015, Parallel Comput..

[38]  Margaret Martonosi,et al.  SQUARE: Strategic Quantum Ancilla Reuse for Modular Quantum Programs via Cost-Effective Uncomputation , 2020, 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA).

[39]  Dmitri Maslov,et al.  Quantum Circuit Placement , 2008, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems.

[40]  Ross Duncan,et al.  t|ket⟩: a retargetable compiler for NISQ devices , 2020, Quantum Science and Technology.

[41]  Robert Wille,et al.  Synthesis of Reversible Circuits Using Conventional Hardware Description Languages , 2018, 2018 IEEE 48th International Symposium on Multiple-Valued Logic (ISMVL).

[42]  Michael J. Bremner,et al.  Quantum sampling problems, BosonSampling and quantum supremacy , 2017, npj Quantum Information.

[43]  Raymond H. Putra,et al.  Optimization of Quantum Circuit Mapping using Gate Transformation and Commutation , 2019, Integr..

[44]  John Preskill,et al.  Quantum Computing in the NISQ era and beyond , 2018, Quantum.

[45]  J. Gambetta,et al.  Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets , 2017, Nature.

[46]  Thomas G. Draper,et al.  A new quantum ripple-carry addition circuit , 2004, quant-ph/0410184.

[47]  Hideharu Amano,et al.  Extracting Success from IBM’s 20-Qubit Machines Using Error-Aware Compilation , 2019, ACM J. Emerg. Technol. Comput. Syst..

[48]  Thierry Paul,et al.  Quantum computation and quantum information , 2007, Mathematical Structures in Computer Science.

[49]  Robert König,et al.  Quantum advantage with shallow circuits , 2017, Science.

[50]  Robert Wille,et al.  A Novel Approach for Nearest Neighbor Realization of 2D Quantum Circuits , 2018, 2018 IEEE Computer Society Annual Symposium on VLSI (ISVLSI).

[51]  Alán Aspuru-Guzik,et al.  A variational eigenvalue solver on a photonic quantum processor , 2013, Nature Communications.

[52]  Daan Camps,et al.  Approximate quantum circuit synthesis using block encodings , 2020, Physical Review A.

[53]  С.И. Доронин,et al.  РЕШЕНИЕ СИСТЕМ ЛИНЕЙНЫХ УРАВНЕНИЙ НА КВАНТОВОМ ПРОЦЕССОРЕ IBM QUANTUM EXPERIENCE , 2020 .

[54]  Andrew W. Cross,et al.  The IBM Q experience and QISKit open-source quantum computing software , 2018 .

[55]  Michael A. Nielsen,et al.  The Solovay-Kitaev algorithm , 2006, Quantum Inf. Comput..

[56]  Robert Wille,et al.  Look-ahead schemes for nearest neighbor optimization of 1D and 2D quantum circuits , 2016, 2016 21st Asia and South Pacific Design Automation Conference (ASP-DAC).

[57]  Robert Wille,et al.  Determining the minimal number of swap gates for multi-dimensional nearest neighbor quantum circuits , 2015, The 20th Asia and South Pacific Design Automation Conference.

[58]  M. Mosca,et al.  A Meet-in-the-Middle Algorithm for Fast Synthesis of Depth-Optimal Quantum Circuits , 2012, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems.

[59]  Frederic T. Chong,et al.  Optimized Quantum Compilation for Near-Term Algorithms with OpenPulse , 2020, 2020 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO).

[60]  DiVincenzo Two-bit gates are universal for quantum computation. , 1994, Physical review. A, Atomic, molecular, and optical physics.

[61]  Andrew W. Cross,et al.  Quantum optimization using variational algorithms on near-term quantum devices , 2017, Quantum Science and Technology.

[62]  R. Cleve,et al.  Quantum algorithms revisited , 1997, Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences.

[63]  Dmitri Maslov,et al.  Fast and efficient exact synthesis of single-qubit unitaries generated by clifford and T gates , 2012, Quantum Inf. Comput..