【代码贡献】新增 Hadamard Test 复期望值估计模块 - #76
Open
tokenjunkielabs wants to merge 5 commits into
Open
tokenjunkielabs wants to merge 5 commits into
tokenjunkielabs wants to merge 5 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 本源杯开源创新赛道|代码贡献)。
Adds a reusable
pyqpanda_alg.HadamardTestmodule for estimating the full complex overlap ⟨ψ|U|ψ⟩ with one ancilla:reference_expectationfor exact state-vector comparison and input-contract checks;For the example, |ψ⟩=|+⟩ and U=RX(θ), so the reference value is exp(-iθ/2), exercising both real and imaginary components.
Branch is based on sponsor
develop@5f973efccb84bc193157d1ccebe32137e307293b; delivered fork head ise4caadd2dbd1add0ec0a6f058d923601c5bec473. Per the current owner execution directive, no test/verification run was performed and none is claimed. Maintainer CI/review remains authoritative.Prepared with AI assistance for TokenJunkieLabs under @woahwhattheheck. Opening this PR makes no merge, prize, award, or payment claim.