Documentation

Physlib.Relativity.PauliMatrices.SelfAdjoint

Interaction of Pauli matrices with self-adjoint matrices #

theorem PauliMatrix.trace_pauliMatrix_mul_selfAdjoint_re (μ : Fin 1 ⊕ Fin 3) (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
↑(pauliMatrix μ * ↑A).trace.re = (pauliMatrix μ * ↑A).trace

The trace of a pauli-matrix multiplied by a self-adjoint 2×2 matrix is real.

theorem PauliMatrix.selfAdjoint_ext_complex {A B : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))} (h0 : (pauliMatrix (Sum.inl 0) * ↑A).trace = (pauliMatrix (Sum.inl 0) * ↑B).trace) (h1 : (pauliMatrix (Sum.inr 0) * ↑A).trace = (pauliMatrix (Sum.inr 0) * ↑B).trace) (h2 : (pauliMatrix (Sum.inr 1) * ↑A).trace = (pauliMatrix (Sum.inr 1) * ↑B).trace) (h3 : (pauliMatrix (Sum.inr 2) * ↑A).trace = (pauliMatrix (Sum.inr 2) * ↑B).trace) :
A = B

Two 2×2 self-adjoint matrices are equal if the (complex) traces of each matrix multiplied by each of the Pauli-matrices are equal.

theorem PauliMatrix.selfAdjoint_ext {A B : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))} (h0 : (pauliMatrix (Sum.inl 0) * ↑A).trace.re = (pauliMatrix (Sum.inl 0) * ↑B).trace.re) (h1 : (pauliMatrix (Sum.inr 0) * ↑A).trace.re = (pauliMatrix (Sum.inr 0) * ↑B).trace.re) (h2 : (pauliMatrix (Sum.inr 1) * ↑A).trace.re = (pauliMatrix (Sum.inr 1) * ↑B).trace.re) (h3 : (pauliMatrix (Sum.inr 2) * ↑A).trace.re = (pauliMatrix (Sum.inr 2) * ↑B).trace.re) :
A = B

Two 2×2 self-adjoint matrices are equal if the real traces of each matrix multiplied by each of the Pauli-matrices are equal.

An auxiliary function which on i : Fin 1 ⊕ Fin 3 returns the corresponding Pauli matrix as a self-adjoint matrix.

