EPR photon pair with detector: states (1), (2) and reduced state of photon 2
DefinitionAKR2008_DefsDefinitions for Sec. II of Albers–Kiefer–Reginatto (2008).
Let be a complex inner-product space (the detector). A vector of photon 1 photon 2 detector is recorded by its detector-valued components , , where is horizontal and vertical polarization.
polKet i— the basis vector .psiBefore Φ₀— Eq. (1): .psiAfter Φ↑ Φ↓— Eq. (2): .reducedPhoton2 Ψ— the reduced density matrix of photon 2 obtained from by tracing out photon 1 and the detector:
rhoHat— Eq. (3): as a complex matrix.
These definitions are shared by the goal theorem and by Milestones 1–2.
Formalization Note The tensor product is identified with the space of functions ; Mathlib's inner product is conjugate-linear in its first argument, which is why the entry pairs on the left with on the right.
import Mathlib
/-!
# Albers–Kiefer–Reginatto (2008), Sec. II: the EPR-type states (1), (2) and the
reduced density operator (3) of photon 2.
The joint Hilbert space is `ℂ² ⊗ ℂ² ⊗ H` (photon 1 ⊗ photon 2 ⊗ detector), where `H` is an
arbitrary complex inner-product space. Using the canonical isomorphism
`ℂ² ⊗ ℂ² ⊗ H ≅ (Fin 2 × Fin 2 → H)`, a joint vector is recorded by its `H`-valued components
`Ψ i j` (`i` = polarization of photon 1, `j` = polarization of photon 2).
Polarization index `0` is horizontal (`↑`), index `1` is vertical (`↓`).
-/
namespace AKR2008
open scoped InnerProductSpace
/-- A vector of photon 1 ⊗ photon 2 ⊗ detector, given by its detector-valued components:
`Ψ i j ∈ H` is the component along `|i⟩₁ |j⟩₂`. -/
abbrev JointState (H : Type*) := Fin 2 → Fin 2 → H
/-- The computational basis vector `|i⟩` of a single photon's polarization space `ℂ²`
(`|0⟩ = |↑⟩` horizontal, `|1⟩ = |↓⟩` vertical). -/
def polKet (i : Fin 2) : Fin 2 → ℂ := fun k => if k = i then 1 else 0
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
/-- Eq. (1): `|Ψ₀⟩ = (1/√2)(|↑⟩₁|↓⟩₂ − |↓⟩₁|↑⟩₂) |Φ₀⟩`. -/
noncomputable def psiBefore (Φ₀ : H) : JointState H := fun i j =>
((1 / Real.sqrt 2 : ℝ) : ℂ) • ((polKet 0 i * polKet 1 j - polKet 1 i * polKet 0 j) • Φ₀)
/-- Eq. (2): `|Ψ⟩ = (1/√2)(|↑⟩₁|↓⟩₂|Φ↑⟩ − |↓⟩₁|↑⟩₂|Φ↓⟩)`. -/
noncomputable def psiAfter (Φup Φdown : H) : JointState H := fun i j =>
((1 / Real.sqrt 2 : ℝ) : ℂ) • ((polKet 0 i * polKet 1 j) • Φup - (polKet 1 i * polKet 0 j) • Φdown)
/-- The reduced density operator of photon 2 obtained from the pure state `|Ψ⟩⟨Ψ|` by tracing
out photon 1 and the detector:
`ρ₂(j, j') = ∑ᵢ ⟨Ψ i j', Ψ i j⟩_H` (matrix entries in the basis `|↑⟩, |↓⟩`). -/
noncomputable def reducedPhoton2 (Ψ : JointState H) : Matrix (Fin 2) (Fin 2) ℂ :=
fun j j' => ∑ i, ⟪Ψ i j', Ψ i j⟫_ℂ
/-- Eq. (3): `ρ̂ = ½ (|↑⟩₂⟨↑|₂ + |↓⟩₂⟨↓|₂)`. -/
noncomputable def rhoHat : Matrix (Fin 2) (Fin 2) ℂ :=
(1 / 2 : ℂ) • (Matrix.vecMulVec (polKet 0) (star (polKet 0)) +
Matrix.vecMulVec (polKet 1) (star (polKet 1)))
end AKR2008
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as drafter
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source paper and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony; an independent blind read-back is still recommended before the proposal is submitted.
The file declares, inside the namespace AKR2008:
- A type abbreviation: for any type , a joint state is a function (curried, ).
- For , the vector with if and otherwise.
- For a complex inner-product space and : . Explicitly: , , . Here is the real square root, cast to .
- For : , i.e. , , other components .
- For a joint state , the complex matrix with entries
where is conjugate-linear in the first slot. 6. The complex matrix with (outer products, = entrywise complex conjugate); it equals times the identity matrix.
No hypotheses (normalization, orthogonality, dimension) are built into any of these definitions; may be any complex inner-product space, including the zero space.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.