知名的Python量子计算开源项目2025

知名的Python量子计算开源项目

Python已成为量子计算开发的主流语言,拥有多个强大的开源框架。以下是当前最知名的Python量子计算开源项目:

一、主流量子计算框架

1. Qiskit (IBM开发)

Qiskit是IBM开发的全功能量子计算SDK,提供从电路设计到真实设备交互的全套工具。主要特点包括:

  • 量子电路构建与可视化
  • 本地和云端模拟器支持
  • 与IBM量子硬件的直接接口
  • 丰富的量子算法实现库
pythonCopy Code# Qiskit创建贝尔态示例
from qiskit import QuantumCircuit, transpile
from qiskit_aer import AerSimulator

qc = QuantumCircuit(2)
qc.h(0)  # 对第一个量子比特应用H门
qc.cx(0,1)  # CNOT门生成纠缠态
qc.measure_all()

simulator = AerSimulator()
compiled_circuit = transpile(qc, simulator)
result = simulator.run(compiled_circuit, shots=1000).result()
print(result.get_counts())  # 输出类似{'00': 500, '11': 500}

2. Cirq (Google开发)

Cirq是Google开发的专注于NISQ(含噪声中等规模量子)设备的Python库,主要特点包括:

  • 简洁的API设计
  • 灵活的基于张量网络的模拟器
  • 支持多种量子计算架构
  • 强大的调试工具集
pythonCopy Code# Cirq创建叠加态示例
import cirq

q = cirq.GridQubit(0, 0)
circuit = cirq.Circuit()
circuit.append(cirq.X(q)**0.5)  # 平方根NOT门
circuit.append(cirq.measure(q, key='m'))  # 测量
simulator = cirq.Simulator()
result = simulator.run(circuit, repetitions=1000)
print(result.histogram())  # 输出类似Counter({0: 512, 1: 488})

3. PennyLane (Xanadu开发)

PennyLane是Xanadu开发的量子机器学习框架,核心优势在于:

  • 与PyTorch/TensorFlow无缝集成
  • 自动微分机制支持梯度计算
  • 支持多种量子硬件平台
  • 丰富的量子神经网络工具
pythonCopy Code# PennyLane量子神经网络示例
import pennylane as qml
import numpy as np

dev = qml.device("default.qubit", wires=1)

@qml.qnode(dev)
def quantum_neural_network(inputs, weights):
    qml.RX(inputs, wires=0)
    qml.RY(weights, wires=0)
    return qml.expval(qml.PauliZ(0))

weights = np.array([0.5], requires_grad=True)
inputs = np.array([0.8])
output = quantum_neural_network(inputs, weights)
print("输出期望值:", output)

二、其他重要项目

4. ProjectQ (ETH Zurich开发)

ProjectQ是由ETH Zurich开发的量子计算框架,专注于量子算法研究和教育。特点包括:

  • 简洁的量子电路API
  • 支持多种后端模拟器
  • 专注于算法研究和教学用途
  • 提供丰富的量子算法实现

5. Strawberry Fields (Xanadu开发)

Strawberry Fields是Xanadu开发的光量子计算框架,特点包括:

  • 专注于连续变量量子计算
  • 支持多种光量子计算模型
  • 提供高级抽象和低级控制
  • 与PennyLane生态系统集成

6. QPanda3 (本源量子开发)

QPanda3是中国本源量子开发的第三代量子计算编程框架,特点包括:

  • 基于C++开发,提供Python接口
  • 编译性能显著优于Qiskit
  • 全栈式量子计算编程生态
  • 支持生物制药、量子金融等应用

三、项目对比与选择建议

Qiskit

IBM

功能全面,支持真实设备

通用量子计算开发

Cirq

Google

专注NISQ算法,简洁API

量子算法研究

PennyLane

Xanadu

量子机器学习,自动微分

量子AI研究

ProjectQ

ETH Zurich

教育导向,算法研究

教学与算法开发

Strawberry Fields

Xanadu

光量子计算

光量子计算研究

QPanda3

本源量子

高性能编译,中文支持

中国开发者使用

选择建议:

  • 初学者‌:从Qiskit或Cirq入手,它们文档完善,社区活跃
  • 量子机器学习‌:优先考虑PennyLane
  • 算法研究‌:Cirq或ProjectQ更适合
  • 光量子计算‌:选择Strawberry Fields
  • 中国开发者‌:QPanda3提供更好的本地支持

这些开源项目都提供了丰富的文档和示例,开发者可以根据自己的需求选择合适的框架开始量子计算之旅。

MaP.4d813p.INFO/PoTs/1115_143200.HtM

