Skip to content

Quantum Computing Python SDK

pyqpanda3

From your first circuit to hardware-aware workflows, the pyqpanda3 docs connect tutorials, API references, concepts, and examples into one focused quantum development console.

QUANTUM RUNBOOK
01pip install pyqpanda3
02from pyqpanda3.core import QProg, CPUQVM
03build -> run -> get_counts
Latest Releasev0.5.12026-10-27Simpler QCloud access, configurable correction, topology-aware random circuitsRead the release blog ->
37+Built-in gates

Common single-qubit, multi-qubit, and variational gates for tutorials and real algorithms.

6Simulation backends

Execution paths for CPUQVM, GPUQVM, density-matrix, stabilizer, and amplitude-query workflows.

7Noise channels

Model decoherence, measurement error, and hardware constraints before running jobs.

GPUAcceleration

A performance path for larger circuits, repeated experiments, and heavier workloads.

Documentation Matrix

Choose Your Entry

Move through the docs by task: learn, inspect APIs, reproduce workflows, track releases, or build theory.

Learning Vector

Recommended Route

New to pyqpanda3? These three stops build the right context quickly.

  1. 01
    init

    Install and run

    Set up the environment and run your first pyqpanda3 program.

    ->
  2. 02
    circuit

    Build circuits

    Learn circuits, gates, measurement, and dynamic circuit patterns.

    ->
  3. 03
    optimize

    Advance workflows

    Explore variational circuits, noise simulation, and transpilation.

    ->

Executable Pattern

Install, build, and run in one pass

Keep the shortest path close: install the SDK, construct a quantum program, run CPUQVM, read measurement counts, then branch into noise, cloud, and transpilation workflows.

Get Started
bell_state.py
01pip install pyqpanda3
02from pyqpanda3.core import CPUQVM, QProg, H, CNOT, measure
03prog = QProg()
04prog << H(0) << CNOT(0, 1)
05prog << measure([0, 1], [0, 1])
06qvm = CPUQVM()
07qvm.run(prog, shots=1000)
08counts = qvm.result().get_counts()

Ready to write your first quantum program?

Start with installation, circuit construction, and simulation in a few focused minutes.

Open Quick Start

Released under the MIT License.