xz_rho
def
The reduced density matrix xz_rho (L : ℕ) : Matrix (Fin L → Fin 2) (Fin L → Fin 2) ℂ defined as the matrix square (xz_matrix_a L) * (xz_matrix_a L).
Statement
noncomputable def xz_rho (L : ℕ) : Matrix (Fin L → Fin 2) (Fin L → Fin 2) ℂ
- Defined in
- arXiv:2610.20846, Appendix C
- Verified
- 01 Nov 2026
- Axioms
- none listed
- Built on 1
- xz_matrix_aThe matrix
xz_matrix_a (L : ℕ) : Matrix (Fin L → Fin 2) (Fin L → Fin 2) ℂdefined as…
- xz_matrix_aThe matrix
- Used by 2
- xz_rho_trace_oneFor every natural number L with 1 ≤ L, the trace of the reduced density matrix
xz_rho Lequals 1:Matrix.trace (xz_rho L) = 1. - xz_rho_is_hermitianFor every natural number L, the reduced density matrix
xz_rho Lis Hermitian:(xz_rho L).IsHermitian.
- xz_rho_trace_oneFor every natural number L with 1 ≤ L, the trace of the reduced density matrix
Read back from the Lean
For a natural number L, xz_rho L is defined as the matrix square (via matrix multiplication) of xz_matrix_a L with itself, producing a complex matrix indexed by (Fin L → Fin 2) × (Fin L → Fin 2).
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 reduced density matrix rho_L = A_L^2 on L qubits. -/ noncomputable def xz_rho (L : ℕ) : Matrix (Fin L → Fin 2) (Fin L → Fin 2) ℂ := (xz_matrix_a L) * (xz_matrix_a L)