![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for overwriting Qureg amplitudes. More...
Functions | |
void | setDensityQuregAmps (Qureg qureg, qindex startRow, qindex startCol, qcomp **amps, qindex numRows, qindex numCols) |
void | setDensityQuregAmps (Qureg qureg, qindex startRow, qindex startCol, std::vector< std::vector< qcomp > > amps) |
void | setDensityQuregFlatAmps (Qureg qureg, qindex startInd, qcomp *amps, qindex numAmps) |
void | setDensityQuregFlatAmps (Qureg qureg, qindex startInd, std::vector< qcomp > amps) |
void | setQuregAmps (Qureg qureg, qindex startInd, qcomp *amps, qindex numAmps) |
void | setQuregAmps (Qureg qureg, qindex startInd, std::vector< qcomp > amps) |
void | setQuregToClone (Qureg targetQureg, Qureg copyQureg) |
void | setQuregToPartialTrace (Qureg out, Qureg in, int *traceOutQubits, int numTraceQubits) |
void | setQuregToPartialTrace (Qureg out, Qureg in, std::vector< int > traceOutQubits) |
void | setQuregToPauliStrSum (Qureg qureg, PauliStrSum sum) |
void | setQuregToReducedDensityMatrix (Qureg out, Qureg in, int *retainQubits, int numRetainQubits) |
void | setQuregToReducedDensityMatrix (Qureg out, Qureg in, std::vector< int > retainQubits) |
qreal | setQuregToRenormalized (Qureg qureg) |
void | setQuregToSuperposition (qcomp facOut, Qureg out, qcomp fac1, Qureg qureg1, qcomp fac2, Qureg qureg2) |
Functions for overwriting Qureg amplitudes.
void setDensityQuregAmps | ( | Qureg | qureg, |
qindex | startRow, | ||
qindex | startCol, | ||
qcomp ** | amps, | ||
qindex | numRows, | ||
qindex | numCols ) |
Definition at line 160 of file initialisations.cpp.
Referenced by TEST_CASE().
void setDensityQuregAmps | ( | Qureg | qureg, |
qindex | startRow, | ||
qindex | startCol, | ||
std::vector< std::vector< qcomp > > | amps ) |
void setDensityQuregFlatAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
qcomp * | amps, | ||
qindex | numAmps ) |
Definition at line 169 of file initialisations.cpp.
Referenced by TEST_CASE().
void setDensityQuregFlatAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
std::vector< qcomp > | amps ) |
void setQuregAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
qcomp * | amps, | ||
qindex | numAmps ) |
Definition at line 151 of file initialisations.cpp.
Referenced by TEST_CASE(), and TEST_CASE().
void setQuregAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
std::vector< qcomp > | amps ) |
Definition at line 178 of file initialisations.cpp.
Referenced by createCloneQureg().
Definition at line 229 of file initialisations.cpp.
Definition at line 292 of file initialisations.cpp.
void setQuregToPauliStrSum | ( | Qureg | qureg, |
PauliStrSum | sum ) |
Definition at line 216 of file initialisations.cpp.
Referenced by TEST_CASE().
void setQuregToReducedDensityMatrix | ( | Qureg | out, |
Qureg | in, | ||
int * | retainQubits, | ||
int | numRetainQubits ) |
Definition at line 242 of file initialisations.cpp.
Definition at line 296 of file initialisations.cpp.
qreal setQuregToRenormalized | ( | Qureg | qureg | ) |
Definition at line 202 of file initialisations.cpp.
Referenced by initRandomPureState(), and TEST_CASE().
void setQuregToSuperposition | ( | qcomp | facOut, |
Qureg | out, | ||
qcomp | fac1, | ||
Qureg | qureg1, | ||
qcomp | fac2, | ||
Qureg | qureg2 ) |
Definition at line 192 of file initialisations.cpp.