Linear Algebra
A number of linear algebra-related functions.
Matrices
Produce clock matrix [WikClock]. |
|
Produce the CNOT matrix [WikCNOT]. |
|
Generate the Fourier transform matrix [WikDFT]. |
|
|
Produce a Gell-Mann operator [WikGM]. |
|
Produce a generalized Gell-Mann operator [WikGM2]. |
|
Produce generalized Pauli operator [WikGenPaul]. |
|
Produce a |
|
Calculate the |
|
Produce a Pauli operator [WikPauli]. |
Produce a |
|
|
Create standard basis of dimension dim. |
Operations on Matrices and Vectors
|
Compute the Kronecker tensor product [WikTensor]. |
|
Perform the unvec operation on a vector to obtain a matrix [Rigetti2020]. |
Perform the vec operation on a matrix [WATVEC]. |
Properties of Matrices and Vectors
|
Check if matrix is block positive [1]_. |
|
Determine if two linear operators commute with each other [WikCom]. |
Check if matrix is a density matrix [WikDensity]. |
|
Determine if a matrix is diagonal [WikDiag]. |
|
|
Check if matrix is Hermitian [WikHerm]. |
|
Check if matrix is the identity matrix [WikIdentity]. |
|
Check if matrix is the idempotent matrix [WikIdempotent]. |
|
Determine if a matrix is normal [WikNormal]. |
|
Check if the vectors are orthonormal. |
Determine if a matrix is a permutation matrix [WikiPermutation]. |
|
Check if matrix is positive definite (PD) [WikPD]. |
|
|
Check if matrix is a projection matrix [WikProj]. |
Check if matrix is positive semidefinite (PSD) [WikPSD]. |
|
Determine if a matrix is square [WikSquare]. |
|
|
Determine if a matrix is symmetric [WikSym]. |
|
Check if matrix is unitary [WikUnitary]. |
|
Determine if one vector or matrix majorizes another. |
|
Compute the S(k)-norm of a matrix [1]_. |