Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/originq/qpanda-2
QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.
https://github.com/originq/qpanda-2
cpp14 pyqpanda python3 qpanda quantum quantum-algorithms quantum-computer-simulator quantum-computing quantum-development-kit
Last synced: 2 days ago
JSON representation
QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.
- Host: GitHub
- URL: https://github.com/originq/qpanda-2
- Owner: OriginQ
- License: apache-2.0
- Created: 2018-06-05T08:23:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T07:11:31.000Z (8 months ago)
- Last Synced: 2024-10-29T20:50:31.795Z (3 months ago)
- Topics: cpp14, pyqpanda, python3, qpanda, quantum, quantum-algorithms, quantum-computer-simulator, quantum-computing, quantum-development-kit
- Language: C++
- Homepage: https://originqc.com.cn/en/quantum_soft.html?type=qpanda&lv2id=43&lv3id=72
- Size: 18.1 MB
- Stars: 1,148
- Watchers: 24
- Forks: 91
- Open Issues: 14
-
Metadata Files:
- Readme: README(CN).md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## QPanda 2
![图片: ](./Documentation/img/1.png)
QPanda2 是由本源量子开发的开源量子计算框架,它可以用于构建、运行和优化量子算法.
QPanda2 作为本源量子计算系列软件的基础库,为QRunes、Qurator、量子计算服务提供核心部件。
## 持续化集成状态
| Linux | Windows and MacOS|
|-------------------------|------------------|
[![Build Status](https://travis-ci.org/OriginQ/QPanda-2.svg?branch=master)](https://travis-ci.org/OriginQ/QPanda-2) | [![Build Status](https://dev.azure.com/yekongxiaogang/QPanda2/_apis/build/status/OriginQ.QPanda-2?branchName=master)](https://dev.azure.com/yekongxiaogang/QPanda2/_build/latest?definitionId=4&branchName=master)| C++ 文档 | Python 文档 |
|-------------------------|-----------------|
| [![Documentation Status](https://readthedocs.org/projects/qpanda-tutorial/badge/?version=latest)](https://qpanda-tutorial.readthedocs.io/zh/latest/?badge=latest) | [![Documentation Status](https://readthedocs.org/projects/pyqpanda-toturial/badge/?version=latest)](https://pyqpanda-toturial.readthedocs.io/zh/latest/?badge=latest)## 安装
### Python 3.8-3.11
通过pip进行安装:pip install pyqpanda
### Python 其他版本和C++如果要使用Python 3的其他版本,或者直接通过C++ API进行量子编程,建议直接从源码进行编译。内容参见[使用文档](https://qpanda-tutorial.readthedocs.io/zh/latest/)
### 验证安装
下面的例子可以在量子计算机中构建量子纠缠态(|00>+|11>),对其进行测量,重复制备1000次。预期的结果是约有50%的概率使测量结果分别在00或11上。from pyqpanda import *
init(QMachineType.CPU)
prog = QProg()
q = qAlloc_many(2)
c = cAlloc_many(2)
prog.insert(H(q[0]))
prog.insert(CNOT(q[0],q[1]))
prog.insert(measure_all(q,c))
result = run_with_configuration(prog, cbit_list = c, shots = 1000)
print(result)
finalize()观察到如下结果说明您已经成功安装QPanda!(安装失败请参阅[FAQ](https://pyqpanda-toturial.readthedocs.io/zh/latest/),或在issue中提出)
{'00': 493, '11': 507}
更多的例子请参见[使用示例](https://github.com/OriginQ/QPanda-Example)。## 相关资料
- [本源量子官网](http://originqc.com.cn/)
- [本源量子云平台](http://www.qubitonline.cn/)
- [本源量子教育](https://learn-quantum.com/EDU/index.html)
- [ReadTheDocs文档(C++)](https://qpanda-tutorial.readthedocs.io/zh/latest/)
- [ReadTheDocs文档(Python)](https://pyqpanda-toturial.readthedocs.io/zh/latest/)
- [QRunes量子语言](https://qrunes-tutorial.readthedocs.io/en/latest/)
- [Qurator-VSCode](https://qurator-vscode.readthedocs.io/zh_CN/latest/)## 团队介绍
QPanda由本源量子开发,本源量子致力于量子计算机的研发与应用,已推出6-qubit超导量子芯片(KF C6-130)、2-qubit半导量子芯片(XW B2-100),团队的目标是在近年制造出更多量子比特的芯片,提供公开云服务,实现量子优势与量子应用。软件团队为硬件提供支撑,除QPanda外还开发了QRunes量子语言、Qurator量子软件开发插件、本源量子云计算云服务平台、本源量子教育云等产品。
## License
Apache License 2.0Copyright (c) 2017-2024 By Origin Quantum Computing. All Right Reserved.