![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Testing utilities which define 'qmatrix', used to perform reference complex matrix algebra, and as a reference proxy to a quantum density matrix. More...
Typedefs | |
typedef vector< vector< qcomp > > | qmatrix |
Functions | |
qmatrix | getConstantMatrix (size_t dim, qcomp elem) |
qmatrix | getDiagonalMatrix (qvector v) |
qvector | getDiagonals (qmatrix m) |
qmatrix | getIdentityMatrix (size_t dim) |
qmatrix | getPauliMatrix (int id) |
qmatrix | getZeroMatrix (size_t dim) |
qmatrix | operator* (const qcomp &, const qmatrix &) |
qmatrix | operator* (const qmatrix &, const qcomp &) |
qmatrix | operator* (const qmatrix &, const qmatrix &) |
qmatrix | operator* (const qmatrix &, const qreal &) |
qmatrix | operator* (const qreal &, const qmatrix &) |
qmatrix | operator*= (qmatrix &, const qcomp &) |
qmatrix | operator*= (qmatrix &, const qmatrix &) |
qmatrix | operator*= (qmatrix &, const qreal &) |
qmatrix | operator+ (const qmatrix &, const qmatrix &) |
qmatrix | operator+= (qmatrix &, const qmatrix &) |
qmatrix | operator- (const qmatrix &, const qmatrix &) |
qmatrix | operator-= (qmatrix &, const qmatrix &) |
qmatrix | operator/ (const qmatrix &, const qcomp &) |
qmatrix | operator/ (const qmatrix &, const qreal &) |
qmatrix | operator/= (qmatrix &, const qcomp &) |
qmatrix | operator/= (qmatrix &, const qreal &) |
void | setSubMatrix (qmatrix &dest, qmatrix sub, size_t r, size_t c) |
void | setSubMatrix (qmatrix &dest, qvector sub, size_t flatInd) |
void | setToDebugState (qmatrix &m) |
Testing utilities which define 'qmatrix', used to perform reference complex matrix algebra, and as a reference proxy to a quantum density matrix.
typedef vector<vector<qcomp> > qmatrix |
Definition at line 23 of file qmatrix.hpp.
qmatrix getConstantMatrix | ( | size_t | dim, |
qcomp | elem ) |
Definition at line 24 of file qmatrix.cpp.
qmatrix getDiagonalMatrix | ( | qvector | v | ) |
Definition at line 41 of file qmatrix.cpp.
qvector getDiagonals | ( | qmatrix | m | ) |
Definition at line 246 of file qmatrix.cpp.
qmatrix getIdentityMatrix | ( | size_t | dim | ) |
Definition at line 30 of file qmatrix.cpp.
qmatrix getPauliMatrix | ( | int | id | ) |
Definition at line 52 of file qmatrix.cpp.
qmatrix getZeroMatrix | ( | size_t | dim | ) |
Definition at line 18 of file qmatrix.cpp.
qmatrix operator* | ( | const qcomp & | a, |
const qmatrix & | m ) |
Definition at line 77 of file qmatrix.cpp.
qmatrix operator* | ( | const qmatrix & | m, |
const qcomp & | a ) |
Definition at line 87 of file qmatrix.cpp.
qmatrix operator* | ( | const qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 175 of file qmatrix.cpp.
qmatrix operator* | ( | const qmatrix & | m, |
const qreal & | a ) |
Definition at line 100 of file qmatrix.cpp.
qmatrix operator* | ( | const qreal & | a, |
const qmatrix & | m ) |
Definition at line 96 of file qmatrix.cpp.
qmatrix operator*= | ( | qmatrix & | m, |
const qcomp & | a ) |
Definition at line 91 of file qmatrix.cpp.
qmatrix operator*= | ( | qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 193 of file qmatrix.cpp.
qmatrix operator*= | ( | qmatrix & | m, |
const qreal & | a ) |
Definition at line 104 of file qmatrix.cpp.
qmatrix operator+ | ( | const qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 139 of file qmatrix.cpp.
qmatrix operator+= | ( | qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 151 of file qmatrix.cpp.
qmatrix operator- | ( | const qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 161 of file qmatrix.cpp.
qmatrix operator-= | ( | qmatrix & | m1, |
const qmatrix & | m2 ) |
Definition at line 165 of file qmatrix.cpp.
qmatrix operator/ | ( | const qmatrix & | m, |
const qcomp & | a ) |
Definition at line 114 of file qmatrix.cpp.
qmatrix operator/ | ( | const qmatrix & | m, |
const qreal & | a ) |
Definition at line 125 of file qmatrix.cpp.
qmatrix operator/= | ( | qmatrix & | m, |
const qcomp & | a ) |
Definition at line 120 of file qmatrix.cpp.
qmatrix operator/= | ( | qmatrix & | m, |
const qreal & | a ) |
Definition at line 129 of file qmatrix.cpp.
void setSubMatrix | ( | qmatrix & | dest, |
qmatrix | sub, | ||
size_t | r, | ||
size_t | c ) |
Definition at line 203 of file qmatrix.cpp.
void setSubMatrix | ( | qmatrix & | dest, |
qvector | sub, | ||
size_t | flatInd ) |
Definition at line 217 of file qmatrix.cpp.
void setToDebugState | ( | qmatrix & | m | ) |
Definition at line 227 of file qmatrix.cpp.