Repository navigation
Conversation
xi-zhao
marked this pull request as ready for review
November 15, 2026 02:16
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
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.
问题与结果
PyZX 0.10.6 的公开 SDK 在 CNOT 重映射后的 XPhase 优化、U3 的 adjoint 中存在正确性错误:独立矩阵对照最大偏差分别约 0.7071 与 1。升级到稳定版 0.10.8 后,五项校准与回归检查全部通过,最大偏差低于 7e-16。旧版便捷 Tool 管线的小例本身也通过;本 PR 不把两个 SDK 反例泛化成全部旧调用失效。
上游固定 tag 对应完整提交
d9691d0b2aaaab92f11ed0b2cabe2bcc36f8cc14,Apache-2.0,发行包可用。Python 最低 3.11,现有环境固定 3.12.x。官方发布。最小改动与兼容性
optimize_pyzx_circuit、SDK 工作台及两宿主适配。输入 schema、位序、1e-8 工程容差、required / auto / skip 参考规则及scientificValidation=not_evaluated保持原合同。验证证据
npm run check执行,其中主测试段 1250 项:889 通过、0 失败、361 跳过;其余检查段和 Harness 组合配置也通过。所有 4 个 workflow、10 个 job 成功。交付自审(2026-11-15,Asia/Shanghai)
固定 base:
508ed5cd05eb44276fd5009641efa7e82a3b70c0固定 head:
63853894b13dfe70c0765ce9194e114d2ee9b1af20 个变更文件、2 个提交;three-dot merge-base 等于上述 base。需求依据为本轮更新前的 PR 正文快照及两份版本化升级报告。
已具备待审条件,等维护者决定是否合并。本轮未合并、发布、部署或更改用户安装环境。
边界与回退
这些是限定案例的工程正确性证据,不是全部 PyZX API、全平台验证或科学 Acceptance。没有真实硬件、付费服务、外部模型调用或实际 Codex 客户端运行验收。
回退必须整体恢复 manifest/lock、版本守卫及版本元数据,不能只改 pin;回退会重新引入上述旧版 SDK 缺陷。