【代码贡献】新增 QTeleport 相干量子隐形传态模块 - #72
Open
tokenjunkielabs wants to merge 2 commits into
Open
tokenjunkielabs wants to merge 2 commits into
tokenjunkielabs wants to merge 2 commits into
Conversation
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.
关联 #13(2026 本源杯开源创新赛道|代码贡献)。
新增
pyqpanda_alg.QTeleport,提供完整三量子比特量子隐形传态模块:标准 Bell 对制备与 Bell 基变换;使用延迟测量原理把经典前馈 X/Z 修正改写成相干受控修正,避免后端特定的中途测量/经典控制接口;明确 q0=消息、q1=Alice、q2=Bob 的量子比特契约;PyQPanda3 延迟导入;独立 NumPy 三量子比特状态矢量参考、Bob 约化密度矩阵与保真度;README 与示例。逻辑电路:
H(q1) -> CNOT(q1,q2) -> CNOT(q0,q1) -> H(q0) -> CNOT(q1,q2) -> CZ(q0,q2)。后两门对应标准传态协议中的 X/Z 前馈修正。Source head:
92cce01d8e07922b46412e1798c49434155c636d, directly based on sponsordevelop@5f973efccb84bc193157d1ccebe32137e307293b.No test run is claimed; submission scope is the module, package API, documentation, and example.