Skip to content

feat(QuantumInfo): angle-parameterized qubit ket for Pancharatnam connection#1139

Open
wock9000 wants to merge 1 commit into
leanprover-community:masterfrom
Xylem-Group:pancharatnam-qubit
Open

feat(QuantumInfo): angle-parameterized qubit ket for Pancharatnam connection#1139
wock9000 wants to merge 1 commit into
leanprover-community:masterfrom
Xylem-Group:pancharatnam-qubit

Conversation

@wock9000

@wock9000 wock9000 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Define qubitKet α θ representing cos(α/2)|0⟩ + e^{iθ}sin(α/2)|1⟩ — the standard angle-parameterized qubit state mapping to blochPoint α θ 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

Name Kind Description
qubitKet def Qubit ket from Bloch sphere angles (α, θ)
qubitKet_apply_zero @[simp] lemma Component 0: ↑(cos(α/2))
qubitKet_apply_one @[simp] lemma Component 1: exp(iθ) · ↑(sin(α/2))
dot_qubitKet lemma Inner product in half-angle form

Design notes

  • Uses Ket (Fin 2) directly rather than importing Qubit (which pulls in the full Channels stack). The parameterization is identical to blochPoint from BlochSphere.lean.
  • The raw vector is factored into a private def qubitKetVec to prevent simp [qubitKet] from unfolding through the normalization proof term.
  • Single import: BlochSphere, which transitively provides Braket, BargmannInvariant, and Mathlib's complex analysis.

Build

74 lines, zero warnings from this file, zero errors. Tested on v4.29.1 after 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)

…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>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the stuff in this file is maybe more appropriate for the Braket or Qubit file

@jstoobysmith jstoobysmith added the awaiting-author A reviewer has asked the author a question or requested changes label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants