Conversation
added 5 commits
September 19, 2026 20:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增四个可选组件,不改变现有算法的默认行为,不增加运行依赖。附带中文说明性注释、文档字符串、使用示例和测试。
更改与原理
基础测试
环境:Python 3.11 / pyqpanda3 0.4.1。合并回归 350 passed。
PYTHONPATH=pyqpanda-algorithm python -m pytest -q -o addopts='' test以下为独立软件模拟器中实际执行线路、采集测量计数所得的样例:
详细说明、可运行示例及基础观测数据见 docs/、examples/、docs/examples/ 和 benchmarks/*counts_observed.json。新增代码的说明性注释使用中文,许可证原文及必要的API和数学符号保留原样。