two_level_psi
def
The unit vector psi_p on Fin d with psi_p(j) = sqrt(p) for j = 0, sqrt(1 - p) for j = 1, and 0 for all other j (the pure state entering the two-level environment).
Statement
noncomputable def two_level_psi (d : ℕ) (p : ℝ) : Fin d → ℝ
- Source
- step towards prime_convolution_entanglement_breaking_iff_threshold
- Verified
- 27 Nov 2026
- Axioms
- none listed
- Used by 3
- prime_convolution_critical_env_orbit_decompositionThe critical two-level environment is one two-support product orbit plus a nonnegative diagonal matrix for every allowed prime dimension…
- prime_convolution_critical_envThe critical (threshold) environment sigma_crit = |psi_p><psi_p| + sqrt(p(1-p)) * I on Fin d: the two-level pure environment shifted by…
- prime_convolution_entanglement_breaking_iff_thresholdLet d be a prime with d ≥ 5, r ∈ ZMod d with r ≠ 0, r ≠ 1 and 2r ≠ 1 (r is not the inverse of 2), and p, t real numbers in [0, 1]. The…
Lean source view module on GitHub
/-- Vector with entries sqrt p at index 0, sqrt (1 - p) at index 1 and 0 elsewhere; the pure state of the two-level environment. -/ noncomputable def two_level_psi (d : ℕ) (p : ℝ) : Fin d → ℝ := fun j => if (j : ℕ) = 0 then Real.sqrt p else if (j : ℕ) = 1 then Real.sqrt (1 - p) else 0