登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
前沿技术
>
量子计算
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
1.8K
Star
3.1K
Fork
4.3K
GVP
MindSpore
/
mindquantum
关闭
代码
Issues
58
Pull Requests
3
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
标签
标签名
描述
提交信息
操作
v0.11.0
## MindQuantum 0.11.0 Release Notes ### 主要特性和增强 #### Simulator - [STABLE] [`mqchem`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.mqchem.MQChemSimulator.html): 新增 `mqchem` 模拟器后端。该模拟器基于配置相互作用(CI)方法,通过在固定电子数的子空间中进行计算,为量子化学问题提供了内存和计算效率更高的解决方案。其核心组件包括 ([`!2717`](https://gitee.com/mindspore/mindquantum/pulls/2717)): - [`MQChemSimulator`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.mqchem.MQChemSimulator.html): CI空间模拟器,默认初始化为Hartree-Fock态。 - [`UCCExcitationGate`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.mqchem.UCCExcitationGate.html): 用于构建UCC拟设线路的专用激发门。 - [`CIHamiltonian`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.mqchem.CIHamiltonian.html): 用于在CI空间中高效计算期望值的哈密顿量包装器。 - [`prepare_uccsd_vqe`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.mqchem.prepare_uccsd_vqe.html): 自动化UCCSD-VQE实验准备流程的高级函数。 - [STABLE] [`mqvector_cq`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.Simulator.html): 新增 `mqvector_cq` 模拟器后端,利用 NVIDIA cuQuantum SDK 进一步加速在 NVIDIA GPU 上的量子线路模拟 ([`!2724`](https://gitee.com/mindspore/mindquantum/pulls/2724))。该后端依赖于cuquantum,因此需要在环境中正确安装cuqauntum后方可使用,详情请参考cuquantum官网上的安装指南。 #### Algorithm - [STABLE] **QAIA 算法后端扩展**: 为量子退火启发式算法(QAIA)家族(包括 [`ASB`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.ASB.html), [`BSB`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.BSB.html), [`DSB`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.DSB.html), [`LQA`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.LQA.html), [`CAC`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.CAC.html), [`CFC`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.CFC.html), [`SFC`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.SFC.html), [`NMFA`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.NMFA.html), [`SimCIM`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.SimCIM.html))新增了基于 PyTorch 的 GPU 和 NPU 后端支持,显著提升了在相应硬件上的计算性能。用户现在可以通过 `backend` 参数选择 `'gpu-float32'` 或 `'npu-float32'` ([`!2669`](https://gitee.com/mindspore/mindquantum/pulls/2669), [`!2678`](https://gitee.com/mindspore/mindquantum/pulls/2678))。 ### 问题修复 - [`PR2727`](https://gitee.com/mindspore/mindquantum/pulls/2727): 修复了线路图的 SVG 导出功能在处理多控 CNOT 门时只显示一个控制比特的问题。 - [`PR2717`](https://gitee.com/mindspore/mindquantum/pulls/2717): 修复了 `uccsd_singlet_get_packed_amplitudes` 中双激发振幅索引错误的问题,确保了从CCSD计算中提取的振幅的正确性。 - [`PR2716`](https://gitee.com/mindspore/mindquantum/pulls/2716): 修复了 SABRE 和 MQSABRE 映射算法在处理非连续物理比特ID(例如,`[12, 13, 15]`)时会崩溃的问题。 - [`PR2713`](https://gitee.com/mindspore/mindquantum/pulls/2713): 修复了 `TimeEvolution` 在处理含常数项(单位算符)的哈密顿量时的问题,现在会正确地将其转换为全局相位门。 - [`PR2679`](https://gitee.com/mindspore/mindquantum/pulls/2679): 修复了 NMFA 算法在包含外场 `h` 时 `J_norm` 计算不正确的问题。 - [`PR2714`](https://gitee.com/mindspore/mindquantum/pulls/2714): 修复了在 Windows CI 环境下,当 Python 安装在带空格的路径中时可能出现的链接器错误。 - [`PR2650`](https://gitee.com/mindspore/mindquantum/pulls/2650): 修复了 `Rn` 门在某些情况下可能出现的除零错误。 - [`PR2648`](https://gitee.com/mindspore/mindquantum/pulls/2648): 修复了 `sabre` 映射算法中 `barrier` 门处理不当的问题。 ### 其他更新 - **QAIA 算法**: - 增强了对输入参数的检查,确保耦合矩阵 `J` 是对称且对角线为零,为用户提供更明确的指引 ([`!2710`](https://gitee.com/mindspore/mindquantum/pulls/2710))。 - 优化了 [`LQA`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.LQA.html) 算法,通过缓存中间计算结果减少了冗余计算 ([`!2656`](https://gitee.com/mindspore/mindquantum/pulls/2656))。 - 改进了部分算法中数值不稳定时的错误提示信息,使其更具指导性 ([`!2710`](https://gitee.com/mindspore/mindquantum/pulls/2710))。 - **依赖项**: 更新了依赖项,现在要求 `scipy>=1.13.1`。 - 为 `ParameterResolver` 中出现复数以及 `SB` 模拟器使用 `int8` 精度时增加了警告提示 ([`!2651`](https://gitee.com/mindspore/mindquantum/pulls/2651))。
b0d400f
2025-07-29 15:22
下载
查看发行版
v0.10.0
# MindQuantum Release Notes [View English](./RELEASE.md) ## MindQuantum 0.10.0 Release Notes ### 主要特性和增强 #### Algorithm - [BETA] [`virtual_distillation`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/error_mitigation/mindquantum.algorithm.error_mitigation.virtual_distillation.html): 新增基于虚拟蒸馏的误差缓解算法,通过创建量子态的虚拟副本并在纠缠系统上进行测量来减少量子噪声。 - [BETA] [`QuantumNeuron`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/nisq/mindquantum.algorithm.nisq.QuantumNeuron.html): 新增基于重复直到成功(RUS)策略的量子神经元实现,通过量子电路模拟经典神经元行为,应用非线性函数旋转。 - [STABLE] [`SGAnsatz`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/nisq/mindquantum.algorithm.nisq.SGAnsatz.html): 新增序列生成变分量子线路,可高效生成具有固定键维度的矩阵乘积态。该ansatz通过在相邻量子比特上应用参数化量子线路块,自然适应一维量子多体问题。 - [STABLE] [`SGAnsatz2D`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/nisq/mindquantum.algorithm.nisq.SGAnsatz2D.html): 新增二维序列生成变分量子线路,可生成字符串键态。支持通过指定二维网格尺寸自动生成遍历路径,或通过自定义线路集合构建特定类型的string-bond态。 - [STABLE] [`qjpeg`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/library/mindquantum.algorithm.library.qjpeg.html): 新增基于量子傅里叶变换的量子图像压缩算法,可以通过减少量子比特数量来压缩量子图像,同时保留频域中的关键信息。 - [STABLE] [`cnry_decompose`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/compiler/mindquantum.algorithm.compiler.cnry_decompose.html): 新增对CnRY门的分解。 - [STABLE] [`cnrz_decompose`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/compiler/mindquantum.algorithm.compiler.cnrz_decompose.html): 新增对CnRZ门的分解。 - [STABLE] [`BSB`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.BSB.html): 为弹道模拟分叉算法添加GPU加速支持,支持`'cpu-float32'`, `'gpu-float16'`, `'gpu-int8'`三种精度选项。 - [STABLE] [`DSB`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/qaia/mindquantum.algorithm.qaia.DSB.html): 为离散模拟分叉算法添加GPU加速支持,支持`'cpu-float32'`, `'gpu-float16'`, `'gpu-int8'`三种精度选项。 - [STABLE] [`qudit_symmetric_encoding`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/library/mindquantum.algorithm.library.qudit_symmetric_encoding.html): 新增qudit编码功能,将d级量子态映射到量子比特态,通过对称编码实现,在标准量子比特量子计算机上高效模拟高维量子系统。 - [STABLE] [`qudit_symmetric_decoding`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/library/mindquantum.algorithm.library.qudit_symmetric_decoding.html): 新增解码功能,将量子比特对称态或矩阵解码为qudit态或矩阵,增强对多能级量子系统的支持。解码过程涉及将对称量子比特态转换为相应的qudit态,便于在标准量子比特量子计算机上高效模拟高维量子系统。 - [STABLE] [`qutrit_symmetric_ansatz`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/library/mindquantum.algorithm.library.qutrit_symmetric_ansatz.html): 引入qutrit对称ansatz,构建保持任意qutrit门编码对称性的量子比特ansatz。该功能通过利用对称性保持变换,允许在标准量子比特量子计算机上高效模拟高维量子系统。ansatz支持分解为`"zyz"`或`"u3"`基,并可选择性地包含全局相位。 #### Measure - [STABLE] [`MeasureResult.to_json`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/core/gates/mindquantum.core.gates.MeasureResult.html#mindquantum.core.gates.MeasureResult.to_json): 支持测量结果的序列化和存储。 - [STABLE] [`MeasureResult.reverse_endian`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/core/gates/mindquantum.core.gates.MeasureResult.html#mindquantum.core.gates.MeasureResult.reverse_endian): 支持反转测量结果中比特串和测量键的字节序。 #### Operator - [STABLE] [`mat_to_op`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/library/mindquantum.algorithm.library.mat_to_op.html): 新增从矩阵转换为`QubitOperator`的函数,支持小端和大端量子比特排序,以便与不同的量子计算框架无缝集成。 #### Circuit - [STABLE] 新增[`Circuit.from_qcis()`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/core/circuit/mindquantum.core.circuit.Circuit.html#mindquantum.core.circuit.Circuit.from_qcis)和[`Circuit.to_qcis()`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/core/circuit/mindquantum.core.circuit.Circuit.html#mindquantum.core.circuit.Circuit.to_qcis)函数,支持与QCIS格式互转。 - [STABLE] 新增`__eq__`和`__ne__`方法,支持电路对象比较。 - [STABLE] [`Circuit.depth()`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/core/circuit/mindquantum.core.circuit.Circuit.html#mindquantum.core.circuit.Circuit.depth): 新增获取量子线路深度的功能,支持考虑单比特门和栅栏门对电路深度的影响,帮助用户更好地评估和优化量子线路的复杂度。 #### Simulator - [STABLE] [`get_reduced_density_matrix`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.Simulator.html#mindquantum.simulator.Simulator.get_reduced_density_matrix): 新增获取指定量子比特约化密度矩阵的功能,通过对其他量子比特执行部分迹运算来实现。 - [STABLE] [`get_qs_of_qubits`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.Simulator.html#mindquantum.simulator.Simulator.get_qs_of_qubits): 新增获取指定量子比特量子态的功能。如果结果态是纯态,则返回态矢量;如果是混态,则返回密度矩阵。支持以 ket 记号(狄拉克记号)格式返回量子态。 - [STABLE] 模拟器后端选择"stabilizer"时,支持使用[`reset`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.Simulator.html#mindquantum.simulator.Simulator.reset)重置量子态。 - [STABLE] 模拟器后端选择"stabilizer"时,支持使用[`get_expectation`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/simulator/mindquantum.simulator.Simulator.html#mindquantum.simulator.Simulator.get_expectation)计算给定哈密顿量在当前量子态下的期望值。 #### Compiler - [STABLE] [`U3Fusion`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/compiler/mindquantum.algorithm.compiler.U3Fusion.html): 新增将连续的单量子比特门融合为一个U3门的编译规则。该规则扫描电路并将作用在同一量子比特上的连续单量子比特门组合成单个U3门。对于独立的单量子比特门,也会被转换为U3形式。可选择是否跟踪和包含全局相位。 - [STABLE] [`u3_decompose`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/compiler/mindquantum.algorithm.compiler.u3_decompose.html): 新增将U3门分解为Z-X-Z-X-Z旋转序列的功能。支持标准分解(U3(θ,φ,λ) = Rz(φ)Rx(-π/2)Rz(θ)Rx(π/2)Rz(λ))和替代分解(U3(θ,φ,λ) = Rz(φ)Rx(π/2)Rz(π-θ)Rx(π/2)Rz(λ-π))两种方法。当任何旋转角度为常数且等于0时,相应的RZ门将被省略。 - [STABLE] [`DecomposeU3`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/algorithm/compiler/mindquantum.algorithm.compiler.DecomposeU3.html): 新增U3门分解的编译规则,将U3门分解为Z-X-Z-X-Z旋转序列。支持标准和替代两种分解方法。 #### IO - [STABLE] [`QCIS`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/io/mindquantum.io.QCIS.html): 新增量子电路与QCIS格式转换类。 #### Utilities - [STABLE] [`random_hamiltonian`](https://www.mindspore.cn/mindquantum/docs/zh-CN/master/utils/mindquantum.utils.random_hamiltonian.html): 新增随机泡利哈密顿量生成功能。支持指定量子比特数量和泡利项数量,可设置随机种子以保证结果可重现。生成的哈密顿量可用于量子算法测试和基准测试。 ### 破坏性改动 - [重要] `MeasureResult` 中的 `keys`、`samples` 的字节序被统一为小端序(little-endian)。如果您的代码使用了这两个属性,请小心检查并使用新增的 `reverse_endian` 方法进行调整。 ### 问题修复 - [`PR2497`](https://gitee.com/mindspore/mindquantum/pulls/2497):修复了 **Amplitude Encoder** 中参数名可能重复的问题。 - [`PR2410`](https://gitee.com/mindspore/mindquantum/pulls/2410):修复了 `is_measure_end` 的错误,该错误会导致即使没有测量操作也返回 `True`。 - [`PR2410`](https://gitee.com/mindspore/mindquantum/pulls/2410):修复了在双量子比特门中颠倒量子比特顺序后计算结果不正确的问题。 - [`PR2377`](https://gitee.com/mindspore/mindquantum/pulls/2377):修复了 `DAGCircuit` 在处理深层线路时会出现递归错误的问题,现在支持对任意深度线路的处理。 - [`PR2345`](https://gitee.com/mindspore/mindquantum/pulls/2345):修复了 `mqmatrix` 的 `get_expectation_with_grad` 方法在处理批量哈顿量时计算错误的问题,并添加了测试用例。 - [`PR2345`](https://gitee.com/mindspore/mindquantum/pulls/2345):修复了未按指定顺序添加门并使用 `reverse_qubits` 时出现的错误。 - [`PR2345`](https://gitee.com/mindspore/mindquantum/pulls/2345):修正了 `FermionOperator.hermitian()` 示例代码中的错误。 - [`PR2319`](https://gitee.com/mindspore/mindquantum/pulls/2319):修复了 Stabilizer 模拟器的测量错误。 - [`PR2319`](https://gitee.com/mindspore/mindquantum/pulls/2319):修复了 Stabilizer 模拟器中种子未正确应用的问题。 - [`PR2319`](https://gitee.com/mindspore/mindquantum/pulls/2319):增加了对 Stabilizer 模拟器输出比特串正确性的检测。 - [`PR2315`](https://gitee.com/mindspore/mindquantum/pulls/2315):使 **MQSim** 和 **Hamiltonian** 支持序列化,支持python多进程`multiprocessing`。 - [`PR2309`](https://gitee.com/mindspore/mindquantum/pulls/2309):修复了 **QAOA** 的一些 ansatz 中缺失虚数项和系数的问题。 - [`PR2309`](https://gitee.com/mindspore/mindquantum/pulls/2309):修复了 `QAOAAnsatz` 示例无法正常运行的问题。 - [`PR2309`](https://gitee.com/mindspore/mindquantum/pulls/2309):修改了 ansatz 电路中的参数名称,使其与公式对应。 - [`PR2296`](https://gitee.com/mindspore/mindquantum/pulls/2296):修复了 `kron_factor_4x4_to_2x2s()` 返回值的索引错误,确保了双比特门分解函数 `kak_decompose` 的正确性。 - [`PR2285`](https://gitee.com/mindspore/mindquantum/pulls/2285):移除了计算梯度时不必要的输出。 ### 其他更新 - 优化了量子线路第一次运行时的速度,提升了性能。 - 提高了 `params_zyz()` 函数的精度,提升了 **ZYZ** 分解的计算精度。 - 移除了未安装 `mqvector_gpu` 的警告信息,仅在使用时提示。 - 移除了未安装mindspore时的警告信息,仅在使用时提示。 - 当哈密顿量包含虚部时,增加了警告提示,提醒用户注意可能的计算结果异常。 - 提升了未安装 **MindSpore** 时警告信息的清晰度。 - 将 `pip` 源更改为清华镜像源。
1e951a1
2025-02-12 16:51
下载
查看发行版
v0.9.11
eb306d5
2024-01-13 01:01
下载
查看发行版
v0.9.0
v0.9.0
ca1a612
2023-10-13 16:12
下载
查看发行版
v0.9.0-rc1
d8d3fe4
2023-05-08 16:23
下载
查看发行版
v0.8.0
v0.8.0
df4825a
2023-01-30 17:23
下载
查看发行版
v0.7.0
v0.7.0
931bffa
2022-07-12 21:31
下载
查看发行版
v0.6.5
v0.6.5
85fb63c
2022-06-24 13:44
下载
v0.6.0
v0.6.0
6047e03
2022-04-07 17:03
下载
查看发行版
v0.6.0rc1
f61a8ef
2022-03-28 14:53
下载
查看发行版
v0.5.0
v0.5.0
0b53cfe
2022-02-28 16:24
下载
查看发行版
v0.5.0rc1
v0.5.0rc1
ab07ee3
2022-01-14 14:32
下载
查看发行版
v0.3.1
v0.3.1
09ad744
2021-10-22 17:25
下载
v0.3.1-rc1
v0.3.1-rc1
e7111ce
2021-09-24 14:58
下载
查看发行版
v0.2.0
v0.2.0
e2c086c
2021-07-15 14:30
下载
查看发行版
v0.1.0
v0.1.0
1ac8f79
2021-03-27 15:10
下载
查看发行版
下载
请输入验证码,防止盗链导致资源被占用
取消
下载
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册