Equations
Instances For
    @[simp]

    Pauli matrices are orthogonal with respect to the trace pairing: tr(σ_μ σ_ν) = 2 δ_μν.

    noncomputable def PauliMatrix.pauliCoeff (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
    Fin 1 ⊕ Fin 3 → ℝ

    The four real Pauli coefficients of a self-adjoint 2 × 2 matrix.

    Equations
    Instances For
      theorem PauliMatrix.sum_pauliCoeff (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
      ∑ i : Fin 1 ⊕ Fin 3, pauliCoeff A i • pauliSelfAdjoint i = A

      Every self-adjoint 2 × 2 matrix is its Pauli decomposition.

      theorem PauliMatrix.eq_sum_pauli (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
      A = ∑ i : Fin 1 ⊕ Fin 3, pauliCoeff A i • pauliSelfAdjoint i

      Every self-adjoint 2 × 2 matrix is a real linear combination of the Pauli matrices.

      The Pauli matrices span all self-adjoint matrices.

      noncomputable def PauliMatrix.pauliBasis :

      The basis of selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ) formed by Pauli matrices.

      Equations
      Instances For

        Pauli coordinates of self-adjoint 2 × 2 matrices #

        noncomputable def PauliMatrix.scalarCoeff (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :

        The coefficient of the identity in the Pauli decomposition.

        Equations
        Instances For
          noncomputable def PauliMatrix.vectorCoeff (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
          Fin 3 → ℝ

          The three spatial Pauli coefficients.

          Equations
          Instances For
            noncomputable def PauliMatrix.vectorPart (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
            Matrix (Fin 2) (Fin 2) ℂ

            The traceless Pauli-vector part a · σ.

            Equations
            Instances For
              noncomputable def PauliMatrix.pauliRadius (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :

              The Euclidean length of the spatial Pauli coefficients.

              Equations
              Instances For
                theorem PauliMatrix.pauliRadius_sq (A : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                pauliRadius A ^ 2 = ∑ i : Fin 3, vectorCoeff A i ^ 2

                The Pauli radius is the square root of the squared Euclidean length of the spatial Pauli coefficients.

                Explicit coefficients #

                A self-adjoint matrix is its scalar part plus its Pauli-vector part.

                The trace of a self-adjoint matrix is twice its scalar Pauli coefficient.

                @[simp]

                The Pauli-vector part has zero trace.

                The square of the vector part of a self-adjoint matrix is its squared Pauli radius times the identity.

                Trace orthogonality of the covariant Pauli basis: tr (σ'_a σ'_b) = 2 δ_{a b}.

                theorem PauliMatrix.trace_pauliSelfAdjoint'_mul_apply (l : Fin 1 ⊕ Fin 3) (N : Matrix (Fin 2) (Fin 2) ℂ) :
                (↑(pauliSelfAdjoint' l) * N).trace = match l with | Sum.inl 0 => N 0 0 + N 1 1 | Sum.inr 0 => -(N 0 1 + N 1 0) | Sum.inr 1 => -(Complex.I * (N 0 1 - N 1 0)) | Sum.inr 2 => -(N 0 0 - N 1 1)

                The trace pairing of a covariant Pauli matrix with an arbitrary matrix, expressed through the matrix entries.

                The Pauli matrices where σi are negated are linearly independent.

                The Pauli matrices where σi are negated span all Self-adjoint matrices.

                noncomputable def PauliMatrix.pauliBasis' :

                The basis of selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ) formed by Pauli matrices where the 1, 2, 3 pauli matrices are negated. These can be thought of as the covariant Pauli-matrices.

                Equations
                Instances For
                  theorem PauliMatrix.pauliBasis'_decomp (M : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                  M = (1 / 2 * (pauliMatrix (Sum.inl 0) * ↑M).trace.re) • pauliBasis' (Sum.inl 0) + (-1 / 2 * (pauliMatrix (Sum.inr 0) * ↑M).trace.re) • pauliBasis' (Sum.inr 0) + (-1 / 2 * (pauliMatrix (Sum.inr 1) * ↑M).trace.re) • pauliBasis' (Sum.inr 1) + (-1 / 2 * (pauliMatrix (Sum.inr 2) * ↑M).trace.re) • pauliBasis' (Sum.inr 2)

                  The decomposition of a self-adjoint matrix into the Pauli matrices (where σi are negated).

                  @[simp]
                  theorem PauliMatrix.pauliBasis'_repr_inl_0 (M : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                  ↑((pauliBasis'.repr M) (Sum.inl 0)) = 1 / 2 * (pauliMatrix (Sum.inl 0) * ↑M).trace

                  The component of a self-adjoint matrix in the direction σ0 under the basis formed by the covariant Pauli matrices.

                  @[simp]
                  theorem PauliMatrix.pauliBasis'_repr_inr_0 (M : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                  ↑((pauliBasis'.repr M) (Sum.inr 0)) = -1 / 2 * (pauliMatrix (Sum.inr 0) * ↑M).trace

                  The component of a self-adjoint matrix in the direction -σ1 under the basis formed by the covariant Pauli matrices.

                  @[simp]
                  theorem PauliMatrix.pauliBasis'_repr_inr_1 (M : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                  ↑((pauliBasis'.repr M) (Sum.inr 1)) = -1 / 2 * (pauliMatrix (Sum.inr 1) * ↑M).trace

                  The component of a self-adjoint matrix in the direction -σ2 under the basis formed by the covariant Pauli matrices.

                  @[simp]
                  theorem PauliMatrix.pauliBasis'_repr_inr_2 (M : ↥(selfAdjoint (Matrix (Fin 2) (Fin 2) ℂ))) :
                  ↑((pauliBasis'.repr M) (Sum.inr 2)) = -1 / 2 * (pauliMatrix (Sum.inr 2) * ↑M).trace

                  The component of a self-adjoint matrix in the direction -σ3 under the basis formed by the covariant Pauli matrices.

                  The relationship between the basis pauliBasis of contravariant Pauli-matrices and the basis pauliBasis' of covariant Pauli matrices is by multiplication by the Minkowski matrix.