MatrixMap.toMatrix
defimported Lean
The linear equivalence between MatrixMap's and transfer matrices on a larger space. Compare with MatrixMap.choi_matrix, which gives the Choi matrix instead of the transfer matrix.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {A B C D E F R : Type*} [Fintype A] [DecidableEq A] in variable [Semiring R] in variable {R : Type*} [CommSemiring R] in noncomputable def MatrixMap.toMatrix [Fintype B] : MatrixMap A B R ≃ₗ[R] Matrix (B × B) (A × A) R
- Defined in
- QuantumInfo, `MatrixMap.toMatrix`
- Lean proof
- By Alex Meiburg, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.MatrixMap.toMatrix← MatrixMap.toMatrix (QuantumInfo/Channels/MatrixMap.lean:116): verbatim
- Verified
- 17 Oct 2026
- Axioms
- none listed
- Built on 4
- MatrixMapA
MatrixMapis a linear map between squares matrices of size A to size B, over R. - MatrixMap.map_choi_invProves that
MatrixMap.of_choi_matrixandMatrixMap.choi_matrixinverses. - MatrixMap.choi_map_invProves that
MatrixMap.choi_matrixandMatrixMap.of_choi_matrixinverses. - MatrixMap.choi_matrixChoi matrix of a given linear matrix map. Note that this is defined even for things that aren't CPTP, it's just rarely talked about in…
- MatrixMapA
- Used by 1
- MatrixMap.toMatrix_compMultiplication of transfer matrices,
MatrixMap.toMatrix, is equivalent to composition of maps.
- MatrixMap.toMatrix_compMultiplication of transfer matrices,
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in variable {A B C D E F R : Type*} [Fintype A] [DecidableEq A] in variable [Semiring R] in variable {R : Type*} [CommSemiring R] in /-- The linear equivalence between MatrixMap's and transfer matrices on a larger space. Compare with `MatrixMap.choi_matrix`, which gives the Choi matrix instead of the transfer matrix. -/ noncomputable def MatrixMap.toMatrix [Fintype B] : MatrixMap A B R ≃ₗ[R] Matrix (B × B) (A × A) R := LinearMap.toMatrix (Matrix.stdBasis R A A) (Matrix.stdBasis R B B)