PhyslibSearch

QuantumInfo.Finite.Ensemble

37 declarations

abbrev

Mixed-state ensemble as an MState d\text{MState } d-valued random variable

#MEnsemble

A mixed-state ensemble is defined as a random variable var\text{var} taking values in the set of mixed states M(d)\mathcal{M}(d) of a dd-dimensional Hilbert space. Given a finite index set α\alpha, an ensemble consists of a map var:αMState d\text{var} : \alpha \to \text{MState } d that assigns a mixed state to each outcome, and a probability distribution distr\text{distr} over α\alpha that provides the statistical weights for each state.

abbrev

Pure-state ensemble as a `Ket d`-valued random variable

#PEnsemble

Given a finite-dimensional Hilbert space (represented by the type of its basis dd) and a finite set of outcomes α\alpha, a pure-state ensemble EE is a random variable mapping from α\alpha to the space of state vectors (kets) Hd\mathcal{H}_d. It consists of a probability distribution p:α[0,1]p: \alpha \to [0, 1] and a collection of pure states ψaKet(d)|\psi_a\rangle \in \text{Ket}(d) for each aαa \in \alpha.

abbrev

States of a mixed-state ensemble `MEnsemble`

#states

Given a mixed-state ensemble EE of type `MEnsemble d α`, where dd represents the Hilbert space dimension and α\alpha is a finite index set, the function `MEnsemble.states` maps the ensemble to a collection of mixed states ρiMState d\rho_i \in \text{MState } d for each iαi \in \alpha. This is an alias for the random variable component of the underlying probability distribution.

abbrev

State vectors of a pure-state ensemble E\mathcal{E}

#states

Given a pure-state ensemble E\mathcal{E} over a finite set of outcomes α\alpha and a Hilbert space of dimension dd, the function `PEnsemble.states` maps the ensemble to its corresponding collection of state vectors ψi|\psi_i\rangle for each iαi \in \alpha. Each state is represented as a unit vector (Ket) in the dd-dimensional Hilbert space.

definition

Conversion from pure-state ensemble to mixed-state ensemble ρi=ψiψi\rho_i = |\psi_i\rangle\langle\psi_i|

#toMEnsemble

Let EP={(pi,ψi)}iα\mathcal{E}_P = \{(p_i, |\psi_i\rangle)\}_{i \in \alpha} be a pure-state ensemble, where each ψi|\psi_i\rangle is a ket in a dd-dimensional Hilbert space and pip_i is the probability associated with state ii. The function maps this pure-state ensemble to a mixed-state ensemble EM={(pi,ρi)}iα\mathcal{E}_M = \{(p_i, \rho_i)\}_{i \in \alpha}, where each pure state ψi|\psi_i\rangle is converted into its corresponding density matrix representation ρi=ψiψi\rho_i = |\psi_i\rangle\langle\psi_i|.

instance

Coercion from `PEnsemble d α` to `MEnsemble d α`

#instCoePEnsembleMEnsemble

Let dd be a finite type (representing the dimension or Hilbert space) and α\alpha be a finite index set. A pure ensemble `PEnsemble d α` (a collection of pure states ψi|\psi_i\rangle with associated probabilities pip_i) can be naturally coerced into a mixed ensemble `MEnsemble d α` (a collection of density matrices ρi\rho_i with associated probabilities pip_i) by mapping each pure state to its corresponding projection operator ρi=ψiψi\rho_i = |\psi_i\rangle\langle\psi_i|. This coercion is defined via the function `Ensemble.toMEnsemble`.

theorem

The mixed ensemble of ps,distr\langle ps, distr \rangle equals pureps,distr\langle \text{pure} \circ ps, distr \rangle

#toMEnsemble_mk

Let dd and α\alpha be finite types. For a physical ensemble (represented as `PEnsemble d α`) with a state mapping ps:αKet dps: \alpha \to \text{Ket } d and a probability distribution distrdistr, its conversion to a mixed ensemble toMEnsembleps,distrtoMEnsemble \langle ps, distr \rangle is a mixed ensemble whose states are given by the pure state density matrices ρa=ps(a)ps(a)\rho_a = |ps(a)\rangle\langle ps(a)| for each aαa \in \alpha, while retaining the same probability distribution distrdistr.

theorem

