AFTD Auto-Formalizing Theoretical Domains

qubit_state_1

def

The diagonal qubit state sigma_1 with eigenvalues 1-q and q.

Statement

def qubit_state_1 (q : ℝ) : Matrix (Fin 2) (Fin 2) ℝ
Defined in
OP-1440
Verified
10 Nov 2026
Axioms
none listed
Used by 2
  • symmetric_qubit_fork_xyThe bipartite real matrix symmetric_qubit_fork_xy p a q t of type Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℝ for real parameters p, a, q, t…
  • symmetric_qubit_fork_xyzThe tripartite real matrix symmetric_qubit_fork_xyz p a q t of type Matrix (Fin 2 × (Fin 2 × Fin 2)) (Fin 2 × (Fin 2 × Fin 2)) ℝ for real…

Read back from the Lean

For a real number $q$, qubit_state_1 q is defined as the $2 \times 2$ real diagonal matrix with diagonal entries $1 - q$ and $q$, i.e., $\begin{pmatrix} 1 - q & 0 \\ 0 & q \end{pmatrix}$.

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 diagonal qubit density matrix sigma_1 = diag(1-q, q). -/
def qubit_state_1 (q : ℝ) : Matrix (Fin 2) (Fin 2) ℝ := Matrix.diagonal ![1 - q, q]
See it in the graphDiscuss this resultChallenge it