{"id":15130184,"url":"https://github.com/originq/qpanda-2","last_synced_at":"2025-05-16T03:05:42.458Z","repository":{"id":34154337,"uuid":"136144680","full_name":"OriginQ/QPanda-2","owner":"OriginQ","description":"QPanda 2 is an open source quantum computing framework developed by  OriginQC that can be used to build, run, and optimize quantum algorithms. ","archived":false,"fork":false,"pushed_at":"2024-11-13T07:07:54.000Z","size":20043,"stargazers_count":1168,"open_issues_count":15,"forks_count":92,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-05-16T03:05:36.587Z","etag":null,"topics":["cpp14","pyqpanda","python3","qpanda","quantum","quantum-algorithms","quantum-computer-simulator","quantum-computing","quantum-development-kit"],"latest_commit_sha":null,"homepage":"https://originqc.com.cn/en/quantum_soft.html?type=qpanda\u0026lv2id=43\u0026lv3id=72","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OriginQ.png","metadata":{"files":{"readme":"README(CN).md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-05T08:23:20.000Z","updated_at":"2025-05-08T13:36:51.000Z","dependencies_parsed_at":"2024-01-13T12:52:34.058Z","dependency_job_id":"f14d958d-e1da-4d94-aaa8-11a8c34e75c7","html_url":"https://github.com/OriginQ/QPanda-2","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginQ%2FQPanda-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginQ%2FQPanda-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginQ%2FQPanda-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginQ%2FQPanda-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OriginQ","download_url":"https://codeload.github.com/OriginQ/QPanda-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp14","pyqpanda","python3","qpanda","quantum","quantum-algorithms","quantum-computer-simulator","quantum-computing","quantum-development-kit"],"created_at":"2024-09-26T02:41:19.058Z","updated_at":"2025-05-16T03:05:37.446Z","avatar_url":"https://github.com/OriginQ.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## QPanda 2\n\n![图片: ](./Documentation/img/1.png)\n\nQPanda2 是由本源量子开发的开源量子计算框架，它可以用于构建、运行和优化量子算法.\n\nQPanda2 作为本源量子计算系列软件的基础库，为QRunes、Qurator、量子计算服务提供核心部件。\n\n## 持续化集成状态\n| Linux                | Windows and MacOS|\n|-------------------------|------------------|\n[![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\u0026branchName=master)   \n\n| C++ 文档         | Python 文档 |\n|-------------------------|-----------------|\n | [![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)    \n\n## 安装\n### Python 3.8-3.11\n通过pip进行安装：\n\n    pip install pyqpanda\n    \n### Python 其他版本和C++\n\n如果要使用Python 3的其他版本，或者直接通过C++ API进行量子编程，建议直接从源码进行编译。内容参见[使用文档](https://qpanda-tutorial.readthedocs.io/zh/latest/)\n\n### 验证安装\n下面的例子可以在量子计算机中构建量子纠缠态(|00\u003e+|11\u003e)，对其进行测量，重复制备1000次。预期的结果是约有50%的概率使测量结果分别在00或11上。\n\n    from pyqpanda import *\n\n    init(QMachineType.CPU)\n    prog = QProg()\n    q = qAlloc_many(2)\n    c = cAlloc_many(2)\n    prog.insert(H(q[0]))\n    prog.insert(CNOT(q[0],q[1]))\n    prog.insert(measure_all(q,c))\n    result = run_with_configuration(prog, cbit_list = c, shots = 1000)\n    print(result)\n    finalize()\n\n观察到如下结果说明您已经成功安装QPanda！（安装失败请参阅[FAQ](https://pyqpanda-toturial.readthedocs.io/zh/latest/)，或在issue中提出）\n    \n    {'00': 493, '11': 507}\n    \n更多的例子请参见[使用示例](https://github.com/OriginQ/QPanda-Example)。\n\n## 相关资料\n\n - [本源量子官网](http://originqc.com.cn/)\n - [本源量子云平台](http://www.qubitonline.cn/)\n - [本源量子教育](https://learn-quantum.com/EDU/index.html)\n - [ReadTheDocs文档(C++)](https://qpanda-tutorial.readthedocs.io/zh/latest/)\n - [ReadTheDocs文档(Python)](https://pyqpanda-toturial.readthedocs.io/zh/latest/)\n - [QRunes量子语言](https://qrunes-tutorial.readthedocs.io/en/latest/)\n - [Qurator-VSCode](https://qurator-vscode.readthedocs.io/zh_CN/latest/)\n\n\n## 团队介绍\n\nQPanda由本源量子开发，本源量子致力于量子计算机的研发与应用，已推出6-qubit超导量子芯片（KF C6-130）、2-qubit半导量子芯片（XW B2-100），团队的目标是在近年制造出更多量子比特的芯片，提供公开云服务，实现量子优势与量子应用。软件团队为硬件提供支撑，除QPanda外还开发了QRunes量子语言、Qurator量子软件开发插件、本源量子云计算云服务平台、本源量子教育云等产品。\n\n ## License\n Apache License 2.0\n\n Copyright (c) 2017-2024 By Origin Quantum Computing. All Right Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginq%2Fqpanda-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriginq%2Fqpanda-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginq%2Fqpanda-2/lists"}