A mixed-state ensemble is a pure-state ensemble     \iff all its states are pure

#coe_PEnsemble_iff_pure_states

Let dd be a finite index set and α\alpha be a finite set of indices for an ensemble. For a mixed-state ensemble meme of type `MEnsemble d α`, there exists a pure-state ensemble pepe of type `PEnsemble d α` such that its natural embedding into the space of mixed-state ensembles equals meme (i.e., pe=me\uparrow pe = me) if and only if there exists a collection of kets ψi|\psi_i\rangle for each iαi \in \alpha such that every state ρi\rho_i in the ensemble meme is a pure state of the form ψiψi|\psi_i\rangle\langle\psi_i|.

definition

Mixture of a quantum ensemble piρi\sum p_i \rho_i

#mix

Given a quantum ensemble ee consisting of a finite set of mixed states {ρi}iα\{\rho_i\}_{i \in \alpha} and an associated probability distribution {pi}iα\{p_i\}_{i \in \alpha} (where α\alpha is a finite index set), the function returns the resulting mixed state ρMStated\rho \in \text{MState}_d defined by the convex combination: \[ \rho = \sum_{i \in \alpha} p_i \rho_i \] where each pip_i is the probability weight of the state ρi\rho_i.

theorem

The matrix of a mixed ensemble is the weighted sum of its component matrices

#mix_of

Let ee be a mixed ensemble (`MEnsemble`) of dimension dd indexed by a finite set α\alpha. The matrix representation m(mix e)m(\text{mix } e) of the mixed state obtained from the ensemble ee is equal to the convex sum of the matrix representations of its constituent states, weighted by their probabilities. That is, m(mix e)=iαpim(ρi)m(\text{mix } e) = \sum_{i \in \alpha} p_i \cdot m(\rho_i) where pip_i is the probability distribution (`e.distr i`) and ρi\rho_i are the states (`e.states i`) of the ensemble.

definition

Equivalence of MEnsembleMEnsemble induced by index equivalence αβ\alpha \simeq \beta

#congrMEnsemble

Given an equivalence (bijection) σ:αβ\sigma: \alpha \simeq \beta between two indexing sets, there exists a corresponding equivalence between the types of mixed-state ensembles MEnsemble(d,α)MEnsemble(d, \alpha) and MEnsemble(d,β)MEnsemble(d, \beta). This map relates ensembles indexed by α\alpha to those indexed by β\beta by reindexing the probability distributions and states according to σ\sigma.

definition

Equivalence of PEnsemblePEnsemble induced by index set bijection σ:αβ\sigma: \alpha \simeq \beta

#congrPEnsemble

Given an equivalence (bijection) σ:αβ\sigma: \alpha \simeq \beta between two index sets, we define an equivalence between the sets of pure-state ensembles PEnsemble(d,α)PEnsemble(d, \alpha) and PEnsemble(d,β)PEnsemble(d, \beta). This map re-indexes the states of an ensemble according to σ\sigma while preserving the underlying physical content.

theorem

Reindexing a mixed-state ensemble leaves the mixed state invariant (mix(σ(e))=mix(e)\text{mix}(\sigma(e)) = \text{mix}(e))

#mix_congrMEnsemble_eq_mix

Let dd be a finite type and let α,β\alpha, \beta be finite types with decidable equality. For any bijection σ:αβ\sigma: \alpha \simeq \beta and any mixed-state ensemble ee over α\alpha (of dimension dd), the mixed state resulting from the mixture of ee is equal to the mixed state resulting from the mixture of the reindexed ensemble produced by σ\sigma. That is, mix(congrMEnsemble(σ,e))=mix(e)\text{mix}(\text{congrMEnsemble}(\sigma, e)) = \text{mix}(e).

theorem

Invariance of mixed states under reindexing of pure-state ensembles

#mix_congrPEnsemble_eq_mix

Let dd be a finite index set and α,β\alpha, \beta be finite sets. For any pure-state ensemble ee indexed by α\alpha (of type `PEnsemble d α`) and any bijection σ:αβ\sigma : \alpha \simeq \beta, let ee' be the equivalent ensemble indexed by β\beta obtained via σ\sigma (denoted `congrPEnsemble σ e`). Then the resulting mixed state (density matrix) ρ\rho obtained by mixing the ensemble ee' is equal to the mixed state obtained by mixing the original ensemble ee. That is, mix(toMEnsemble(congrPEnsemble σe))=mix(e)\text{mix}(\text{toMEnsemble}(\text{congrPEnsemble } \sigma \, e)) = \text{mix}(e).

definition

Expectation value Ee[f]\mathbb{E}_e[f] of a function over a mixed-state ensemble

#average

Given a finite-dimensional Hilbert space with dimension type dd and an index set α\alpha, let ee be a mixed-state ensemble (ρi,pi)iα(\rho_i, p_i)_{i \in \alpha} where each ρi\rho_i is a mixed state (MState d\text{MState } d) and pip_i is its probability weight. For a function f:MState dTf: \text{MState } d \to T mapping mixed states to a type TT that is "mixable" (i.e., it supports convex combinations in a vector space UU), the average is defined as the expectation value of ff over the ensemble ee: Ee[f]=iαpif(ρi)\mathbb{E}_e[f] = \sum_{i \in \alpha} p_i f(\rho_i) The result is an element of TT.

definition

Average of an R0\mathbb{R}_{\ge 0}-valued function over a mixed ensemble

#average_NNReal

Given a mixed ensemble ee (represented by `MEnsemble d α`) and a function f:MState dR0f: \text{MState } d \to \mathbb{R}_{\ge 0} mapping mixed states to non-negative real numbers, the average value of ff over the ensemble is defined as fe=iαpif(ρi) \langle f \rangle_e = \sum_{i \in \alpha} p_i f(\rho_i) where pip_i are the probabilities and ρi\rho_i are the states associated with the ensemble ee. This specific definition ensures that since ff maps to non-negative reals R0\mathbb{R}_{\ge 0}, the resulting average is also a non-negative real number R0\mathbb{R}_{\ge 0}.

definition

Average of a function over a pure-state ensemble ee

#pure_average

Let dd and α\alpha be finite types. Given a function f:Ket dTf: \text{Ket } d \to T and a pure-state ensemble ee (represented as `PEnsemble d α`), the average of ff over ee is defined as the expectation value of ff acting on the states in ee with respect to the probability weights wiw_i provided by its distribution e.distre.\text{distr}. Formally, it is calculated as iαwif(ψi)\sum_{i \in \alpha} w_i \cdot f(\psi_i), where {wi}\{w_i\} are the probabilities and {ψi}\{\psi_i\} are the pure states (Kets) in the ensemble. The result is an element of TT, provided TT supports mixed operations via the `Mixable` instance.

definition

Average of f:Ket dR0f: \text{Ket } d \to \mathbb{R}_{\ge 0} over a pure ensemble

#pure_average_NNReal

Let Hd\mathcal{H}_d be a Hilbert space (represented by the type of its vectors `Ket d`) of finite dimension dd. Given a pure ensemble E={(pi,ψi)}iα\mathcal{E} = \{ (p_i, |\psi_i\rangle) \}_{i \in \alpha} (represented by `PEnsemble d α`), where pip_i are probabilities and ψi|\psi_i\rangle are pure states, and a function f:Ket dR0f: \text{Ket } d \to \mathbb{R}_{\ge 0} that maps states to non-negative real numbers, the function `pure_average_NNReal` computes the expected value: EE[f]=iαpif(ψi)\mathbb{E}_{\mathcal{E}}[f] = \sum_{i \in \alpha} p_i f(|\psi_i\rangle) The result is returned as a non-negative real number R0\mathbb{R}_{\ge 0}, utilizing the fact that the expectation of a non-negative function under a probability distribution is non-negative.

theorem

The average of ff over a coerced pure ensemble equals the pure average of fpuref \circ \text{pure}

#average_of_pure_ensemble

Let dd and α\alpha be finite types. Let TT be a type equipped with a mixing operation (specifically, a type TT that can be embedded into a real vector space UU). Let ee be a pure-state ensemble in a dd-dimensional Hilbert space with index set α\alpha, denoted as ePEnsemble d αe \in \text{PEnsemble } d\ \alpha. Let e\uparrow e denote the corresponding mixed-state ensemble (an element of MEnsemble d α\text{MEnsemble } d\ \alpha). For any function f:MState dTf: \text{MState } d \to T mapping density matrices to TT, the average of ff over the ensemble e\uparrow e is equal to the pure-state average of the composition fpuref \circ \text{pure} over ee, where pure(ψ)=ψψ\text{pure}(|\psi\rangle) = |\psi\rangle\langle\psi|. That is, average(f,e)=pure_average(fpure,e)\text{average}(f, \uparrow e) = \text{pure\_average}(f \circ \text{pure}, e)

theorem

The probability distribution of a pure ensemble is preserved under conversion to a mixed ensemble.

#distr_toMEnsemble

Let ee be a pure ensemble (an object of type `PEnsemble d α`) with state space dd and index set α\alpha. Then the probability distribution associated with its conversion to a general mixed ensemble (denoted by `toMEnsemble e`) is equal to the probability distribution of the original pure ensemble ee.

theorem

The mixture of a pure ensemble is a pure state ψψ|\psi\rangle\langle\psi| iff all constituent states with non-zero weight equal ψψ|\psi\rangle\langle\psi|.

#mix_pEnsemble_pure_iff_pure

Let ee be a pure ensemble of quantum states in a dd-dimensional Hilbert space, indexed by a finite set α\alpha, where e.distr(i)e.distr(i) denotes the probability of state ψi=e.states(i)|\psi_i\rangle = e.states(i). The mixed state ρ\rho formed by the ensemble, defined as the convex combination ρ=mix(e)=iαe.distr(i)ψiψi\rho = \text{mix}(e) = \sum_{i \in \alpha} e.distr(i) |\psi_i\rangle\langle\psi_i|, is equal to a specific pure state ψψ|\psi\rangle\langle\psi| if and only if for every index ii with non-zero probability (e.distr(i)0e.distr(i) \neq 0), the corresponding pure state ψiψi|\psi_i\rangle\langle\psi_i| is equal to ψψ|\psi\rangle\langle\psi|.

theorem

Average of Phase-Invariant ff on Ensemble Mixing to ψ|\psi\rangle Equals f(ψ)f(|\psi\rangle)

#mix_pEnsemble_pure_average

Let dd and α\alpha be finite index sets. Let ee be a pure ensemble (represented as `PEnsemble d α`) consisting of kets ψi|\psi_i\rangle with associated probabilities pip_i. Let f:Ket dTf: \text{Ket } d \to T be a function from kets to some type TT, where TT is equipped with a mixing structure (allowing for weighted averages). Suppose ff is invariant under phase equivalence, i.e., for any kets ψ|\psi\rangle and ϕ|\phi\rangle, if ψϕ|\psi\rangle \sim |\phi\rangle (meaning ψψ=ϕϕ|\psi\rangle\langle\psi| = |\phi\rangle\langle\phi|), then f(ψ)=f(ϕ)f(|\psi\rangle) = f(|\phi\rangle). If the total mixed state of the ensemble ρ=ipiψiψi\rho = \sum_i p_i |\psi_i\rangle\langle\psi_i| is equal to a pure state ψψ|\psi\rangle\langle\psi|, then the average of ff over the ensemble ee, denoted as ipif(ψi)\sum_i p_i f(|\psi_i\rangle), is equal to f(ψ)f(|\psi\rangle).

theorem

pixi=1    xi=1\sum p_i x_i = 1 \iff x_i = 1 for pi>0p_i > 0 under convexity constraints

#sum_prob_mul_eq_one_iff

Let ι\iota be a finite set. Let (pi)iι(p_i)_{i \in \iota} and (xi)iι(x_i)_{i \in \iota} be families of real numbers such that for all iιi \in \iota, pi0p_i \ge 0, and the sum of the weights is iιpi=1\sum_{i \in \iota} p_i = 1. Suppose further that each xix_i satisfies xi1x_i \le 1. Then the weighted sum iιpixi\sum_{i \in \iota} p_i x_i is equal to 11 if and only if for every iιi \in \iota where pi0p_i \neq 0, it holds that xi=1x_i = 1.

theorem

Tr(ρψψ)=1    ρ=ψψ\text{Tr}(\rho |\psi\rangle\langle\psi|) = 1 \iff \rho = |\psi\rangle\langle\psi|

#exp_val_pure_eq_one_iff

Let ρ\rho be a quantum mixed state (density matrix) in a dd-dimensional Hilbert space and ψ|\psi\rangle be a normalized ket vector. The expectation value of the pure state projector ψψ|\psi\rangle\langle\psi| in the state ρ\rho, defined as Tr(ρψψ)\text{Tr}(\rho |\psi\rangle\langle\psi|), is equal to 11 if and only if ρ\rho is the pure state ψψ|\psi\rangle\langle\psi|.

theorem

The mixture of an ensemble is the pure state ψψ|\psi\rangle\langle\psi| iff all constituent states with non-zero weight are ψψ|\psi\rangle\langle\psi|

#mix_mEnsemble_pure_iff_pure

Let ee be a quantum ensemble over a finite set α\alpha, where each state in the ensemble is denoted by e.states(i)e.\text{states}(i) and occurs with probability e.distr(i)e.\text{distr}(i). The mixed state ρmix\rho_{\text{mix}} associated with this ensemble is given by ie.distr(i)ρi\sum_i e.\text{distr}(i) \rho_i. This mixed state is equal to a pure state ψψ|\psi\rangle\langle\psi| (denoted as pure ψ\text{pure } \psi) if and only if every state ρi\rho_i in the ensemble with a non-zero probability e.distr(i)0e.\text{distr}(i) \neq 0 is itself equal to the pure state ψψ|\psi\rangle\langle\psi|.

theorem

Average of ff over an ensemble mixing to a pure state ψ\psi is f(pure ψ)f(\text{pure } \psi)

#mix_mEnsemble_pure_average

Let ee be a quantum ensemble of states in dd dimensions indexed by α\alpha (an `MEnsemble d α`), and let ff be a function mapping mixed states to some mixable type TT (such as an observable or property). If the mixture of the ensemble ee is a pure state ψψ|\psi\rangle\langle\psi| (i.e., mix(e)=pure ψ\text{mix}(e) = \text{pure } \psi), then the average value of ff over the ensemble is equal to the value of ff evaluated at that pure state: average(f,e)=f(pure ψ)\text{average}(f, e) = f(\text{pure } \psi).

definition

Trivial mixed-state ensemble of ρ\rho at index ii

#trivial_mEnsemble

Given a mixed state ρ\rho of dimension dd and an index ii in a finite set α\alpha, the trivial mixed-state ensemble is defined as the ensemble where every state in the collection is ρ\rho (i.e., ej=ρe_j = \rho for all jαj \in \alpha), and the probability distribution is the constant distribution concentrated at ii (i.e., pi=1p_i = 1 and pj=0p_j = 0 for jij \neq i).

theorem

Mixing a trivial ensemble returns the original state ρ\rho

#trivial_mEnsemble_mix

Let ρ\rho be a quantum mixed state of dimension dd and ii be an index in a finite type α\alpha. If we define a "trivial mixed-state ensemble" where all probability mass is concentrated on the single state ρ\rho at index ii, then the result of mixing this ensemble (taking the weighted sum of its states) is equal to the original state ρ\rho.

theorem

The average of a function ff on a trivial ensemble of ρ\rho equals f(ρ)f(\rho)

#trivial_mEnsemble_average

Let f:MState dTf: \text{MState } d \to T be a function from mixed states to a type TT that supports mixing (an instance of `Mixable`). For any mixed state ρ\rho and any index ii in a type α\alpha, the average of ff over the trivial ensemble consisting solely of the state ρ\rho (denoted as `trivial_mEnsemble` ρ\rho ii) is equal to f(ρ)f(\rho).

instance

The default `Inhabited` instance for MEnsemble(d,α)\text{MEnsemble}(d, \alpha) is the trivial ensemble of maximally mixed states.

#instInhabited

For a finite-dimensional Hilbert space (or index set) dd and a set of indices α\alpha, if dd is non-empty and there exists a default element in α\alpha, then there exists a default ensemble of mixed states EMEnsemble(d,α)E \in \text{MEnsemble}(d, \alpha). This default ensemble is defined as the trivial ensemble where every index iαi \in \alpha is mapped to the default mixed state (the maximally mixed state) of dd.

definition

The trivial pure-state ensemble of ψ|\psi\rangle at index ii

#trivial_pEnsemble

