Git Product home page Git Product logo

xuguangtech / qpanda-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from originq/qpanda-2

0.0 1.0 0.0 17.9 MB

QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.

Home Page: https://originqc.com.cn/en/quantum_soft.html?type=qpanda&lv2id=43&lv3id=72

License: Apache License 2.0

Shell 0.02% C++ 85.55% Python 8.26% C 0.19% Cuda 1.26% CMake 0.74% DTrace 0.01% Jupyter Notebook 3.96%

qpanda-2's Introduction

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:

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:

from pyqpanda import *

qvm = CPUQVM()
qvm.init_qvm()
prog = QProg()
q = qvm.qAlloc_many(4)
c = qvm.cAlloc_many(4)
prog << H(q[0])\
    << CNOT(q[0:-1],q[1:])\
    << measure_all(q,c)
result = qvm.run_with_configuration(prog, c, 1000)
print(result)
qvm.finalize()

Results:

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

See more examples

Other informations

About

QPanda is developed by Origin Quantum, which is committed to the development and application of quantum computers, It has launched 6-Qubit superconducting quantum chip (KF C6-130) 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

qpanda-2's People

Contributors

xiaoyaolanyun avatar shenzhi-git avatar benyuanwlw avatar yekongxiaogang avatar agony5757 avatar arrowyl avatar itachixc avatar tecog avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.