![]() |
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 | setDensityQuregFlatAmps (Qureg qureg, qindex startInd, qcomp *amps, qindex numAmps) |
void | setQuregAmps (Qureg qureg, qindex startInd, qcomp *amps, qindex numAmps) |
void | setQuregToClone (Qureg targetQureg, Qureg copyQureg) |
void | setQuregToPartialTrace (Qureg out, Qureg in, int *traceOutQubits, int numTraceQubits) |
void | setQuregToPauliStrSum (Qureg qureg, PauliStrSum sum) |
void | setQuregToReducedDensityMatrix (Qureg out, Qureg in, int *retainQubits, int numRetainQubits) |
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 152 of file initialisations.cpp.
Referenced by TEST_CASE().
void setDensityQuregFlatAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
qcomp * | amps, | ||
qindex | numAmps ) |
Definition at line 161 of file initialisations.cpp.
Referenced by TEST_CASE().
void setQuregAmps | ( | Qureg | qureg, |
qindex | startInd, | ||
qcomp * | amps, | ||
qindex | numAmps ) |
Definition at line 143 of file initialisations.cpp.
Referenced by TEST_CASE(), and TEST_CASE().
Definition at line 170 of file initialisations.cpp.
Referenced by createCloneQureg().
Definition at line 221 of file initialisations.cpp.
void setQuregToPauliStrSum | ( | Qureg | qureg, |
PauliStrSum | sum ) |
Definition at line 208 of file initialisations.cpp.
Referenced by TEST_CASE().
void setQuregToReducedDensityMatrix | ( | Qureg | out, |
Qureg | in, | ||
int * | retainQubits, | ||
int | numRetainQubits ) |
Definition at line 234 of file initialisations.cpp.
qreal setQuregToRenormalized | ( | Qureg | qureg | ) |
Definition at line 194 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 184 of file initialisations.cpp.