MaP.iao0ea.INFO/PoTs/1115_811101.HtM

MaP.70s4rg.INFO/PoTs/1115_468665.HtM

MaP.q1f31w.INFO/PoTs/1115_254555.HtM

MaP.vdfbuf.INFO/PoTs/1115_488756.HtM

MaP.4d813p.INFO/PoTs/1115_035520.HtM

MaP.iao0ea.INFO/PoTs/1115_699753.HtM

MaP.70s4rg.INFO/PoTs/1115_999986.HtM

MaP.q1f31w.INFO/PoTs/1115_922099.HtM

MaP.vdfbuf.INFO/PoTs/1115_355432.HtM

MaP.4d813p.INFO/PoTs/1115_780221.HtM

MaP.iao0ea.INFO/PoTs/1115_045342.HtM

MaP.70s4rg.INFO/PoTs/1115_276455.HtM

MaP.q1f31w.INFO/PoTs/1115_702001.HtM

MaP.vdfbuf.INFO/PoTs/1115_811910.HtM

MaP.4d813p.INFO/PoTs/1115_086553.HtM

MaP.iao0ea.INFO/PoTs/1115_777677.HtM

MaP.70s4rg.INFO/PoTs/1115_247533.HtM

MaP.q1f31w.INFO/PoTs/1115_588666.HtM

MaP.vdfbuf.INFO/PoTs/1115_244211.HtM

MaP.4d813p.INFO/PoTs/1115_600860.HtM

MaP.iao0ea.INFO/PoTs/1115_476643.HtM

MaP.70s4rg.INFO/PoTs/1115_521465.HtM

MaP.q1f31w.INFO/PoTs/1115_834570.HtM

MaP.vdfbuf.INFO/PoTs/1115_056872.HtM

MaP.4d813p.INFO/PoTs/1115_897566.HtM

MaP.iao0ea.INFO/PoTs/1115_022088.HtM

MaP.70s4rg.INFO/PoTs/1115_700766.HtM

MaP.q1f31w.INFO/PoTs/1115_455542.HtM

MaP.vdfbuf.INFO/PoTs/1115_388664.HtM

MaP.4d813p.INFO/PoTs/1115_711978.HtM

MaP.iao0ea.INFO/PoTs/1115_123232.HtM

MaP.70s4rg.INFO/PoTs/1115_789898.HtM

MaP.q1f31w.INFO/PoTs/1115_345544.HtM

MaP.vdfbuf.INFO/PoTs/1115_811189.HtM

MaP.4d813p.INFO/PoTs/1115_456542.HtM

MaP.iao0ea.INFO/PoTs/1115_266654.HtM

MaP.70s4rg.INFO/PoTs/1115_497751.HtM

MaP.q1f31w.INFO/PoTs/1115_811019.HtM

MaP.vdfbuf.INFO/PoTs/1115_577100.HtM

MaP.4d813p.INFO/PoTs/1115_688853.HtM

MaP.iao0ea.INFO/PoTs/1115_177522.HtM

MaP.70s4rg.INFO/PoTs/1115_923107.HtM

MaP.q1f31w.INFO/PoTs/1115_233221.HtM

MaP.vdfbuf.INFO/PoTs/1115_812210.HtM

MaP.4d813p.INFO/PoTs/1115_566763.HtM

MaP.iao0ea.INFO/PoTs/1115_121108.HtM

MaP.70s4rg.INFO/PoTs/1115_546422.HtM

MaP.q1f31w.INFO/PoTs/1115_366432.HtM

MaP.vdfbuf.INFO/PoTs/1115_233431.HtM

MaP.4d813p.INFO/PoTs/1115_800075.HtM

MaP.iao0ea.INFO/PoTs/1115_155332.HtM

MaP.70s4rg.INFO/PoTs/1115_122120.HtM

MaP.q1f31w.INFO/PoTs/1115_922011.HtM

MaP.vdfbuf.INFO/PoTs/1115_033100.HtM

MaP.4d813p.INFO/PoTs/1115_900984.HtM

MaP.iao0ea.INFO/PoTs/1115_022208.HtM

MaP.70s4rg.INFO/PoTs/1115_122218.HtM

MaP.q1f31w.INFO/PoTs/1115_466452.HtM

MaP.vdfbuf.INFO/PoTs/1115_244219.HtM

MaP.4d813p.INFO/PoTs/1115_890887.HtM

MaP.iao0ea.INFO/PoTs/1115_567665.HtM

MaP.70s4rg.INFO/PoTs/1115_812090.HtM

MaP.q1f31w.INFO/PoTs/1115_245423.HtM

