Learning the quantum algorithm for state overlap

Short-depth algorithms are crucial for reducing computational error on near-term quantum computers, for which decoherence and gate infidelity remain important issues. Here we present a machine-learning approach for discovering such algorithms. We apply our method to a ubiquitous primitive: computing the overlap ${\rm Tr}(\rho\sigma)$ between two quantum states $\rho$ and $\sigma$. The standard algorithm for this task, known as the Swap Test, is used in many applications such as quantum support vector machines, and, when specialized to $\rho = \sigma$, quantifies the Renyi entanglement. Here, we find algorithms that have shorter depths than the Swap Test, including one that has constant depth (independent of problem size). Furthermore, we apply our approach to the hardware-specific connectivity and gate alphabets used by Rigetti's and IBM's quantum computers and demonstrate that the shorter algorithms that we derive significantly reduce the error - compared to the Swap Test - on these computers.

[1]  Fabio Somenzi,et al.  Logic synthesis and verification algorithms , 1996 .

[2]  DiVincenzo,et al.  Five two-bit quantum gates are sufficient to implement the quantum Fredkin gate. , 1996, Physical review. A, Atomic, molecular, and optical physics.

[3]  Quantum Digital Signatures , 2001, quant-ph/0105032.

[4]  R. Cleve,et al.  Quantum fingerprinting. , 2001, Physical review letters.

[5]  Kyusik Chung,et al.  Evolutionary Approach to Quantum and Reversible Circuits Synthesis , 2003, Artificial Intelligence Review.

[6]  Timo O. Reiss,et al.  Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms. , 2005, Journal of magnetic resonance.

[7]  Phil Stocks,et al.  A review of procedures to evolve quantum algorithms , 2007, Genetic Programming and Evolvable Machines.

[8]  Igor L. Markov,et al.  On the CNOT-cost of TOFFOLI gates , 2008, Quantum Inf. Comput..

[9]  M. Mariantoni,et al.  Surface codes: Towards practical large-scale quantum computation , 2012, 1208.0928.

[10]  John Preskill,et al.  Quantum computing and the entanglement frontier , 2012, 1203.5813.

[11]  Michael R. Geller,et al.  Simulating the transverse Ising model on a quantum computer: Error correction with the surface code , 2013 .

[12]  S. Lloyd,et al.  Quantum algorithms for supervised and unsupervised machine learning , 2013, 1307.0411.

[13]  Pedro Chamorro-Posada,et al.  swap test and Hong-Ou-Mandel effect are equivalent , 2013, 1303.6814.

[14]  T. Ralph,et al.  Implementation of a quantum Fredkin gate using an entanglement resource , 2013, 2013 Conference on Lasers & Electro-Optics Europe & International Quantum Electronics Conference CLEO EUROPE/IQEC.

[15]  Matthew B. Hastings,et al.  Faster phase estimation , 2013, Quantum Inf. Comput..

[16]  Ashish Kapoor,et al.  Quantum Nearest-Neighbor Algorithms for Machine Learning , 2014 .

[17]  Masoud Mohseni,et al.  Quantum support vector machine for big feature and big data classification , 2013, Physical review letters.

[18]  Ashish Kapoor,et al.  Quantum algorithms for nearest-neighbor methods for supervised and unsupervised learning , 2014, Quantum Inf. Comput..

[19]  Barry C. Sanders,et al.  Designing High-Fidelity Single-Shot Three-Qubit Gates: A Machine Learning Approach , 2015, ArXiv.

[20]  Dmitri Maslov,et al.  Basic circuit compilation techniques for an ion-trap quantum machine , 2016, ArXiv.

[21]  Matthias Troyer,et al.  A software methodology for compiling quantum programs , 2016, ArXiv.

[22]  M Sanz,et al.  Genetic Algorithms for Digital Quantum Simulations. , 2015, Physical review letters.

[23]  William J. Zeng,et al.  A Practical Quantum Instruction Set Architecture , 2016, ArXiv.

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

[25]  Geoff J Pryde,et al.  A quantum Fredkin gate , 2016, Science Advances.

[26]  Matthias Troyer,et al.  Entanglement spectroscopy on a quantum computer , 2017, 1707.07658.

[27]  Jeremy Frank,et al.  Compiling quantum circuits to realistic hardware architectures using temporal planners , 2017, ArXiv.

[28]  Margaret Martonosi,et al.  Programming languages and compiler design for realistic quantum hardware , 2017, Nature.

[29]  Andrew W. Cross,et al.  Open Quantum Assembly Language , 2017, 1707.03429.

[30]  Lyle Noakes,et al.  Generating three-qubit quantum circuits with neural networks , 2017, 1703.10743.

[31]  Keisuke Fujii,et al.  Quantum circuit learning , 2018, Physical Review A.

[32]  Giovanni De Micheli,et al.  Deep Learning for Logic Optimization Algorithms , 2018, 2018 IEEE International Symposium on Circuits and Systems (ISCAS).

[33]  H Neven,et al.  A blueprint for demonstrating quantum supremacy with superconducting qubits , 2017, Science.

[34]  Norbert M. Linke,et al.  Measuring the Rényi entropy of a two-site Fermi-Hubbard model on a trapped ion quantum computer , 2017, Physical Review A.

[35]  Ryan LaRose,et al.  Quantum-assisted quantum compiling , 2018, Quantum.

[36]  Alejandro Perdomo-Ortiz,et al.  A generative modeling approach for benchmarking and training shallow quantum circuits , 2018, npj Quantum Information.