Quantum Channels
A channel implementation should pass a test on the entire linear map, not only a few input states. Kraus completeness checks trace preservation; Choi positivity checks complete positivity. Together they expose errors that output-state normalization alone cannot detect.
Helpful background. Channel–state duality supplies the conceptual criterion; vectorization fixes the array convention used here.
Kraus and Choi representations
Section titled “Kraus and Choi representations”For operators ,
The second equation follows by moving around the trace. Define the unnormalized, input-first Choi matrix by
With column stacking, . Thus , , and . A normalized Choi state divides this matrix by ; its partial trace is then . Document which convention is used before comparing files or libraries.
The linked channel–state duality page places the output factor first. Its Choi matrix is related to the input-first matrix here by swapping the two tensor factors, not by complex conjugation. Both conventions express the same map, but their partial-trace axes and array entries differ.
The superoperator is . Conversion between and is an index reshuffling, not ordinary matrix transposition.
An explicit conversion removes the ambiguity. With input indices and output indices ,
Thus has shape , while is square of size . Verify conversions on a rectangular channel, such as an isometric embedding from a qubit to a three-level system, as well as on square maps. Swapping dimensions can otherwise pass every shape check.
Amplitude damping as a complete test
Section titled “Amplitude damping as a complete test”For , choose
Direct multiplication gives
In input-first ordering , has diagonal entries and corner entries . Its nonzero eigenvalues are and . This single example tests a nonunital channel, complex coherences, and both endpoint limits.
A code test should compare three independent actions: direct Kraus summation, the superoperator applied to column-stacked input, and reconstruction from the Choi matrix,
Use a complex input so that replacing the transpose by an adjoint fails visibly.
Composition and numerical tolerance
Section titled “Composition and numerical tolerance”For , Kraus operators are and the superoperator is . The reversed product describes a different experiment when operations do not commute.
Measure Hermiticity and negative eigenvalue weight of , as well as the norm of . Small negative values at roundoff scale can arise during eigendecomposition; a finite negative eigenvalue signals a nonphysical map or invalid reconstruction. Sampling many physical states cannot establish complete positivity.
To compress a redundant Kraus list, diagonalize the positive Choi matrix and reshape into operators using column order. Dropping small eigenvalues changes the channel and can violate trace preservation. In fact, keeping a subset of these Kraus operators gives : the retained map is generally trace-decreasing. Renormalizing its output separately for each input would produce a nonlinear conditional update, not a repaired trace-preserving channel. Report discarded Choi weight and recheck completeness after any repair.
Exercise
Section titled “Exercise”Compose two amplitude-damping channels with probabilities and . Is their composition another amplitude-damping channel?
Solution
The excited population is multiplied by , while each coherence is multiplied by its square root. Therefore . This gives a semigroup benchmark when , and a test of channel multiplication order that should be supplemented with a noncommuting unitary.
References
Section titled “References”- Choi, M.-D., “Completely positive linear maps on complex matrices,” Linear Algebra and its Applications 10, 285–290 (1975), doi:10.1016/0024-3795(75)90075-0.
- Watrous, J., The Theory of Quantum Information, Cambridge University Press (2018), author’s text — Choi operators and channel representations.