PhyslibSearch

QuantumInfo.ForMathlib.HermitianMat.Sqrt

10 declarations

definition

Square root of a Hermitian matrix AA via CFC

#sqrt

Given a Hermitian matrix AHermitianMatd(k)A \in \text{HermitianMat}_d(\mathbb{k}), its square root A1/2A^{1/2} is defined using the continuous functional calculus (CFC). Specifically, A1/2=f(A)A^{1/2} = f(A) where f(x)=xf(x) = \sqrt{x} for x0x \geq 0 and f(x)=0f(x) = 0 for x<0x < 0. The resulting matrix is also a Hermitian matrix of the same dimension.

theorem

The square of the square root of a Hermitian matrix AA equals its positive part A+A^+

#sqrt_sq_eq_proj

For any Hermitian matrix AHermitianMatd(k)A \in \text{HermitianMat}_d(\mathbb{k}), the product of its square root matrix with itself is equal to its positive-semidefinite part, denoted A+A^+. That is, A.sqrt.matA.sqrt.mat=A+A.\text{sqrt}.\text{mat} \cdot A.\text{sqrt}.\text{mat} = A^+.

theorem

(A1/2)2=A(A^{1/2})^2 = A for positive semi-definite Hermitian matrices

#sqrt_sq

Let AA be a Hermitian matrix. If AA is positive semi-definite (denoted by 0A0 \le A), then the square of its square root matrix is equal to AA, i.e., A1/2A1/2=AA^{1/2} A^{1/2} = A.

theorem

If AA commutes with BB, then A\sqrt{A} commutes with BB

#commute_sqrt_left

Let AA and BB be Hermitian matrices. If the matrix AA commutes with the matrix BB, then the square root of AA (denoted A1/2A^{1/2}) also commutes with BB. In other terms, if AB=BAAB = BA, then A1/2B=BA1/2A^{1/2}B = BA^{1/2}.

theorem

If AA and BB commute, then AA commutes with B\sqrt{B}

#commute_sqrt_right

Let AA and BB be Hermitian matrices of dimension dd over the field k\mathbb{k}. If AA commutes with BB (i.e., AB=BAAB = BA), then AA also commutes with the square root of BB, denoted by B\sqrt{B}. That is, AB=BAA \sqrt{B} = \sqrt{B} A.

theorem

A1/2AA1/2=IA^{-1/2} A A^{-1/2} = I for positive definite AA

#sqrt_inv_mul_self_mul_sqrt_inv_eq_one

Let AA be a Hermitian matrix in kd×d\mathbb{k}^{d \times d}. If AA is a positive definite matrix, then A1/2AA1/2=IA^{-1/2} A A^{-1/2} = I, where A1/2A^{-1/2} denotes the square root of the inverse of AA and II is the identity matrix.

theorem

The square root of a Hermitian matrix AA is non-negative (0A0 \le \sqrt{A})

#sqrt_nonneg

For any Hermitian matrix AA of dimension dd over the field k\mathbb{k}, its square root A\sqrt{A} is a non-negative operator, denoted by 0A0 \le \sqrt{A}.

theorem

0<A    0<A1/20 < A \implies 0 < A^{1/2}

#sqrt_pos

Let AA be a Hermitian matrix of dimension dd over the field k\mathbb{k}. If AA is strictly positive-definite (denoted 0<A0 < A), then its square root A1/2A^{1/2} (denoted `A.sqrt`) is also strictly positive-definite (0<A1/20 < A^{1/2}).

theorem

The square root of a positive-definite Hermitian matrix is positive-definite

#sqrt_posDef

Let AA be a Hermitian matrix of dimension dd over the field k\mathbb{k}. If the underlying matrix of AA (denoted A.matA.\text{mat}) is positive-definite, then the underlying matrix of the square root of AA (denoted A1/2.matA^{1/2}.\text{mat}) is also positive-definite.

definition

`positivity` extension for A1/2A^{1/2}

#evalHermitianMatSqrt

This is a tactic extension for the `positivity` framework that automatically proves the positivity or nonnegativity of the square root of a Hermitian matrix. Given an expression of the form A1/2A^{1/2} (denoted `HermitianMat.sqrt A`), the extension attempts to determine if AA is strictly positive-definite (A>0A > 0). If A>0A > 0 is established, it returns a proof that A1/2>0A^{1/2} > 0 using the theorem `HermitianMat.sqrt_pos`. Otherwise, it falls back to providing a proof of nonnegativity (A1/20A^{1/2} \ge 0) using the theorem `HermitianMat.sqrt_nonneg`.