two_level_environment
With d : ℕ and real numbers p, t, returns the complex d×d matrix (1 − t)·I/d + t·|ψ⟩⟨ψ|, where ψ : Fin d → ℝ has ψ j = √p when the natural-number value of j is 0, ψ j = √(1 − p) when it is 1, and ψ j = 0 otherwise; that is, entry (j, l) is (1 − t)/d if j = l and 0 otherwise, plus t·ψ j·ψ l. For p, t in [0, 1] and d ≥ 2 it is the state σ_{p,t} = (1 − t) I_d/d + t|ψ_p⟩⟨ψ_p| with |ψ_p⟩ = √p|0⟩ + √(1 − p)|1⟩.
Statement
noncomputable def two_level_environment (d : ℕ) (p t : ℝ) : Matrix (Fin d) (Fin d) ℂ
- Defined in
- OP-2466 (proposed here; it builds on the qutrit convolution channels of arXiv:2609.16200, whose Theorem 8 gives the exact PPT and entanglement-breaking threshold 2/5 on a balanced two-level qutrit slice, and on arXiv:2611.09594, which shows PPT and entanglement breaking differ for another convolution environment). The noisy two-level environment σ_{p,t} of the entry.
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Used by 5
- prime_convolution_choi_ppt_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]. Let J =…
- prime_convolution_separable_imp_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]. If…
- 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…
- two_level_environment_traceFor d ≥ 2 and 0 ≤ p ≤ 1 and every real t, the trace of two_level_environment d p t is 1.
- prime_convolution_five_two_fifth_entanglement_breaking_iffFor every real t with 0 ≤ t ≤ 1: the matrix prime_convolution_choi 5 2 (two_level_environment 5 (1/5) t) (d = 5, r = 2, p = 1/5) is…
Read back from the Lean
The definition two_level_environment (d : ℕ) (p t : ℝ) is the d × d matrix with complex entries whose (j, l)-th entry (for j, l : Fin d) is:
(if j = l then (1 - t) / d else 0) + t * v_j * v_l
(all terms coerced from ℝ to ℂ), where for any k : Fin d:
v_k = Real.sqrt p if (k : ℕ) = 0,
= Real.sqrt (1 - p) if (k : ℕ) = 1,
= 0 otherwise.
Equivalently, it is the d × d matrix representing ((1 - t) / d) • I + t • (v vᵀ) where v is the vector (√p, √(1-p), 0, ..., 0)ᵀ ∈ ℝ^d cast to ℂ.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The environment `(1 - t) I/d + t |ψ_p⟩⟨ψ_p|` with `ψ_p = √p |0⟩ + √(1-p) |1⟩`. -/ noncomputable def two_level_environment (d : ℕ) (p t : ℝ) : Matrix (Fin d) (Fin d) ℂ := Matrix.of fun j l => ((if j = l then (1 - t) / d else 0 : ℝ) : ℂ) + (t : ℂ) * ((if (j : ℕ) = 0 then Real.sqrt p else if (j : ℕ) = 1 then Real.sqrt (1 - p) else 0 : ℝ) : ℂ) * ((if (l : ℕ) = 0 then Real.sqrt p else if (l : ℕ) = 1 then Real.sqrt (1 - p) else 0 : ℝ) : ℂ)