![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for overwriting the elements of matrices. More...
Functions | |
void | setCompMatr (CompMatr matr, qcomp **vals) |
void | setCompMatr (CompMatr out, std::vector< std::vector< qcomp > > in) |
void | setDiagMatr (DiagMatr out, qcomp *in) |
void | setDiagMatr (DiagMatr out, std::vector< qcomp > in) |
void | setDiagMatrFromMultiDimLists (DiagMatr out, void *lists, int *numQubitsPerDim, int numDims) |
void | setDiagMatrFromMultiVarFunc (DiagMatr out, qcomp(*func)(qindex *), int *numQubitsPerVar, int numVars, int areSigned) |
void | setFullStateDiagMatr (FullStateDiagMatr out, qindex startInd, qcomp *in, qindex numElems) |
void | setFullStateDiagMatr (FullStateDiagMatr out, qindex startInd, std::vector< qcomp > in) |
void | setFullStateDiagMatrFromMultiDimLists (FullStateDiagMatr out, void *lists, int *numQubitsPerDim, int numDims) |
void | setFullStateDiagMatrFromMultiVarFunc (FullStateDiagMatr out, qcomp(*func)(qindex *), int *numQubitsPerVar, int numVars, int areSigned) |
void | setFullStateDiagMatrFromPauliStrSum (FullStateDiagMatr out, PauliStrSum in) |
void | setInlineCompMatr (CompMatr matr, int numQb, std::vector< std::vector< qcomp > > in) |
void | setInlineDiagMatr (DiagMatr matr, int numQb, std::vector< qcomp > in) |
void | setInlineFullStateDiagMatr (FullStateDiagMatr matr, qindex startInd, qindex numElems, std::vector< qcomp > in) |
Functions for overwriting the elements of matrices.
void setCompMatr | ( | CompMatr | matr, |
qcomp ** | vals ) |
Definition at line 427 of file matrices.cpp.
Referenced by TEST_CASE(), and TEST_CASE().
void setCompMatr | ( | CompMatr | out, |
std::vector< std::vector< qcomp > > | in ) |
void setDiagMatr | ( | DiagMatr | out, |
qcomp * | in ) |
Definition at line 435 of file matrices.cpp.
void setDiagMatr | ( | DiagMatr | out, |
std::vector< qcomp > | in ) |
void setDiagMatrFromMultiDimLists | ( | DiagMatr | out, |
void * | lists, | ||
int * | numQubitsPerDim, | ||
int | numDims ) |
Definition at line 708 of file matrices.cpp.
void setDiagMatrFromMultiVarFunc | ( | DiagMatr | out, |
qcomp(* | func )(qindex *), | ||
int * | numQubitsPerVar, | ||
int | numVars, | ||
int | areSigned ) |
Definition at line 674 of file matrices.cpp.
void setFullStateDiagMatr | ( | FullStateDiagMatr | out, |
qindex | startInd, | ||
qcomp * | in, | ||
qindex | numElems ) |
Definition at line 447 of file matrices.cpp.
void setFullStateDiagMatr | ( | FullStateDiagMatr | out, |
qindex | startInd, | ||
std::vector< qcomp > | in ) |
void setFullStateDiagMatrFromMultiDimLists | ( | FullStateDiagMatr | out, |
void * | lists, | ||
int * | numQubitsPerDim, | ||
int | numDims ) |
Definition at line 730 of file matrices.cpp.
void setFullStateDiagMatrFromMultiVarFunc | ( | FullStateDiagMatr | out, |
qcomp(* | func )(qindex *), | ||
int * | numQubitsPerVar, | ||
int | numVars, | ||
int | areSigned ) |
Definition at line 694 of file matrices.cpp.
void setFullStateDiagMatrFromPauliStrSum | ( | FullStateDiagMatr | out, |
PauliStrSum | in ) |
Definition at line 641 of file matrices.cpp.
void setInlineCompMatr | ( | CompMatr | matr, |
int | numQb, | ||
std::vector< std::vector< qcomp > > | in ) |
Referenced by TEST_CASE().
void setInlineDiagMatr | ( | DiagMatr | matr, |
int | numQb, | ||
std::vector< qcomp > | in ) |
Referenced by TEST_CASE().
void setInlineFullStateDiagMatr | ( | FullStateDiagMatr | matr, |
qindex | startInd, | ||
qindex | numElems, | ||
std::vector< qcomp > | in ) |