Matrix logarithm 2026-09-24
For a positive-definite Hermitian matrix with spectral decomposition , the matrix logarithm is . More generally it is a branch of the inverse of the matrix exponential when such a branch exists.
Set . The trace distance is , where . Since is a Hermitian operator, its spectral decomposition is . Define its positive part of a Hermitian operator and negative part of a Hermitian operator by
They are positive semidefinite operators, satisfy and , and obey . Therefore
The states have equal trace, so and . This is the spectral-parts formula for trace distance.
Let . Positivity and normalization of the density operator imply and . The completely dephasing channel produces
which is already a spectral decomposition. Its Von Neumann entropy is therefore
The quantum output entropy is exactly the Shannon entropy of the basis-measurement probabilities, including possible zero eigenvalues via .
By spectral decomposition, the Von Neumann entropy is the Shannon entropy of the eigenvalues:
Throughout, logarithms have base two, so the Von Neumann entropy and Shannon entropy are measured in bits. The continuous convention includes zero eigenvalues.
The constraints are in the order of Hermitian operators. They imply . Using the spectral decomposition of ,
Choose , with eigenvalues on the positive spectral subspace, on the negative spectral subspace, and zero on the kernel. It satisfies the constraints and attains equality. The trace-norm variational principle for Hermitian operators is therefore
To prove the Holevo–Helstrom theorem, write a binary POVM as , where , and associate the first outcome with . Any larger outcome set followed by a binary decision can be grouped into this form. Put . Its success probability is
The substitution bijects the allowed effects with the interval . Since ,
Choosing as the positive spectral projection of attains this value, with an arbitrary decision on its kernel. This proves the optimal success probability and constructs an optimal measurement.
The positive part of a Hermitian operator and negative part of a Hermitian operator are the positive operators
Thus and . In this convention the negative part itself is nonnegative. This is the positive-negative decomposition of the Hermitian operator.
The operator absolute value is defined by the unique positive operator square root
The scalar identity applied in the spectral decomposition proves
Take the real inner product
The stationary distribution is strictly positive for an irreducible Markov chain. Detailed balance gives , so is a self-adjoint operator. Choose a real orthonormal eigenbasis , where , , , , and for .
For fixed , apply the spectral decomposition to . Its coefficient against is , whereas . Thus the spectral kernel expansion of a reversible chain is
This holds for all integers ; at each multiplier is one, including when . Negative eigenvalues are allowed, and retain their signs for odd .
Memorylessness means that the ensemble's average density operator is . Its spectral decomposition is
The product eigenvalues give
Zero eigenvalues contribute zero to the Von Neumann entropy and are excluded from logarithmic typicality tests.
The quantum typical subspace is the span of eigenvectors whose eigenvalues satisfy
Its orthogonal projection selects precisely the classical typical set for the eigenvalue distribution . The typical-set cardinality bounds and the weak law of large numbers therefore give
for any fixed and all sufficiently large .
Since , the spectral decomposition gives
Replace the middle gate of the previous compute-phase-uncompute construction by
a one-qubit rotation about the z-axis. Then
The circuit uses the gates of , their inverses, and one fixed rotation; it returns the quantum ancilla to . The same construction implements with middle gate , an instance of simulation of a computable diagonal Hamiltonian.
Suppose the only distinct eigenvalues are and . As in part (c), acts by on and by on , so its spectral decomposition is
Every diagonal entry of an adjacency matrix is zero, giving
Thus every off-diagonal entry is the same number . Since these entries belong to and the graph is connected with at least two vertices, that common value must be one. Hence and is the complete graph .
Conversely, has adjacency matrix , with eigenvalue on and eigenvalue on . Therefore the requested graphs are precisely
as stated by the connected regular graph with two adjacency eigenvalues characterization.
Using the estimator from part (b) and the spectral decomposition of ,
Thus
Under the stated separation of scales, the shrinkage factor is approximately one for and approximately zero for . The principal-component shrinkage by ridge regression formula therefore reduces approximately to
the orthogonal projection of onto the span of the normalized sample principal components with greatest variance.
Put
The Rayleigh quotient shift is exactly
Expanding the denominator gives
The question prints this as , so its sign convention requires
unless every vanishes. Equivalently, is the positive quadratic Rayleigh-quotient error.
The shifted inverse solve has the spectral decomposition
Only relative coefficients matter after normalization, so factor out :
From the shift expansion,
whereas, for ,
Consequently
After the final normalization,
Thus an eigenvector-direction error becomes in one step, proving the Local cubic convergence of Rayleigh quotient iteration for this symmetric matrix.
Let the spectral decomposition of the Hermitian matrix be
The HHL algorithm proceeds as follows.
Efficiently prepare the normalized amplitude encoding .
Apply quantum phase estimation to the simulated evolution , producing an approximation of each eigenvalue:
Add one ancilla and perform an eigenvalue-controlled rotation
where .
Uncompute the eigenvalue register. Conditional on measuring the ancilla as , the system register is
The postselection probability can be increased with amplitude amplification.
The ingredients used here are efficient sparse Hamiltonian simulation of and quantum phase estimation, which converts an eigenphase of that evolution into a binary approximation of . For sparsity , condition number , and error , the cost is polynomial in , , , and under the stated access assumptions.
Finally estimate by repeated measurement of an efficient observable decomposition of , or by a Hadamard test when is unitary. A general efficiently block-encoded Hermitian can similarly be measured through its block encoding. Repetition and a concentration inequality give additive sampling error after independent preparations.
The leave-one-out residual identity for a linear smoother, obtained from the block matrix inverse or the Sherman–Morrison formula, is
Hence
Compute once the spectral decomposition in operations and the vector in . For each , set
Then compute
Both calculations take operations per tuning parameter, after which the displayed leave-one-out formula costs . All scores therefore require operations.
For a Hermitian operator with spectral decomposition , its positive part is . It is a positive operator supported on the positive spectral subspace. Together with the negative part of a Hermitian operator it satisfies and .