量子电子学报 ›› 2020, Vol. 37 ›› Issue (2): 202-209.

• 量子光学 • 上一篇    下一篇

基于IBM Q的Deutsch-Jozsa算法实现

戴 娟,李志强,潘苏含,张 威,胡佳佳   

  1. 扬州大学信息工程学院,江苏 扬州 225100
  • 收稿日期:2019-06-25 修回日期:2019-10-10 出版日期:2020-03-28 发布日期:2020-03-28
  • 通讯作者: 李志强 E-mail:yzqqLzq@163.com
  • 作者简介:戴 娟 (1996-),女,江苏盐城人,研究生,主要从事量子电路综合方面的研究。 E-mail:yzdxdaij@163.com
  • 基金资助:
    Supported by National Natural Science Foundation of China (国家自然科学基金,61070240),Natural Science Foundation of Universities in Jiangsu Province(江苏省高校自然科学基金,10KJB520021)

Deutsch-Jozsa algorithm realized on IBM Q

DAI Juan,LI Zhiqiang,PAN Suhan,ZHANG Wei,HU Jiajia   

  1. College of Information Engineering, Yangzhou University, Yangzhou 225100, China
  • Received:2019-06-25 Revised:2019-10-10 Published:2020-03-28 Online:2020-03-28

摘要: Deutsch-Jozsa算法首次实现了对经典算法的指数级加速,解决了n个量子比特的Deutsch问题,奠定了量子算法的基本思想,体现了量子叠加性和并行性的特征。首次提出了一种综合算法,可自动生成2比特Deutsch-Jozsa算法的全部8个真值表与量子电路。并给出了一种综合方法,可在f(x)对应电路未知的情况下构建量子电路。通常用经典算法解决该问题最多执行2n-1+1次判断,而Deutsch-Jozsa算法只需要一步就可以完成,虽然新提出的方法需要两步,但为实际应用中不同问题的解决提供了另一种可能的途径。进一步通过IBM Q Experience平台运行生成的量子电路,验证了量子电路和Deutsch-Jozsa算法的正确性。

关键词: 量子信息, Deutsch-Jozsa算法, 量子电路, 综合算法, IBM Q Experience

Abstract: Deutsch-Jozsa algorithm realizes the exponential acceleration of classical algorithm for the first time, and solves the Deutsch problem of n qubits. The algorithm establishes the basic idea of quantum algorithms, and the implementation of which embodies the characteristics of quantum superposition and parallelism. A comprehensive algorithm is proposed for the first time, which can automatically generate all 8 truth tables and quantum circuits of 2-bit Deutsch-Jozsa algorithm. A synthesis method is given further to judge the properties of f(x) by constructing quantum circuit when the corresponding circuit is unknown. Generally, a typical classical algorithm solves this problem by doing 2n-1+1 times, and the Deutsch-Jozsa algorithm only needs one time. Although the new approach requires two steps to solve the problem, it provides another possible way to solve the problems with specific requirements in practical application. In addition, the correctness of the quantum circuits and Deutsch-Jozsa algorithm is verified by IBM Q Experience platform.

Key words: quantum information, Deutsch-Jozsa algorithm, quantum circuits, synthesis algorithm, IBM Q Experience

中图分类号: