Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.UnitaryGroup

Unitary group characterizations and Hermitian involutions #

For a square matrix U : Matrix n n π•œ over [RCLike π•œ], we prove the five-way equivalence (Matrix.unitaryGroup_tfae, Arora and Barak, Claim 20.11):

  1. U ∈ unitaryGroup n π•œ (U * star U = 1 and star U * U = 1);
  2. βˆ€ v : EuclideanSpace π•œ n, β€–toEuclideanCLM (n := n) (π•œ := π•œ) U vβ€– = β€–vβ€– (Euclidean norm preservation);
  3. βˆ€ v : n β†’ EuclideanSpace π•œ n, Orthonormal π•œ v β†’ Orthonormal π•œ (fun i => toEuclideanCLM (n := n) (π•œ := π•œ) U (v i)) (orthonormal-basis preservation);
  4. Orthonormal π•œ (fun j : n => WithLp.toLp 2 (fun i => U i j)) (orthonormal columns);
  5. Orthonormal π•œ (fun i : n => WithLp.toLp 2 (U i)) (orthonormal rows).

A Hermitian matrix A with A * A = 1 is unitary, since A * star A = A * A (Matrix.IsHermitian.mem_unitaryGroup_of_mul_self). In quantum computing these are the Β±1 observables, such as the Pauli matrices and the CNOT gate.

Main results #

References #

theorem Matrix.IsHermitian.mem_unitaryGroup_of_mul_self {n : Type u_1} {Ξ± : Type u_2} [Fintype n] [DecidableEq n] [CommRing Ξ±] [StarRing Ξ±] {A : Matrix n n Ξ±} (hA : A.IsHermitian) (hA2 : A * A = 1) :

A Hermitian matrix A with A * A = 1 (a Β±1 observable) is unitary.

theorem Matrix.mem_unitaryGroup_iff_forall_norm_toEuclideanCLM {n : Type u_1} {π•œ : Type u_2} [Fintype n] [DecidableEq n] [RCLike π•œ] (U : Matrix n n π•œ) :

A square matrix over π•œ is unitary if and only if its action on EuclideanSpace π•œ n preserves the Euclidean norm of every vector Arora and Barak, Claim 20.11.

theorem Matrix.mem_unitaryGroup_iff_orthonormal_cols {n : Type u_1} {π•œ : Type u_2} [Fintype n] [DecidableEq n] [RCLike π•œ] (U : Matrix n n π•œ) :
U ∈ unitaryGroup n π•œ ↔ Orthonormal π•œ fun (j : n) => WithLp.toLp 2 fun (i : n) => U i j

A square matrix over π•œ is unitary if and only if its columns form an orthonormal family in EuclideanSpace π•œ n Arora and Barak, Claim 20.11.

theorem Matrix.mem_unitaryGroup_iff_orthonormal_rows {n : Type u_1} {π•œ : Type u_2} [Fintype n] [DecidableEq n] [RCLike π•œ] (U : Matrix n n π•œ) :
U ∈ unitaryGroup n π•œ ↔ Orthonormal π•œ fun (i : n) => WithLp.toLp 2 (U i)

A square matrix over π•œ is unitary if and only if its rows form an orthonormal family in EuclideanSpace π•œ n Arora and Barak, Claim 20.11.

theorem Matrix.mem_unitaryGroup_iff_forall_orthonormal {n : Type u_1} {π•œ : Type u_2} [Fintype n] [DecidableEq n] [RCLike π•œ] (U : Matrix n n π•œ) :
U ∈ unitaryGroup n π•œ ↔ βˆ€ (v : n β†’ EuclideanSpace π•œ n), Orthonormal π•œ v β†’ Orthonormal π•œ fun (i : n) => (toEuclideanCLM U) (v i)

A square matrix over π•œ is unitary if and only if its action on EuclideanSpace π•œ n maps every n-indexed orthonormal family (an orthonormal basis of EuclideanSpace π•œ n) to an orthonormal family Arora and Barak, Claim 20.11.

theorem Matrix.unitaryGroup_tfae {n : Type u_1} {π•œ : Type u_2} [Fintype n] [DecidableEq n] [RCLike π•œ] (U : Matrix n n π•œ) :
[U ∈ unitaryGroup n π•œ, βˆ€ (v : EuclideanSpace π•œ n), β€–(toEuclideanCLM U) vβ€– = β€–vβ€–, βˆ€ (v : n β†’ EuclideanSpace π•œ n), Orthonormal π•œ v β†’ Orthonormal π•œ fun (i : n) => (toEuclideanCLM U) (v i), Orthonormal π•œ fun (j : n) => WithLp.toLp 2 fun (i : n) => U i j, Orthonormal π•œ fun (i : n) => WithLp.toLp 2 (U i)].TFAE

Five equivalent characterizations of a unitary matrix (Arora and Barak, Claim 20.11 and Chapter 20, Exercise 1): U ∈ unitaryGroup n π•œ, norm preservation on EuclideanSpace π•œ n, orthonormal-basis preservation, orthonormal columns, and orthonormal rows.