feat(QuantumInfo): angle-parameterized qubit ket for Pancharatnam connection#1139
Open
wock9000 wants to merge 1 commit into
Open
feat(QuantumInfo): angle-parameterized qubit ket for Pancharatnam connection#1139wock9000 wants to merge 1 commit into
wock9000 wants to merge 1 commit into
Conversation
…nection
Define `qubitKet α θ` representing `cos(α/2)|0⟩ + e^{iθ}sin(α/2)|1⟩`
and prove the inner product formula `dot_qubitKet` in half-angle form.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jstoobysmith
reviewed
Jun 2, 2026
Member
There was a problem hiding this comment.
I think the stuff in this file is maybe more appropriate for the Braket or Qubit file
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.
Summary
Define
qubitKet α θrepresentingcos(α/2)|0⟩ + e^{iθ}sin(α/2)|1⟩— the standard angle-parameterized qubit state mapping toblochPoint α θon the Bloch sphere.Prove
dot_qubitKet: the inner product of two such states in closed half-angle form,〈ψ₁‖ψ₂〉 = cos(α₁/2)cos(α₂/2) + e^{i(θ₂-θ₁)}sin(α₁/2)sin(α₂/2)which is the computational core for connecting the Bargmann invariant to the solid angle (Pancharatnam's theorem).
New definitions and results
qubitKetdefqubitKet_apply_zero@[simp] lemma↑(cos(α/2))qubitKet_apply_one@[simp] lemmaexp(iθ) · ↑(sin(α/2))dot_qubitKetlemmaDesign notes
Ket (Fin 2)directly rather than importingQubit(which pulls in the full Channels stack). The parameterization is identical toblochPointfromBlochSphere.lean.private def qubitKetVecto preventsimp [qubitKet]from unfolding through the normalization proof term.BlochSphere, which transitively providesBraket,BargmannInvariant, and Mathlib's complex analysis.Build
74 lines, zero warnings from this file, zero errors. Tested on
v4.29.1after rebasing onto current master (includes #1134).References
S. Pancharatnam, Generalized theory of interference, and its applications, Proc. Indian Acad. Sci. A 44, 247–262 (1956)