Finite-dimensional complex Hilbert spaces and operator notation
DefinitionCRCD_Quantum_QuantumMechanics_QuantumStatechannel-renyi-continuity-jwang226quantum-information
The basic quantum-space structure consists of a complete complex inner-product space with finite complex dimension, including its normed additive-group structure. It does not require to be nonzero. The operator and trace interfaces are
The trace is complex-linear. Inner products use the convention that is conjugate-linear in and linear in , and the operator adjoint is the corresponding Hilbert-space adjoint. These definitions and inherited structural instances provide the common finite-dimensional setting for channels, positivity, continuous functional calculus, and entropy expressions.
Definition code
import Mathlib.Analysis.CStarAlgebra.CompletelyPositiveMap
import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap
import Mathlib.Analysis.InnerProductSpace.StarOrder
import Mathlib.LinearAlgebra.Trace
/-
Copyright (c) 2025 Hayata Yamasaki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors:
-/
namespace QuantumState
universe u v
-- Qudit
class Qudit (a : Type u) extends
NormedAddCommGroup a,
InnerProductSpace ℂ a,
CompleteSpace a,
FiniteDimensional ℂ a
abbrev L (ℋ : Type u) [AddCommGroup ℋ] [Module ℂ ℋ] : Type u :=
ℋ →ₗ[ℂ] ℋ
-- Identity operator
abbrev I (ℋ : Type u) [AddCommGroup ℋ] [Module ℂ ℋ] : L ℋ :=
LinearMap.id
-- Braket notation
notation "⟨" x "∣" y "⟩" => inner ℂ x y
-- Adjoint
notation X "†" => LinearMap.adjoint X
variable {ℋ : Type u} [Qudit ℋ]
-- Trace
noncomputable abbrev Tr : L ℋ →ₗ[ℂ] ℂ := LinearMap.trace ℂ ℋ
-- Normal operators are defined by IsStarNormal
-- Hermitian operators are defined by IsSelfAdjoint
-- Positive semidefinite operators are defined by IsPositive
-- Positive definite operators
-- Projection operators
-- Density operators
-- Unitary operators are defined by unitary
-- Def: Function of normal operators (1.145) of https://cs.uwaterloo.ca/~watrous/TQI/TQI1.pdf
-- For any qudit ℋ, any A ∈ Normal(ℋ), any 𝒳 ⊆ ℂ, and any complex-valued function f: 𝒳 → ℂ,
-- suppose that A's spectral decomposition A=∑_{k=1,…,m} λₖ Πₖ satisfies λₖ ∈ 𝒳 for all k.
-- Then, we define
-- f(A) := ∑_{k=1,…,m} f(λₖ) Πₖ
end QuantumState
Source