项目作者: OriginQ

项目描述 :
QPanda 2是一种量子软件开发套件,用于处理各种量子计算机上的量子电路和实验。您可以在配置C ++语言开发环境的QPanda 2上测试或开发自己的量子应用程序。 QPanda 2支持主流量子逻辑门操作,可适应各种量子芯片,并可在不同平台下有针对性地优化量子程序。
高级语言: C++
项目地址: git://github.com/OriginQ/QPanda-2.git
创建时间: 2018-06-05T08:23:20Z
项目社区:https://github.com/OriginQ/QPanda-2

开源协议:

下载


QPanda 2

图片:

QPanda2 is an open source quantum computing framework developed by Origin Quantum, which can be used to build, run and optimize quantum algorithms.
QPanda2 is the basic library of a series of software developped by Origin Quantum, which provides core components for QRunes, Qurator and quantum computing services.

Linux Windows

Build Status | Build Status

C++ Documents Python Documents
Documentation Status Documentation Status

Install for Python

Python 3.6-3.9

Install using pip:

  1. pip install pyqpanda

Other versions of Python and C++

If you want to use other versions of Python3 or use C++ API, Compiling from source is recommended.
Reference to the Documents for tutorials

Python sample code

The following example can be used to construct quantum entanglement in a quantum computer(|0000>+|1111>), measure all qubits and run 1000 times:

  1. from pyqpanda import *
  2. qvm = CPUQVM()
  3. qvm.init_qvm()
  4. prog = QProg()
  5. q = qvm.qAlloc_many(4)
  6. c = qvm.cAlloc_many(4)
  7. prog << H(q[0])\
  8. << CNOT(q[0:-1],q[1:])\
  9. << measure_all(q,c)
  10. result = qvm.run_with_configuration(prog, c, 1000)
  11. print(result)
  12. qvm.finalize()

Results:

  1. {'0000': 518, '1111': 482}

See more examples

Other informations

How to cite

Please cite this arXiv paper: QPanda: high-performance quantum computing framework for multiple application scenarios

  1. @article{dou2022qpanda,
  2. title={QPanda: high-performance quantum computing framework for multiple application scenarios},
  3. author={Dou, Menghan and Zou, Tianrui and Fang, Yuan and Wang, Jing and Zhao, Dongyi and Yu, Lei and Chen, Boying and Guo, Wenbo and Li, Ye and Chen, Zhaoyun and Guo, Guoping},
  4. journal={arXiv preprint arXiv:2212.14201},
  5. year={2022}
  6. }

About

QPanda is developed by Origin Quantum, which is committed to the development and application of quantum computers,
It has launched 72-Qubit wukong quantum computer and 2-Qubit semi-conducting quantum chip (XW B2-100).
The goal of the team is to produce more qubit chips in recent years, provide open cloud services, and realize quantum advantages and quantum applications.
The software team underpins the hardware,In addition to QPanda, it has also developed QRunes, Qurator,
OriginQ Cloud service platform, OriginQ Education cloud and other products.

License

Apache License 2.0