MaP.vdfbuf.INFO/PoTs/1115_942320.HtM

MaP.4d813p.INFO/PoTs/1115_111319.HtM

MaP.iao0ea.INFO/PoTs/1115_333320.HtM

MaP.70s4rg.INFO/PoTs/1115_991868.HtM

MaP.q1f31w.INFO/PoTs/1115_778764.HtM

MaP.vdfbuf.INFO/PoTs/1115_687564.HtM

MaP.4d813p.INFO/PoTs/1115_023109.HtM

MaP.iao0ea.INFO/PoTs/1115_345641.HtM

MaP.70s4rg.INFO/PoTs/1115_146544.HtM

MaP.q1f31w.INFO/PoTs/1115_266655.HtM

MaP.vdfbuf.INFO/PoTs/1115_477874.HtM

MaP.4d813p.INFO/PoTs/1115_799765.HtM

MaP.iao0ea.INFO/PoTs/1115_479755.HtM

MaP.70s4rg.INFO/PoTs/1115_366232.HtM

MaP.q1f31w.INFO/PoTs/1115_611987.HtM

MaP.vdfbuf.INFO/PoTs/1115_366454.HtM

MaP.4d813p.INFO/PoTs/1115_788864.HtM

MaP.iao0ea.INFO/PoTs/1115_900210.HtM

MaP.70s4rg.INFO/PoTs/1115_920019.HtM

MaP.q1f31w.INFO/PoTs/1115_678767.HtM

MaP.vdfbuf.INFO/PoTs/1115_923190.HtM

MaP.4d813p.INFO/PoTs/1115_478755.HtM

MaP.iao0ea.INFO/PoTs/1115_346672.HtM

MaP.70s4rg.INFO/PoTs/1115_688752.HtM

MaP.q1f31w.INFO/PoTs/1115_479877.HtM

MaP.vdfbuf.INFO/PoTs/1115_355566.HtM

MaP.4d813p.INFO/PoTs/1115_777777.HtM

MaP.iao0ea.INFO/PoTs/1115_012018.HtM

MaP.70s4rg.INFO/PoTs/1115_900985.HtM

MaP.q1f31w.INFO/PoTs/1115_588655.HtM

MaP.vdfbuf.INFO/PoTs/1115_257544.HtM

MaP.4d813p.INFO/PoTs/1115_911997.HtM

MaP.iao0ea.INFO/PoTs/1115_900777.HtM

MaP.70s4rg.INFO/PoTs/1115_477544.HtM

MaP.q1f31w.INFO/PoTs/1115_688188.HtM

MaP.vdfbuf.INFO/PoTs/1115_568875.HtM

MaP.4d813p.INFO/PoTs/1115_567654.HtM

MaP.iao0ea.INFO/PoTs/1115_366422.HtM

MaP.70s4rg.INFO/PoTs/1115_376521.HtM

MaP.q1f31w.INFO/PoTs/1115_934320.HtM

MaP.vdfbuf.INFO/PoTs/1115_800987.HtM

MaP.4d813p.INFO/PoTs/1115_377545.HtM

MaP.iao0ea.INFO/PoTs/1115_799876.HtM

MaP.70s4rg.INFO/PoTs/1115_023229.HtM

MaP.q1f31w.INFO/PoTs/1115_143110.HtM

MaP.vdfbuf.INFO/PoTs/1115_964531.HtM

MaP.4d813p.INFO/PoTs/1115_147423.HtM

MaP.iao0ea.INFO/PoTs/1115_122097.HtM

MaP.70s4rg.INFO/PoTs/1115_588653.HtM

MaP.q1f31w.INFO/PoTs/1115_344431.HtM

MaP.vdfbuf.INFO/PoTs/1115_789876.HtM

MaP.4d813p.INFO/PoTs/1115_233108.HtM

MaP.iao0ea.INFO/PoTs/1115_911311.HtM

MaP.70s4rg.INFO/PoTs/1115_531221.HtM

MaP.q1f31w.INFO/PoTs/1115_531921.HtM

MaP.vdfbuf.INFO/PoTs/1115_714554.HtM

MaP.4d813p.INFO/PoTs/1115_255321.HtM

MaP.iao0ea.INFO/PoTs/1115_799107.HtM

MaP.70s4rg.INFO/PoTs/1115_056441.HtM

MaP.q1f31w.INFO/PoTs/1115_901420.HtM

MaP.vdfbuf.INFO/PoTs/1115_144321.HtM

MaP.4d813p.INFO/PoTs/1115_345540.HtM

MaP.iao0ea.INFO/PoTs/1115_898877.HtM

