sigmaZ
defimported Lean
The phase-flip Pauli matrix $Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$ over $\mathbb{C}$.
Statement
set_option linter.mathlibStandardSet false in open scoped BigOperators in open scoped Real in open scoped Nat in open scoped Classical in open scoped Pointwise in set_option maxRecDepth 4000 in set_option synthInstance.maxHeartbeats 20000 in set_option synthInstance.maxSize 128 in set_option relaxedAutoImplicit false in set_option autoImplicit false in open Complex Matrix in noncomputable def sigmaZ : Matrix (Fin 2) (Fin 2) ℂ
- Defined in
- TCSlib, `sigmaZ`
- Lean proof
- By Allan Li, Hydroxyi (from the file's git history), from github.com/Shilun-Allan-Li/tcslib at
c8a02591b1e5(Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.sigmaZ← sigmaZ (TCSlib/ErrorCorrectingCodes/QuantumHamming.lean:72): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none listed
- Used by 7
- stabilizer_subspace_finrank_eq_two_powLet $k \le n$ and let $g_1, \dots, g_{n-k}$ be $n$-qubit Pauli operators $g_l = \varepsilon_l P_l$ with signs…
- PauliBasis.toMatrixMaps each Pauli basis element $\{I,X,Y,Z\}$ to its corresponding $2\times 2$ matrix $\{\sigma_I,\sigma_X,\sigma_Y,\sigma_Z\}$.
- 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. - pauli_moment_two_eq_four_replica_sumFor every natural number n and n-qubit pure state ψ in Hn n, the second Pauli-Liouville moment (pauliLiouvilleMomentTwo n ψ as a complex…
- xz_matrix_a_is_hermitianFor every natural number L, the matrix
xz_matrix_a Lis Hermitian:(xz_matrix_a L).IsHermitian. - error_sphere_dimensionDimension of the error sphere of a non-degenerate code. Let $C \le \mathcal{H}_n$ be a code on $n$ qubits that is non-degenerate for $t$…
- xz_rho_is_hermitianFor every natural number L, the reduced density matrix
xz_rho Lis Hermitian:(xz_rho L).IsHermitian.
Lean source view module on GitHub
set_option linter.mathlibStandardSet false in open scoped BigOperators in open scoped Real in open scoped Nat in open scoped Classical in open scoped Pointwise in set_option maxRecDepth 4000 in set_option synthInstance.maxHeartbeats 20000 in set_option synthInstance.maxSize 128 in set_option relaxedAutoImplicit false in set_option autoImplicit false in open Complex Matrix in /-- The phase-flip Pauli matrix Z = [[1,0],[0,−1]] over ℂ. -/ noncomputable def sigmaZ : Matrix (Fin 2) (Fin 2) ℂ := !![1, 0; 0, -1]