![]() |
The Quantum Exact Simulation Toolkit v4.2.0
|
Testing utilities which generate random objects independently of QuEST's internal generators. More...
Functions | |
| PauliStrSum | createRandomNonHermitianPauliStrSum (int numQubits, int numTerms) |
| PauliStrSum | createRandomPauliStrSum (int numQubits, int numTerms) |
| qcomp | getRandomComplex () |
| qmatrix | getRandomDensityMatrix (int numQb) |
| qmatrix | getRandomDiagonalHermitian (int numQb) |
| qmatrix | getRandomDiagonalMatrix (size_t dim) |
| qmatrix | getRandomDiagonalUnitary (int numQb) |
| PauliStr | getRandomDiagPauliStr (int numQubits) |
| listpair | getRandomFixedNumCtrlsTargs (int numQubits, int numCtrls, int numTargs) |
| int | getRandomInt (int min, int maxExcl) |
| vector< int > | getRandomInts (int min, int maxExcl, int len) |
| vector< qmatrix > | getRandomKrausMap (int numQb, int numOps) |
| qmatrix | getRandomMatrix (size_t dim) |
| qmatrix | getRandomNonSquareMatrix (size_t numRows, size_t numCols) |
| vector< qvector > | getRandomOrthonormalStateVectors (int numQb, int numStates) |
| vector< qvector > | getRandomOrthonormalVectors (size_t dim, int numVecs) |
| vector< int > | getRandomOutcomes (int len) |
| PauliStr | getRandomPauliStr (int numQubits) |
| PauliStr | getRandomPauliStr (vector< int > targs) |
| qreal | getRandomPhase () |
| vector< qreal > | getRandomProbabilities (int numProbs) |
| qmatrix | getRandomPureDensityMatrix (int numQb) |
| qreal | getRandomReal (qreal min, qreal maxExcl) |
| qvector | getRandomStateVector (int numQb) |
| vector< int > | getRandomSubRange (int start, int endExcl, int numElems) |
| qmatrix | getRandomUnitary (int numQb) |
| qcomp | getRandomUnitComplex () |
| listtrio | getRandomVariNumCtrlsStatesTargs (int numQubits, int minNumTargs, int maxNumTargsIncl) |
| qvector | getRandomVector (size_t dim) |
| void | setRandomTestStateSeeds () |
| void | setToRandomState (qmatrix &state) |
| void | setToRandomState (qvector &state) |
Testing utilities which generate random objects independently of QuEST's internal generators.
| PauliStrSum createRandomNonHermitianPauliStrSum | ( | int | numQubits, |
| int | numTerms ) |
Definition at line 470 of file random.cpp.
| PauliStrSum createRandomPauliStrSum | ( | int | numQubits, |
| int | numTerms ) |
Definition at line 484 of file random.cpp.
| qcomp getRandomComplex | ( | ) |
Definition at line 107 of file random.cpp.
| qmatrix getRandomDensityMatrix | ( | int | numQb | ) |
Definition at line 308 of file random.cpp.
| qmatrix getRandomDiagonalHermitian | ( | int | numQb | ) |
Definition at line 392 of file random.cpp.
| qmatrix getRandomDiagonalMatrix | ( | size_t | dim | ) |
Definition at line 279 of file random.cpp.
| qmatrix getRandomDiagonalUnitary | ( | int | numQb | ) |
Definition at line 379 of file random.cpp.
| PauliStr getRandomDiagPauliStr | ( | int | numQubits | ) |
Definition at line 460 of file random.cpp.
| listpair getRandomFixedNumCtrlsTargs | ( | int | numQubits, |
| int | numCtrls, | ||
| int | numTargs ) |
Definition at line 180 of file random.cpp.
| int getRandomInt | ( | int | min, |
| int | maxExcl ) |
Definition at line 90 of file random.cpp.
| vector< int > getRandomInts | ( | int | min, |
| int | maxExcl, | ||
| int | len ) |
Definition at line 125 of file random.cpp.
| vector< qmatrix > getRandomKrausMap | ( | int | numQb, |
| int | numOps ) |
Definition at line 405 of file random.cpp.
| qmatrix getRandomMatrix | ( | size_t | dim | ) |
Definition at line 273 of file random.cpp.
| qmatrix getRandomNonSquareMatrix | ( | size_t | numRows, |
| size_t | numCols ) |
Definition at line 256 of file random.cpp.
| vector< qvector > getRandomOrthonormalStateVectors | ( | int | numQb, |
| int | numStates ) |
Definition at line 302 of file random.cpp.
| vector< qvector > getRandomOrthonormalVectors | ( | size_t | dim, |
| int | numVecs ) |
Definition at line 226 of file random.cpp.
| vector< int > getRandomOutcomes | ( | int | len | ) |
Definition at line 138 of file random.cpp.
| PauliStr getRandomPauliStr | ( | int | numQubits | ) |
Definition at line 440 of file random.cpp.
| PauliStr getRandomPauliStr | ( | vector< int > | targs | ) |
Definition at line 450 of file random.cpp.
| qreal getRandomPhase | ( | ) |
Definition at line 82 of file random.cpp.
| vector< qreal > getRandomProbabilities | ( | int | numProbs | ) |
Definition at line 160 of file random.cpp.
| qmatrix getRandomPureDensityMatrix | ( | int | numQb | ) |
Definition at line 326 of file random.cpp.
| qreal getRandomReal | ( | qreal | min, |
| qreal | maxExcl ) |
Definition at line 63 of file random.cpp.
| qvector getRandomStateVector | ( | int | numQb | ) |
Definition at line 296 of file random.cpp.
| vector< int > getRandomSubRange | ( | int | start, |
| int | endExcl, | ||
| int | numElems ) |
Definition at line 146 of file random.cpp.
| qmatrix getRandomUnitary | ( | int | numQb | ) |
Definition at line 348 of file random.cpp.
| qcomp getRandomUnitComplex | ( | ) |
Definition at line 114 of file random.cpp.
| listtrio getRandomVariNumCtrlsStatesTargs | ( | int | numQubits, |
| int | minNumTargs, | ||
| int | maxNumTargsIncl ) |
Definition at line 190 of file random.cpp.
| qvector getRandomVector | ( | size_t | dim | ) |
Definition at line 215 of file random.cpp.
| void setRandomTestStateSeeds | ( | ) |
Definition at line 39 of file random.cpp.
| void setToRandomState | ( | qmatrix & | state | ) |
Definition at line 337 of file random.cpp.
| void setToRandomState | ( | qvector & | state | ) |
Definition at line 334 of file random.cpp.