MaP.70s4rg.INFO/PoTs/1115_587533.HtM

MaP.q1f31w.INFO/PoTs/1115_333211.HtM

MaP.vdfbuf.INFO/PoTs/1115_333321.HtM

MaP.4d813p.INFO/PoTs/1115_233342.HtM

MaP.iao0ea.INFO/PoTs/1115_822097.HtM

MaP.70s4rg.INFO/PoTs/1115_799975.HtM

MaP.q1f31w.INFO/PoTs/1115_044200.HtM

MaP.vdfbuf.INFO/PoTs/1115_036422.HtM

MaP.4d813p.INFO/PoTs/1115_691899.HtM

MaP.iao0ea.INFO/PoTs/1115_344109.HtM

MaP.70s4rg.INFO/PoTs/1115_444432.HtM

MaP.q1f31w.INFO/PoTs/1115_143102.HtM

MaP.vdfbuf.INFO/PoTs/1115_144121.HtM

MaP.4d813p.INFO/PoTs/1115_024219.HtM

MaP.iao0ea.INFO/PoTs/1115_799777.HtM

MaP.70s4rg.INFO/PoTs/1115_756653.HtM

MaP.q1f31w.INFO/PoTs/1115_788878.HtM

MaP.vdfbuf.INFO/PoTs/1115_788857.HtM

MaP.4d813p.INFO/PoTs/1115_476444.HtM

MaP.iao0ea.INFO/PoTs/1115_922320.HtM

MaP.70s4rg.INFO/PoTs/1115_877766.HtM

MaP.q1f31w.INFO/PoTs/1115_681907.HtM

MaP.vdfbuf.INFO/PoTs/1115_587785.HtM

MaP.4d813p.INFO/PoTs/1115_589653.HtM

MaP.iao0ea.INFO/PoTs/1115_699987.HtM

MaP.70s4rg.INFO/PoTs/1115_012232.HtM

MaP.q1f31w.INFO/PoTs/1115_788767.HtM

MaP.vdfbuf.INFO/PoTs/1115_899787.HtM

MaP.4d813p.INFO/PoTs/1115_244200.HtM

MaP.iao0ea.INFO/PoTs/1115_143433.HtM

MaP.70s4rg.INFO/PoTs/1115_854686.HtM

MaP.q1f31w.INFO/PoTs/1115_754664.HtM

MaP.vdfbuf.INFO/PoTs/1115_420334.HtM

MaP.4d813p.INFO/PoTs/1115_788666.HtM

MaP.iao0ea.INFO/PoTs/1115_345532.HtM

MaP.70s4rg.INFO/PoTs/1115_122298.HtM

MaP.q1f31w.INFO/PoTs/1115_022298.HtM

MaP.vdfbuf.INFO/PoTs/1115_812298.HtM

MaP.4d813p.INFO/PoTs/1115_466456.HtM

MaP.iao0ea.INFO/PoTs/1115_922098.HtM

MaP.70s4rg.INFO/PoTs/1115_011199.HtM

MaP.q1f31w.INFO/PoTs/1115_366433.HtM

MaP.vdfbuf.INFO/PoTs/1115_365544.HtM

MaP.4d813p.INFO/PoTs/1115_345543.HtM

MaP.iao0ea.INFO/PoTs/1115_890977.HtM

MaP.70s4rg.INFO/PoTs/1115_899321.HtM

MaP.q1f31w.INFO/PoTs/1115_933111.HtM

MaP.vdfbuf.INFO/PoTs/1115_456344.HtM

MaP.4d813p.INFO/PoTs/1115_467564.HtM

MaP.iao0ea.INFO/PoTs/1115_611866.HtM

MaP.70s4rg.INFO/PoTs/1115_366432.HtM

MaP.q1f31w.INFO/PoTs/1115_998866.HtM

MaP.vdfbuf.INFO/PoTs/1115_124242.HtM

MaP.4d813p.INFO/PoTs/1115_244431.HtM

MaP.iao0ea.INFO/PoTs/1115_478566.HtM

MaP.70s4rg.INFO/PoTs/1115_375776.HtM

MaP.q1f31w.INFO/PoTs/1115_378654.HtM

MaP.vdfbuf.INFO/PoTs/1115_566575.HtM

MaP.4d813p.INFO/PoTs/1115_711108.HtM

MaP.iao0ea.INFO/PoTs/1115_255320.HtM

MaP.70s4rg.INFO/PoTs/1115_455541.HtM

MaP.q1f31w.INFO/PoTs/1115_562208.HtM

MaP.vdfbuf.INFO/PoTs/1115_222209.HtM

