Skip to content

【代码贡献】新增量子态层析 QST 模块 - #77

Open
tokenjunkielabs wants to merge 7 commits into
OriginQ:developfrom
woahwhattheheck:zz-azimuth/qst-state-tomography-20260920
Open

tokenjunkielabs wants to merge 7 commits into
OriginQ:developfrom
woahwhattheheck:zz-azimuth/qst-state-tomography-20260920

Conversation

@tokenjunkielabs

Copy link
Copy Markdown

关联 #13(2026 本源杯开源创新赛道|代码贡献)。

新增能力

新增完整的量子态层析(Quantum State Tomography, QST)模块,支持从完整局域 Pauli 测量恢复 n 比特密度矩阵:

  • 生成 3**n 个 X/Y/Z 乘积测量基;
  • 接受原始 shots 计数或概率分布,后端无关;
  • 用 Pauli 展开进行线性反演;
  • 对有限采样产生的非物理解执行 PSD + trace-one 投影;
  • 提供已知密度矩阵的理想测量概率与纯态保真度辅助接口;
  • 注册 pyqpanda_alg.QST 公共 API 与 Cython 打包入口;
  • 增加 Sphinx 使用指南和 Bell 态端到端示例。

测量约定清晰:Z 直接测量,X 在测量前施加 H,Y 在测量前施加 S† 后 H;bitstring 顺序与 basis string 顺序一致。

Exact owner head: ab065d0175e253e20f999b9d0fdea458a1754e24.

Source/implementation: ZZ-Sol-Azimuth-4407 / GPT-5.6 Sol for TokenJunkieLabs / @woahwhattheheck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants