QuantumInfo.Finite.Ensemble
37 declarations
Mixed-state ensemble as an -valued random variable
#MEnsembleA mixed-state ensemble is defined as a random variable taking values in the set of mixed states of a -dimensional Hilbert space. Given a finite index set , an ensemble consists of a map that assigns a mixed state to each outcome, and a probability distribution over that provides the statistical weights for each state.
Pure-state ensemble as a `Ket d`-valued random variable
#PEnsembleGiven a finite-dimensional Hilbert space (represented by the type of its basis ) and a finite set of outcomes , a pure-state ensemble is a random variable mapping from to the space of state vectors (kets) . It consists of a probability distribution and a collection of pure states for each .
States of a mixed-state ensemble `MEnsemble`
#statesGiven a mixed-state ensemble of type `MEnsemble d α`, where represents the Hilbert space dimension and is a finite index set, the function `MEnsemble.states` maps the ensemble to a collection of mixed states for each . This is an alias for the random variable component of the underlying probability distribution.
State vectors of a pure-state ensemble
#statesGiven a pure-state ensemble over a finite set of outcomes and a Hilbert space of dimension , the function `PEnsemble.states` maps the ensemble to its corresponding collection of state vectors for each . Each state is represented as a unit vector (Ket) in the -dimensional Hilbert space.
Conversion from pure-state ensemble to mixed-state ensemble
#toMEnsembleLet be a pure-state ensemble, where each is a ket in a -dimensional Hilbert space and is the probability associated with state . The function maps this pure-state ensemble to a mixed-state ensemble , where each pure state is converted into its corresponding density matrix representation .
Coercion from `PEnsemble d α` to `MEnsemble d α`
#instCoePEnsembleMEnsembleLet be a finite type (representing the dimension or Hilbert space) and be a finite index set. A pure ensemble `PEnsemble d α` (a collection of pure states with associated probabilities ) can be naturally coerced into a mixed ensemble `MEnsemble d α` (a collection of density matrices with associated probabilities ) by mapping each pure state to its corresponding projection operator . This coercion is defined via the function `Ensemble.toMEnsemble`.
The mixed ensemble of equals
#toMEnsemble_mkLet and be finite types. For a physical ensemble (represented as `PEnsemble d α`) with a state mapping and a probability distribution , its conversion to a mixed ensemble is a mixed ensemble whose states are given by the pure state density matrices for each , while retaining the same probability distribution .
A mixed-state ensemble is a pure-state ensemble all its states are pure
#coe_PEnsemble_iff_pure_statesLet be a finite index set and be a finite set of indices for an ensemble. For a mixed-state ensemble of type `MEnsemble d α`, there exists a pure-state ensemble of type `PEnsemble d α` such that its natural embedding into the space of mixed-state ensembles equals (i.e., ) if and only if there exists a collection of kets for each such that every state in the ensemble is a pure state of the form .
Mixture of a quantum ensemble
#mixGiven a quantum ensemble consisting of a finite set of mixed states and an associated probability distribution (where is a finite index set), the function returns the resulting mixed state defined by the convex combination: \[ \rho = \sum_{i \in \alpha} p_i \rho_i \] where each is the probability weight of the state .
The matrix of a mixed ensemble is the weighted sum of its component matrices
#mix_ofLet be a mixed ensemble (`MEnsemble`) of dimension indexed by a finite set . The matrix representation of the mixed state obtained from the ensemble is equal to the convex sum of the matrix representations of its constituent states, weighted by their probabilities. That is, where is the probability distribution (`e.distr i`) and are the states (`e.states i`) of the ensemble.
Equivalence of induced by index equivalence
#congrMEnsembleGiven an equivalence (bijection) between two indexing sets, there exists a corresponding equivalence between the types of mixed-state ensembles and . This map relates ensembles indexed by to those indexed by by reindexing the probability distributions and states according to .
Equivalence of induced by index set bijection
#congrPEnsembleGiven an equivalence (bijection) between two index sets, we define an equivalence between the sets of pure-state ensembles and . This map re-indexes the states of an ensemble according to while preserving the underlying physical content.
Reindexing a mixed-state ensemble leaves the mixed state invariant ()
#mix_congrMEnsemble_eq_mixLet be a finite type and let be finite types with decidable equality. For any bijection and any mixed-state ensemble over (of dimension ), the mixed state resulting from the mixture of is equal to the mixed state resulting from the mixture of the reindexed ensemble produced by . That is, .
Invariance of mixed states under reindexing of pure-state ensembles
#mix_congrPEnsemble_eq_mixLet be a finite index set and be finite sets. For any pure-state ensemble indexed by (of type `PEnsemble d α`) and any bijection , let be the equivalent ensemble indexed by obtained via (denoted `congrPEnsemble σ e`). Then the resulting mixed state (density matrix) obtained by mixing the ensemble is equal to the mixed state obtained by mixing the original ensemble . That is, .
Expectation value of a function over a mixed-state ensemble
#averageGiven a finite-dimensional Hilbert space with dimension type and an index set , let be a mixed-state ensemble where each is a mixed state () and is its probability weight. For a function mapping mixed states to a type that is "mixable" (i.e., it supports convex combinations in a vector space ), the average is defined as the expectation value of over the ensemble : The result is an element of .
Average of an -valued function over a mixed ensemble
#average_NNRealGiven a mixed ensemble (represented by `MEnsemble d α`) and a function mapping mixed states to non-negative real numbers, the average value of over the ensemble is defined as where are the probabilities and are the states associated with the ensemble . This specific definition ensures that since maps to non-negative reals , the resulting average is also a non-negative real number .
Average of a function over a pure-state ensemble
#pure_averageLet and be finite types. Given a function and a pure-state ensemble (represented as `PEnsemble d α`), the average of over is defined as the expectation value of acting on the states in with respect to the probability weights provided by its distribution . Formally, it is calculated as , where are the probabilities and are the pure states (Kets) in the ensemble. The result is an element of , provided supports mixed operations via the `Mixable` instance.
Average of over a pure ensemble
#pure_average_NNRealLet be a Hilbert space (represented by the type of its vectors `Ket d`) of finite dimension . Given a pure ensemble (represented by `PEnsemble d α`), where are probabilities and are pure states, and a function that maps states to non-negative real numbers, the function `pure_average_NNReal` computes the expected value: The result is returned as a non-negative real number , utilizing the fact that the expectation of a non-negative function under a probability distribution is non-negative.
The average of over a coerced pure ensemble equals the pure average of
#average_of_pure_ensembleLet and be finite types. Let be a type equipped with a mixing operation (specifically, a type that can be embedded into a real vector space ). Let be a pure-state ensemble in a -dimensional Hilbert space with index set , denoted as . Let denote the corresponding mixed-state ensemble (an element of ). For any function mapping density matrices to , the average of over the ensemble is equal to the pure-state average of the composition over , where . That is,
The probability distribution of a pure ensemble is preserved under conversion to a mixed ensemble.
#distr_toMEnsembleLet be a pure ensemble (an object of type `PEnsemble d α`) with state space and index set . 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 .
The mixture of a pure ensemble is a pure state iff all constituent states with non-zero weight equal .
#mix_pEnsemble_pure_iff_pureLet be a pure ensemble of quantum states in a -dimensional Hilbert space, indexed by a finite set , where denotes the probability of state . The mixed state formed by the ensemble, defined as the convex combination , is equal to a specific pure state if and only if for every index with non-zero probability (), the corresponding pure state is equal to .
Average of Phase-Invariant on Ensemble Mixing to Equals
#mix_pEnsemble_pure_averageLet and be finite index sets. Let be a pure ensemble (represented as `PEnsemble d α`) consisting of kets with associated probabilities . Let be a function from kets to some type , where is equipped with a mixing structure (allowing for weighted averages). Suppose is invariant under phase equivalence, i.e., for any kets and , if (meaning ), then . If the total mixed state of the ensemble is equal to a pure state , then the average of over the ensemble , denoted as , is equal to .
for under convexity constraints
#sum_prob_mul_eq_one_iffLet be a finite set. Let and be families of real numbers such that for all , , and the sum of the weights is . Suppose further that each satisfies . Then the weighted sum is equal to if and only if for every where , it holds that .
Let be a quantum mixed state (density matrix) in a -dimensional Hilbert space and be a normalized ket vector. The expectation value of the pure state projector in the state , defined as , is equal to if and only if is the pure state .
The mixture of an ensemble is the pure state iff all constituent states with non-zero weight are
#mix_mEnsemble_pure_iff_pureLet be a quantum ensemble over a finite set , where each state in the ensemble is denoted by and occurs with probability . The mixed state associated with this ensemble is given by . This mixed state is equal to a pure state (denoted as ) if and only if every state in the ensemble with a non-zero probability is itself equal to the pure state .
Average of over an ensemble mixing to a pure state is
#mix_mEnsemble_pure_averageLet be a quantum ensemble of states in dimensions indexed by (an `MEnsemble d α`), and let be a function mapping mixed states to some mixable type (such as an observable or property). If the mixture of the ensemble is a pure state (i.e., ), then the average value of over the ensemble is equal to the value of evaluated at that pure state: .
Trivial mixed-state ensemble of at index
#trivial_mEnsembleGiven a mixed state of dimension and an index in a finite set , the trivial mixed-state ensemble is defined as the ensemble where every state in the collection is (i.e., for all ), and the probability distribution is the constant distribution concentrated at (i.e., and for ).
Mixing a trivial ensemble returns the original state
#trivial_mEnsemble_mixLet be a quantum mixed state of dimension and be an index in a finite type . If we define a "trivial mixed-state ensemble" where all probability mass is concentrated on the single state at index , then the result of mixing this ensemble (taking the weighted sum of its states) is equal to the original state .
The average of a function on a trivial ensemble of equals
#trivial_mEnsemble_averageLet be a function from mixed states to a type that supports mixing (an instance of `Mixable`). For any mixed state and any index in a type , the average of over the trivial ensemble consisting solely of the state (denoted as `trivial_mEnsemble` ) is equal to .
The default `Inhabited` instance for is the trivial ensemble of maximally mixed states.
#instInhabitedFor a finite-dimensional Hilbert space (or index set) and a set of indices , if is non-empty and there exists a default element in , then there exists a default ensemble of mixed states . This default ensemble is defined as the trivial ensemble where every index is mapped to the default mixed state (the maximally mixed state) of .
The trivial pure-state ensemble of at index
#trivial_pEnsembleGiven a quantum state vector (represented as a `Ket d`) and an index , the trivial pure-state ensemble is defined as a probability distribution over states where every outcome is the state , and the probability distribution is the constant (Dirac) distribution centered at . That is, the ensemble consists of copies of such that the probability of the -th element is 1 and all other probabilities are 0.
The mixture of a trivial pure-state ensemble of is the pure state
#trivial_pEnsemble_mixLet be a finite dimension and be an index set. For any ket of dimension and any index , let be the trivial pure-state ensemble centered on at index . The mixed state resulting from the ensemble is equal to the pure state density matrix .
Average of on a Trivial Ensemble equals
#trivial_pEnsemble_averageLet be a function from a quantum state vector to a type that supports mixing. For any state vector and any index , the average of over the trivial ensemble consisting solely of the state (denoted as `trivial_pEnsemble ψ i`) is equal to .
Default instance for a pure ensemble `PEnsemble d α`
#instInhabitedGiven 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.
Spectral pure-state ensemble of a mixed state
#spectral_ensembleGiven a mixed quantum state of finite dimension , the spectral pure-state ensemble is the pure-state ensemble where: 1. The probability distribution is the eigenvalue spectrum of the density matrix . 2. For each index , the associated pure state is the -th eigenvector from the orthonormal basis of the underlying Hermitian matrix of . The ensemble consists of pairs such that the probabilities are the eigenvalues of and are its corresponding normalized eigenvectors.
Spectral Decomposition of a Hermitian Matrix as a Sum of Projections
#spectral_decomposition_sumLet be a finite index set and be a real or complex field (an `RCLike` field). For any Hermitian matrix , the matrix can be decomposed as the sum where are the eigenvalues of (denoted by `hA.eigenvalues i`), are the corresponding orthonormal eigenvectors (the basis vectors of `hA.eigenvectorBasis i`), and represents the outer product (the rank-one projection) of the -th eigenvector with its adjoint.
The Spectral Ensemble of Mixes to
#spectral_ensemble_mixLet be a quantum mixed state of finite dimension . Let be the spectral pure-state ensemble associated with , 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 . Specifically, if has spectral decomposition , then .