MaP.4d813p.INFO/PoTs/1115_345542.HtM

MaP.iao0ea.INFO/PoTs/1115_455520.HtM

MaP.70s4rg.INFO/PoTs/1115_123431.HtM

MaP.q1f31w.INFO/PoTs/1115_597867.HtM

MaP.vdfbuf.INFO/PoTs/1115_478755.HtM

MaP.4d813p.INFO/PoTs/1115_888897.HtM

MaP.iao0ea.INFO/PoTs/1115_700886.HtM

MaP.70s4rg.INFO/PoTs/1115_365343.HtM

MaP.q1f31w.INFO/PoTs/1115_444433.HtM

MaP.vdfbuf.INFO/PoTs/1115_691998.HtM

MaP.4d813p.INFO/PoTs/1115_044323.HtM

MaP.iao0ea.INFO/PoTs/1115_256523.HtM

MaP.70s4rg.INFO/PoTs/1115_012200.HtM

MaP.q1f31w.INFO/PoTs/1115_800090.HtM

MaP.vdfbuf.INFO/PoTs/1115_369755.HtM

MaP.4d813p.INFO/PoTs/1115_235531.HtM

MaP.iao0ea.INFO/PoTs/1115_144211.HtM

MaP.70s4rg.INFO/PoTs/1115_787875.HtM

MaP.q1f31w.INFO/PoTs/1115_022010.HtM

MaP.vdfbuf.INFO/PoTs/1115_133111.HtM

MaP.4d813p.INFO/PoTs/1115_577564.HtM

MaP.iao0ea.INFO/PoTs/1115_155311.HtM

MaP.70s4rg.INFO/PoTs/1115_823098.HtM

MaP.q1f31w.INFO/PoTs/1115_567564.HtM

MaP.vdfbuf.INFO/PoTs/1115_234231.HtM

MaP.4d813p.INFO/PoTs/1115_244310.HtM

MaP.iao0ea.INFO/PoTs/1115_700876.HtM

MaP.70s4rg.INFO/PoTs/1115_297092.HtM

MaP.q1f31w.INFO/PoTs/1115_723231.HtM

MaP.vdfbuf.INFO/PoTs/1115_867667.HtM

MaP.4d813p.INFO/PoTs/1115_355531.HtM

MaP.iao0ea.INFO/PoTs/1115_011188.HtM

MaP.70s4rg.INFO/PoTs/1115_377554.HtM

MaP.q1f31w.INFO/PoTs/1115_488756.HtM

MaP.vdfbuf.INFO/PoTs/1115_597855.HtM

MaP.4d813p.INFO/PoTs/1115_044311.HtM

MaP.iao0ea.INFO/PoTs/1115_610898.HtM

MaP.70s4rg.INFO/PoTs/1115_500833.HtM

MaP.q1f31w.INFO/PoTs/1115_124432.HtM

MaP.vdfbuf.INFO/PoTs/1115_222233.HtM

MaP.4d813p.INFO/PoTs/1115_478644.HtM

MaP.iao0ea.INFO/PoTs/1115_899019.HtM

MaP.70s4rg.INFO/PoTs/1115_912142.HtM

MaP.q1f31w.INFO/PoTs/1115_701094.HtM

MaP.vdfbuf.INFO/PoTs/1115_377544.HtM

MaP.4d813p.INFO/PoTs/1115_499897.HtM

MaP.iao0ea.INFO/PoTs/1115_811997.HtM

MaP.70s4rg.INFO/PoTs/1115_133119.HtM

MaP.q1f31w.INFO/PoTs/1115_991908.HtM

MaP.vdfbuf.INFO/PoTs/1115_477775.HtM

MaP.4d813p.INFO/PoTs/1115_601973.HtM

MaP.iao0ea.INFO/PoTs/1115_365532.HtM

MaP.70s4rg.INFO/PoTs/1115_345321.HtM

MaP.q1f31w.INFO/PoTs/1115_577742.HtM

MaP.vdfbuf.INFO/PoTs/1115_711986.HtM

MaP.4d813p.INFO/PoTs/1115_489666.HtM

MaP.iao0ea.INFO/PoTs/1115_689744.HtM

MaP.70s4rg.INFO/PoTs/1115_366432.HtM

MaP.q1f31w.INFO/PoTs/1115_344421.HtM

MaP.vdfbuf.INFO/PoTs/1115_588864.HtM

#pyhton##量子计算#
全部评论

相关推荐

爱吃烤肠的牛油最喜欢...:50K是ssp了估计,ssp的人家多厉害都不用说,每年比例大概在百分之5左右
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务