Given a quantum state vector ψ|\psi\rangle (represented as a `Ket d`) and an index iαi \in \alpha, the trivial pure-state ensemble is defined as a probability distribution over states where every outcome is the state ψ|\psi\rangle, and the probability distribution is the constant (Dirac) distribution centered at ii. That is, the ensemble consists of copies of ψ|\psi\rangle such that the probability of the ii-th element is 1 and all other probabilities are 0.

theorem

The mixture of a trivial pure-state ensemble of ψ|\psi\rangle is the pure state ψψ|\psi\rangle\langle\psi|

#trivial_pEnsemble_mix

Let dd be a finite dimension and α\alpha be an index set. For any ket ψ|\psi\rangle of dimension dd and any index iαi \in \alpha, let E\mathcal{E} be the trivial pure-state ensemble centered on ψ|\psi\rangle at index ii. The mixed state resulting from the ensemble E\mathcal{E} is equal to the pure state density matrix ψψ|\psi\rangle\langle\psi|.

theorem

Average of ff on a Trivial Ensemble equals f(ψ)f(\psi)

#trivial_pEnsemble_average

Let f:Ket(d)Tf: \text{Ket}(d) \to T be a function from a quantum state vector to a type TT that supports mixing. For any state vector ψKet(d)\psi \in \text{Ket}(d) and any index iαi \in \alpha, the average of ff over the trivial ensemble consisting solely of the state ψ\psi (denoted as `trivial_pEnsemble ψ i`) is equal to f(ψ)f(\psi).

instance

Default instance for a pure ensemble `PEnsemble d α`

#instInhabited

Given a finite-dimensional Hilbert space (represented by the type \( d \)) and a finite set of indices \( \alpha \), if the Hilbert space is non-empty (\( [ \text{Nonempty } d ] \)) and the index set has a default element (\( [ \text{Inhabited } \alpha ] \)), then there exists a default pure ensemble (\( \text{PEnsemble } d \alpha \)). This default ensemble is defined as the trivial pure ensemble consisting of the default state \( | \psi_{\text{default}} \rangle \) associated with the default index.

definition

Spectral pure-state ensemble of a mixed state ρ\rho

#spectral_ensemble

Given a mixed quantum state ρ\rho of finite dimension dd, the spectral pure-state ensemble Eρ\mathcal{E}_\rho is the pure-state ensemble (p,ψ)(p, \psi) where: 1. The probability distribution pp is the eigenvalue spectrum of the density matrix ρ\rho. 2. For each index i{1,,d}i \in \{1, \dots, d\}, the associated pure state ψi\psi_i is the ii-th eigenvector from the orthonormal basis of the underlying Hermitian matrix of ρ\rho. The ensemble consists of pairs (λi,ψi)(\lambda_i, |\psi_i\rangle) such that the probabilities λi\lambda_i are the eigenvalues of ρ\rho and ψi|\psi_i\rangle are its corresponding normalized eigenvectors.

theorem

Spectral Decomposition of a Hermitian Matrix as a Sum of Projections

#spectral_decomposition_sum

Let dd be a finite index set and k\mathbb{k} be a real or complex field (an `RCLike` field). For any Hermitian matrix AMatrix(d,d,k)A \in \text{Matrix}(d, d, \mathbb{k}), the matrix can be decomposed as the sum A=idλi(vivi)A = \sum_{i \in d} \lambda_i (v_i v_i^*) where λi\lambda_i are the eigenvalues of AA (denoted by `hA.eigenvalues i`), viv_i are the corresponding orthonormal eigenvectors (the basis vectors of `hA.eigenvectorBasis i`), and viviv_i v_i^* represents the outer product (the rank-one projection) of the ii-th eigenvector with its adjoint.

theorem

The Spectral Ensemble of ρ\rho Mixes to ρ\rho

#spectral_ensemble_mix

Let ρ\rho be a quantum mixed state of finite dimension dd. Let E\mathcal{E} be the spectral pure-state ensemble associated with ρ\rho, which is constructed from the eigenvalues and eigenvectors of its density matrix. Then, the mixture of this ensemble—defined as the weighted sum of its component states—is equal to the original state ρ\rho. Specifically, if ρ\rho has spectral decomposition ρ=iλiψiψi\rho = \sum_i \lambda_i | \psi_i \rangle \langle \psi_i |, then mix(E)=ρ\text{mix}(\mathcal{E}) = \rho.